2a760b09f5e738dcea4c7f57ccbf92c643e3a97c
[blender.git] / source / gameengine / Rasterizer / RAS_OpenGLRasterizer / ARB_multitexture.h
1 #ifndef __ARB_MULTITEXTURE_H__
2 #define __ARB_MULTITEXTURE_H__
3
4 /* 
5 */
6
7 /* ----------------------------------------------------------------------------
8         GL_ARB_multitexture
9 ---------------------------------------------------------------------------- */
10 /* defined in glext.h
11 #ifndef GL_ARB_multitexture
12 #define GL_ARB_multitexture 1
13 #endif
14 */
15
16 #ifdef GL_ARB_multitexture
17         #define GL_TEXTURE0_ARB                   0x84C0
18         #define GL_TEXTURE1_ARB                   0x84C1
19         #define GL_TEXTURE2_ARB                   0x84C2
20         #define GL_TEXTURE3_ARB                   0x84C3
21         #define GL_TEXTURE4_ARB                   0x84C4
22         #define GL_TEXTURE5_ARB                   0x84C5
23         #define GL_TEXTURE6_ARB                   0x84C6
24         #define GL_TEXTURE7_ARB                   0x84C7
25         #define GL_TEXTURE8_ARB                   0x84C8
26         #define GL_TEXTURE9_ARB                   0x84C9
27         #define GL_TEXTURE10_ARB                  0x84CA
28         #define GL_ACTIVE_TEXTURE_ARB             0x84E0
29         #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
30         #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
31 #endif
32
33
34 /* ----------------------------------------------------------------------------
35         GL_ARB_texture_env_combine
36 ---------------------------------------------------------------------------- */
37 /*
38 #ifndef GL_ARB_texture_env_combine
39         #define GL_ARB_texture_env_combine 1
40 #endif
41 */
42
43 #ifdef GL_ARB_texture_env_combine
44         #define GL_COMBINE_ARB                    0x8570
45         #define GL_COMBINE_RGB_ARB                0x8571
46         #define GL_COMBINE_ALPHA_ARB              0x8572
47         #define GL_SOURCE0_RGB_ARB                0x8580
48         #define GL_SOURCE1_RGB_ARB                0x8581
49         #define GL_SOURCE2_RGB_ARB                0x8582
50         #define GL_SOURCE0_ALPHA_ARB              0x8588
51         #define GL_SOURCE1_ALPHA_ARB              0x8589
52         #define GL_SOURCE2_ALPHA_ARB              0x858A
53         #define GL_OPERAND0_RGB_ARB               0x8590
54         #define GL_OPERAND1_RGB_ARB               0x8591
55         #define GL_OPERAND2_RGB_ARB               0x8592
56         #define GL_OPERAND0_ALPHA_ARB             0x8598
57         #define GL_OPERAND1_ALPHA_ARB             0x8599
58         #define GL_OPERAND2_ALPHA_ARB             0x859A
59         #define GL_RGB_SCALE_ARB                  0x8573
60         #define GL_ADD_SIGNED_ARB                 0x8574
61         #define GL_INTERPOLATE_ARB                0x8575
62         #define GL_SUBTRACT_ARB                   0x84E7
63         #define GL_CONSTANT_ARB                   0x8576
64         #define GL_PRIMARY_COLOR_ARB              0x8577
65         #define GL_PREVIOUS_ARB                   0x8578
66 #endif
67
68 /* ----------------------------------------------------------------------------
69         GL_ARB_texture_cube_map
70 ---------------------------------------------------------------------------- */
71 /*
72 #ifndef GL_ARB_texture_cube_map
73         #define GL_ARB_texture_cube_map 1
74 #endif
75 */
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 /*
96 #ifndef GL_ARB_shader_objects
97         #define GL_ARB_shader_objects 1
98 #endif
99 */
100 #ifdef GL_ARB_shader_objects
101         #define GL_PROGRAM_OBJECT_ARB             0x8B40
102         #define GL_SHADER_OBJECT_ARB              0x8B48
103         #define GL_OBJECT_TYPE_ARB                0x8B4E
104         #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
105         #define GL_FLOAT_VEC2_ARB                 0x8B50
106         #define GL_FLOAT_VEC3_ARB                 0x8B51
107         #define GL_FLOAT_VEC4_ARB                 0x8B52
108         #define GL_INT_VEC2_ARB                   0x8B53
109         #define GL_INT_VEC3_ARB                   0x8B54
110         #define GL_INT_VEC4_ARB                   0x8B55
111         #define GL_BOOL_ARB                       0x8B56
112         #define GL_BOOL_VEC2_ARB                  0x8B57
113         #define GL_BOOL_VEC3_ARB                  0x8B58
114         #define GL_BOOL_VEC4_ARB                  0x8B59
115         #define GL_FLOAT_MAT2_ARB                 0x8B5A
116         #define GL_FLOAT_MAT3_ARB                 0x8B5B
117         #define GL_FLOAT_MAT4_ARB                 0x8B5C
118         #define GL_SAMPLER_1D_ARB                 0x8B5D
119         #define GL_SAMPLER_2D_ARB                 0x8B5E
120         #define GL_SAMPLER_3D_ARB                 0x8B5F
121         #define GL_SAMPLER_CUBE_ARB               0x8B60
122         #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
123         #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
124         #define GL_SAMPLER_2D_RECT_ARB            0x8B63
125         #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
126         #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
127         #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
128         #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
129         #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
130         #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
131         #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
132         #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
133         #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
134         #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
135 #endif
136
137 /* ----------------------------------------------------------------------------
138         GL_ARB_vertex_shader
139 ---------------------------------------------------------------------------- */
140 /*
141 #ifndef GL_ARB_vertex_shader
142         #define GL_ARB_vertex_shader 1
143 #endif
144 */
145
146 #ifdef GL_ARB_vertex_shader
147         #define GL_VERTEX_SHADER_ARB              0x8B31
148         #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
149         #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
150         #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
151         #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
152         #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
153         #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
154 #endif
155
156
157 /* ----------------------------------------------------------------------------
158         GL_ARB_fragment_shader
159 ---------------------------------------------------------------------------- */
160 /*
161 #ifndef GL_ARB_fragment_shader
162         #define GL_ARB_fragment_shader 1
163 #endif
164 */
165
166 #ifdef GL_ARB_fragment_shader
167         #define GL_FRAGMENT_SHADER_ARB            0x8B30
168         #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
169         #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
170 #endif
171
172
173 #endif//__ARB_MULTITEXTURE_H__