disable game engine and gameplayer for all platforms except windows.
[blender.git] / source / gameengine / Rasterizer / RAS_OpenGLRasterizer / ARB_multitexture.h
1 #ifndef __ARB_MULTITEXTURE_H__
2 #define __ARB_MULTITEXTURE_H__
3
4 /**
5         Comment out defines GL_... 1, to disable compilation of each extension.
6         GL_ARB_multitexture is the minimum for using blender material settings.
7         For best functionality (GL_ARB_multitexture & GL_ARB_texture_env_combine) are needed.
8 */
9
10 /* ----------------------------------------------------------------------------
11         GL_ARB_multitexture
12 ---------------------------------------------------------------------------- */
13 #ifndef GL_ARB_multitexture
14 #ifdef WIN32    
15 dsadsa
16 #define GL_ARB_multitexture 1
17 #endif //WIN32
18 #endif
19
20 #ifdef GL_ARB_multitexture
21         #define GL_TEXTURE0_ARB                   0x84C0
22         #define GL_TEXTURE1_ARB                   0x84C1
23         #define GL_TEXTURE2_ARB                   0x84C2
24         #define GL_TEXTURE3_ARB                   0x84C3
25         #define GL_TEXTURE4_ARB                   0x84C4
26         #define GL_TEXTURE5_ARB                   0x84C5
27         #define GL_TEXTURE6_ARB                   0x84C6
28         #define GL_TEXTURE7_ARB                   0x84C7
29         #define GL_TEXTURE8_ARB                   0x84C8
30         #define GL_TEXTURE9_ARB                   0x84C9
31         #define GL_TEXTURE10_ARB                  0x84CA
32         #define GL_ACTIVE_TEXTURE_ARB             0x84E0
33         #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
34         #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
35 #endif
36
37
38 /* ----------------------------------------------------------------------------
39         GL_ARB_texture_env_combine
40 ---------------------------------------------------------------------------- */
41 #ifndef GL_ARB_texture_env_combine
42         #define GL_ARB_texture_env_combine 1
43 #endif
44
45 #ifdef GL_ARB_texture_env_combine
46         #define GL_COMBINE_ARB                    0x8570
47         #define GL_COMBINE_RGB_ARB                0x8571
48         #define GL_COMBINE_ALPHA_ARB              0x8572
49         #define GL_SOURCE0_RGB_ARB                0x8580
50         #define GL_SOURCE1_RGB_ARB                0x8581
51         #define GL_SOURCE2_RGB_ARB                0x8582
52         #define GL_SOURCE0_ALPHA_ARB              0x8588
53         #define GL_SOURCE1_ALPHA_ARB              0x8589
54         #define GL_SOURCE2_ALPHA_ARB              0x858A
55         #define GL_OPERAND0_RGB_ARB               0x8590
56         #define GL_OPERAND1_RGB_ARB               0x8591
57         #define GL_OPERAND2_RGB_ARB               0x8592
58         #define GL_OPERAND0_ALPHA_ARB             0x8598
59         #define GL_OPERAND1_ALPHA_ARB             0x8599
60         #define GL_OPERAND2_ALPHA_ARB             0x859A
61         #define GL_RGB_SCALE_ARB                  0x8573
62         #define GL_ADD_SIGNED_ARB                 0x8574
63         #define GL_INTERPOLATE_ARB                0x8575
64         #define GL_SUBTRACT_ARB                   0x84E7
65         #define GL_CONSTANT_ARB                   0x8576
66         #define GL_PRIMARY_COLOR_ARB              0x8577
67         #define GL_PREVIOUS_ARB                   0x8578
68 #endif
69
70 /* ----------------------------------------------------------------------------
71         GL_ARB_texture_cube_map
72 ---------------------------------------------------------------------------- */
73 #ifndef GL_ARB_texture_cube_map
74         #define GL_ARB_texture_cube_map 1
75 #endif
76
77 #ifdef GL_ARB_texture_cube_map
78         #define GL_NORMAL_MAP_ARB                 0x8511
79         #define GL_REFLECTION_MAP_ARB             0x8512
80         #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
81         #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
82         #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
83         #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
84         #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
85         #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
86         #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
87         #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
88         #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
89         #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
90 #endif
91
92 /* ----------------------------------------------------------------------------
93         GL_ARB_shader_objects
94 ---------------------------------------------------------------------------- */
95 #ifndef GL_ARB_shader_objects
96         #define GL_ARB_shader_objects 1
97 #endif
98
99 #ifdef GL_ARB_shader_objects
100         #define GL_PROGRAM_OBJECT_ARB             0x8B40
101         #define GL_SHADER_OBJECT_ARB              0x8B48
102         #define GL_OBJECT_TYPE_ARB                0x8B4E
103         #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
104         #define GL_FLOAT_VEC2_ARB                 0x8B50
105         #define GL_FLOAT_VEC3_ARB                 0x8B51
106         #define GL_FLOAT_VEC4_ARB                 0x8B52
107         #define GL_INT_VEC2_ARB                   0x8B53
108         #define GL_INT_VEC3_ARB                   0x8B54
109         #define GL_INT_VEC4_ARB                   0x8B55
110         #define GL_BOOL_ARB                       0x8B56
111         #define GL_BOOL_VEC2_ARB                  0x8B57
112         #define GL_BOOL_VEC3_ARB                  0x8B58
113         #define GL_BOOL_VEC4_ARB                  0x8B59
114         #define GL_FLOAT_MAT2_ARB                 0x8B5A
115         #define GL_FLOAT_MAT3_ARB                 0x8B5B
116         #define GL_FLOAT_MAT4_ARB                 0x8B5C
117         #define GL_SAMPLER_1D_ARB                 0x8B5D
118         #define GL_SAMPLER_2D_ARB                 0x8B5E
119         #define GL_SAMPLER_3D_ARB                 0x8B5F
120         #define GL_SAMPLER_CUBE_ARB               0x8B60
121         #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
122         #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
123         #define GL_SAMPLER_2D_RECT_ARB            0x8B63
124         #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
125         #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
126         #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
127         #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
128         #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
129         #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
130         #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
131         #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
132         #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
133         #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
134 #endif
135
136 /* ----------------------------------------------------------------------------
137         GL_ARB_vertex_shader
138 ---------------------------------------------------------------------------- */
139 #ifndef GL_ARB_vertex_shader
140         #define GL_ARB_vertex_shader 1
141 #endif
142
143 #ifdef GL_ARB_vertex_shader
144         #define GL_VERTEX_SHADER_ARB              0x8B31
145         #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
146         #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
147         #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
148         #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
149         #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
150         #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
151 #endif
152
153
154 /* ----------------------------------------------------------------------------
155         GL_ARB_fragment_shader
156 ---------------------------------------------------------------------------- */
157 #ifndef GL_ARB_fragment_shader
158         #define GL_ARB_fragment_shader 1
159 #endif
160
161 #ifdef GL_ARB_fragment_shader
162         #define GL_FRAGMENT_SHADER_ARB            0x8B30
163         #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
164         #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
165 #endif
166
167 #endif//__ARB_MULTITEXTURE_H__