1 #ifndef __gles1_glext_h_
2 #define __gles1_glext_h_ 1
19 #define GL_APIENTRYP GL_APIENTRY*
35 #define GL_KHR_debug 1
38 #ifndef GL_OES_EGL_image
39 #define GL_OES_EGL_image 1
40 typedef void *GLeglImageOES;
41 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
42 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
43 #ifdef GL_GLEXT_PROTOTYPES
44 GL_API
void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
45 GL_API
void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
49 #ifndef GL_OES_EGL_image_external
50 #define GL_OES_EGL_image_external 1
51 #define GL_TEXTURE_EXTERNAL_OES 0x8D65
52 #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
53 #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
56 #ifndef GL_OES_blend_equation_separate
57 #define GL_OES_blend_equation_separate 1
58 #define GL_BLEND_EQUATION_RGB_OES 0x8009
59 #define GL_BLEND_EQUATION_ALPHA_OES 0x883D
60 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha);
61 #ifdef GL_GLEXT_PROTOTYPES
62 GL_API
void GL_APIENTRY glBlendEquationSeparateOES (GLenum modeRGB, GLenum modeAlpha);
66 #ifndef GL_OES_blend_func_separate
67 #define GL_OES_blend_func_separate 1
68 #define GL_BLEND_DST_RGB_OES 0x80C8
69 #define GL_BLEND_SRC_RGB_OES 0x80C9
70 #define GL_BLEND_DST_ALPHA_OES 0x80CA
71 #define GL_BLEND_SRC_ALPHA_OES 0x80CB
72 typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEOESPROC) (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
73 #ifdef GL_GLEXT_PROTOTYPES
74 GL_API
void GL_APIENTRY glBlendFuncSeparateOES (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
78 #ifndef GL_OES_blend_subtract
79 #define GL_OES_blend_subtract 1
80 #define GL_BLEND_EQUATION_OES 0x8009
81 #define GL_FUNC_ADD_OES 0x8006
82 #define GL_FUNC_SUBTRACT_OES 0x800A
83 #define GL_FUNC_REVERSE_SUBTRACT_OES 0x800B
84 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONOESPROC) (GLenum mode);
85 #ifdef GL_GLEXT_PROTOTYPES
86 GL_API
void GL_APIENTRY glBlendEquationOES (GLenum mode);
90 #ifndef GL_OES_byte_coordinates
91 #define GL_OES_byte_coordinates 1
94 #ifndef GL_OES_compressed_ETC1_RGB8_sub_texture
95 #define GL_OES_compressed_ETC1_RGB8_sub_texture 1
98 #ifndef GL_OES_compressed_ETC1_RGB8_texture
99 #define GL_OES_compressed_ETC1_RGB8_texture 1
100 #define GL_ETC1_RGB8_OES 0x8D64
103 #ifndef GL_OES_depth24
104 #define GL_OES_depth24 1
105 #define GL_DEPTH_COMPONENT24_OES 0x81A6
108 #ifndef GL_OES_depth32
109 #define GL_OES_depth32 1
110 #define GL_DEPTH_COMPONENT32_OES 0x81A7
113 #ifndef GL_OES_draw_texture
114 #define GL_OES_draw_texture 1
115 #define GL_TEXTURE_CROP_RECT_OES 0x8B9D
116 typedef void (GL_APIENTRYP PFNGLDRAWTEXSOESPROC) (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
117 typedef void (GL_APIENTRYP PFNGLDRAWTEXIOESPROC) (GLint x, GLint y, GLint z, GLint width, GLint height);
118 typedef void (GL_APIENTRYP PFNGLDRAWTEXXOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
119 typedef void (GL_APIENTRYP PFNGLDRAWTEXSVOESPROC) (
const GLshort *coords);
120 typedef void (GL_APIENTRYP PFNGLDRAWTEXIVOESPROC) (
const GLint *coords);
121 typedef void (GL_APIENTRYP PFNGLDRAWTEXXVOESPROC) (
const GLfixed *coords);
122 typedef void (GL_APIENTRYP PFNGLDRAWTEXFOESPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
123 typedef void (GL_APIENTRYP PFNGLDRAWTEXFVOESPROC) (
const GLfloat *coords);
124 #ifdef GL_GLEXT_PROTOTYPES
125 GL_API
void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
126 GL_API
void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
127 GL_API
void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
128 GL_API
void GL_APIENTRY glDrawTexsvOES (
const GLshort *coords);
129 GL_API
void GL_APIENTRY glDrawTexivOES (
const GLint *coords);
130 GL_API
void GL_APIENTRY glDrawTexxvOES (
const GLfixed *coords);
131 GL_API
void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
132 GL_API
void GL_APIENTRY glDrawTexfvOES (
const GLfloat *coords);
136 #ifndef GL_OES_element_index_uint
137 #define GL_OES_element_index_uint 1
138 #define GL_UNSIGNED_INT 0x1405
141 #ifndef GL_OES_extended_matrix_palette
142 #define GL_OES_extended_matrix_palette 1
145 #ifndef GL_OES_fbo_render_mipmap
146 #define GL_OES_fbo_render_mipmap 1
149 #ifndef GL_OES_fixed_point
150 #define GL_OES_fixed_point 1
151 #define GL_FIXED_OES 0x140C
152 typedef void (GL_APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref);
153 typedef void (GL_APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
154 typedef void (GL_APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth);
155 typedef void (GL_APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane,
const GLfixed *equation);
156 typedef void (GL_APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
157 typedef void (GL_APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f);
158 typedef void (GL_APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
159 typedef void (GL_APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname,
const GLfixed *param);
160 typedef void (GL_APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
161 typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed *equation);
162 typedef void (GL_APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
163 typedef void (GL_APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
164 typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
165 typedef void (GL_APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
166 typedef void (GL_APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname,
const GLfixed *param);
167 typedef void (GL_APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
168 typedef void (GL_APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname,
const GLfixed *params);
169 typedef void (GL_APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
170 typedef void (GL_APIENTRYP PFNGLLOADMATRIXXOESPROC) (
const GLfixed *m);
171 typedef void (GL_APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
172 typedef void (GL_APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname,
const GLfixed *param);
173 typedef void (GL_APIENTRYP PFNGLMULTMATRIXXOESPROC) (
const GLfixed *m);
174 typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
175 typedef void (GL_APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
176 typedef void (GL_APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
177 typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname,
const GLfixed *params);
178 typedef void (GL_APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
179 typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
180 typedef void (GL_APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
181 typedef void (GL_APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
182 typedef void (GL_APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
183 typedef void (GL_APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname,
const GLfixed *params);
184 typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
185 typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname,
const GLfixed *params);
186 typedef void (GL_APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
187 typedef void (GL_APIENTRYP PFNGLGETLIGHTXVOESPROC) (GLenum light, GLenum pname, GLfixed *params);
188 typedef void (GL_APIENTRYP PFNGLGETMATERIALXVOESPROC) (GLenum face, GLenum pname, GLfixed *params);
189 typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXOESPROC) (GLenum pname, GLfixed param);
190 typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC) (GLclampx value, GLboolean invert);
191 typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
192 typedef void (GL_APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
193 typedef void (GL_APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname,
const GLfixed *params);
194 #ifdef GL_GLEXT_PROTOTYPES
195 GL_API
void GL_APIENTRY glAlphaFuncxOES (GLenum func, GLfixed ref);
196 GL_API
void GL_APIENTRY glClearColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
197 GL_API
void GL_APIENTRY glClearDepthxOES (GLfixed depth);
198 GL_API
void GL_APIENTRY glClipPlanexOES (GLenum plane,
const GLfixed *equation);
199 GL_API
void GL_APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
200 GL_API
void GL_APIENTRY glDepthRangexOES (GLfixed n, GLfixed f);
201 GL_API
void GL_APIENTRY glFogxOES (GLenum pname, GLfixed param);
202 GL_API
void GL_APIENTRY glFogxvOES (GLenum pname,
const GLfixed *param);
203 GL_API
void GL_APIENTRY glFrustumxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
204 GL_API
void GL_APIENTRY glGetClipPlanexOES (GLenum plane, GLfixed *equation);
205 GL_API
void GL_APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
206 GL_API
void GL_APIENTRY glGetTexEnvxvOES (GLenum target, GLenum pname, GLfixed *params);
207 GL_API
void GL_APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
208 GL_API
void GL_APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
209 GL_API
void GL_APIENTRY glLightModelxvOES (GLenum pname,
const GLfixed *param);
210 GL_API
void GL_APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
211 GL_API
void GL_APIENTRY glLightxvOES (GLenum light, GLenum pname,
const GLfixed *params);
212 GL_API
void GL_APIENTRY glLineWidthxOES (GLfixed width);
213 GL_API
void GL_APIENTRY glLoadMatrixxOES (
const GLfixed *m);
214 GL_API
void GL_APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
215 GL_API
void GL_APIENTRY glMaterialxvOES (GLenum face, GLenum pname,
const GLfixed *param);
216 GL_API
void GL_APIENTRY glMultMatrixxOES (
const GLfixed *m);
217 GL_API
void GL_APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
218 GL_API
void GL_APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
219 GL_API
void GL_APIENTRY glOrthoxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
220 GL_API
void GL_APIENTRY glPointParameterxvOES (GLenum pname,
const GLfixed *params);
221 GL_API
void GL_APIENTRY glPointSizexOES (GLfixed size);
222 GL_API
void GL_APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
223 GL_API
void GL_APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
224 GL_API
void GL_APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
225 GL_API
void GL_APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
226 GL_API
void GL_APIENTRY glTexEnvxvOES (GLenum target, GLenum pname,
const GLfixed *params);
227 GL_API
void GL_APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
228 GL_API
void GL_APIENTRY glTexParameterxvOES (GLenum target, GLenum pname,
const GLfixed *params);
229 GL_API
void GL_APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
230 GL_API
void GL_APIENTRY glGetLightxvOES (GLenum light, GLenum pname, GLfixed *params);
231 GL_API
void GL_APIENTRY glGetMaterialxvOES (GLenum face, GLenum pname, GLfixed *params);
232 GL_API
void GL_APIENTRY glPointParameterxOES (GLenum pname, GLfixed param);
233 GL_API
void GL_APIENTRY glSampleCoveragexOES (GLclampx value, GLboolean invert);
234 GL_API
void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
235 GL_API
void GL_APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
236 GL_API
void GL_APIENTRY glTexGenxvOES (GLenum coord, GLenum pname,
const GLfixed *params);
240 #ifndef GL_OES_framebuffer_object
241 #define GL_OES_framebuffer_object 1
242 #define GL_NONE_OES 0
243 #define GL_FRAMEBUFFER_OES 0x8D40
244 #define GL_RENDERBUFFER_OES 0x8D41
245 #define GL_RGBA4_OES 0x8056
246 #define GL_RGB5_A1_OES 0x8057
247 #define GL_RGB565_OES 0x8D62
248 #define GL_DEPTH_COMPONENT16_OES 0x81A5
249 #define GL_RENDERBUFFER_WIDTH_OES 0x8D42
250 #define GL_RENDERBUFFER_HEIGHT_OES 0x8D43
251 #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES 0x8D44
252 #define GL_RENDERBUFFER_RED_SIZE_OES 0x8D50
253 #define GL_RENDERBUFFER_GREEN_SIZE_OES 0x8D51
254 #define GL_RENDERBUFFER_BLUE_SIZE_OES 0x8D52
255 #define GL_RENDERBUFFER_ALPHA_SIZE_OES 0x8D53
256 #define GL_RENDERBUFFER_DEPTH_SIZE_OES 0x8D54
257 #define GL_RENDERBUFFER_STENCIL_SIZE_OES 0x8D55
258 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES 0x8CD0
259 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES 0x8CD1
260 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES 0x8CD2
261 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3
262 #define GL_COLOR_ATTACHMENT0_OES 0x8CE0
263 #define GL_DEPTH_ATTACHMENT_OES 0x8D00
264 #define GL_STENCIL_ATTACHMENT_OES 0x8D20
265 #define GL_FRAMEBUFFER_COMPLETE_OES 0x8CD5
266 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES 0x8CD6
267 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7
268 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES 0x8CD9
269 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES 0x8CDA
270 #define GL_FRAMEBUFFER_UNSUPPORTED_OES 0x8CDD
271 #define GL_FRAMEBUFFER_BINDING_OES 0x8CA6
272 #define GL_RENDERBUFFER_BINDING_OES 0x8CA7
273 #define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8
274 #define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506
275 typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFEROESPROC) (GLuint renderbuffer);
276 typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFEROESPROC) (GLenum target, GLuint renderbuffer);
277 typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSOESPROC) (GLsizei n,
const GLuint *renderbuffers);
278 typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSOESPROC) (GLsizei n, GLuint *renderbuffers);
279 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
280 typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVOESPROC) (GLenum target, GLenum pname, GLint *params);
281 typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFEROESPROC) (GLuint framebuffer);
282 typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFEROESPROC) (GLenum target, GLuint framebuffer);
283 typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSOESPROC) (GLsizei n,
const GLuint *framebuffers);
284 typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSOESPROC) (GLsizei n, GLuint *framebuffers);
285 typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSOESPROC) (GLenum target);
286 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEROESPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
287 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
288 typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
289 typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPOESPROC) (GLenum target);
290 #ifdef GL_GLEXT_PROTOTYPES
291 GL_API GLboolean GL_APIENTRY glIsRenderbufferOES (GLuint renderbuffer);
292 GL_API
void GL_APIENTRY glBindRenderbufferOES (GLenum target, GLuint renderbuffer);
293 GL_API
void GL_APIENTRY glDeleteRenderbuffersOES (GLsizei n,
const GLuint *renderbuffers);
294 GL_API
void GL_APIENTRY glGenRenderbuffersOES (GLsizei n, GLuint *renderbuffers);
295 GL_API
void GL_APIENTRY glRenderbufferStorageOES (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
296 GL_API
void GL_APIENTRY glGetRenderbufferParameterivOES (GLenum target, GLenum pname, GLint *params);
297 GL_API GLboolean GL_APIENTRY glIsFramebufferOES (GLuint framebuffer);
298 GL_API
void GL_APIENTRY glBindFramebufferOES (GLenum target, GLuint framebuffer);
299 GL_API
void GL_APIENTRY glDeleteFramebuffersOES (GLsizei n,
const GLuint *framebuffers);
300 GL_API
void GL_APIENTRY glGenFramebuffersOES (GLsizei n, GLuint *framebuffers);
301 GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES (GLenum target);
302 GL_API
void GL_APIENTRY glFramebufferRenderbufferOES (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
303 GL_API
void GL_APIENTRY glFramebufferTexture2DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
304 GL_API
void GL_APIENTRY glGetFramebufferAttachmentParameterivOES (GLenum target, GLenum attachment, GLenum pname, GLint *params);
305 GL_API
void GL_APIENTRY glGenerateMipmapOES (GLenum target);
309 #ifndef GL_OES_mapbuffer
310 #define GL_OES_mapbuffer 1
311 #define GL_WRITE_ONLY_OES 0x88B9
312 #define GL_BUFFER_ACCESS_OES 0x88BB
313 #define GL_BUFFER_MAPPED_OES 0x88BC
314 #define GL_BUFFER_MAP_POINTER_OES 0x88BD
315 typedef void *(GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
316 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
317 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname,
void **params);
318 #ifdef GL_GLEXT_PROTOTYPES
319 GL_API
void *GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
320 GL_API GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
321 GL_API
void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname,
void **params);
325 #ifndef GL_OES_matrix_get
326 #define GL_OES_matrix_get 1
327 #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D
328 #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E
329 #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F
332 #ifndef GL_OES_matrix_palette
333 #define GL_OES_matrix_palette 1
334 #define GL_MAX_VERTEX_UNITS_OES 0x86A4
335 #define GL_MAX_PALETTE_MATRICES_OES 0x8842
336 #define GL_MATRIX_PALETTE_OES 0x8840
337 #define GL_MATRIX_INDEX_ARRAY_OES 0x8844
338 #define GL_WEIGHT_ARRAY_OES 0x86AD
339 #define GL_CURRENT_PALETTE_MATRIX_OES 0x8843
340 #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846
341 #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847
342 #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848
343 #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
344 #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
345 #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB
346 #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9
347 #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA
348 #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC
349 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
350 typedef void (GL_APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC) (GLuint matrixpaletteindex);
351 typedef void (GL_APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC) (void);
352 typedef void (GL_APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride,
const void *pointer);
353 typedef void (GL_APIENTRYP PFNGLWEIGHTPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride,
const void *pointer);
354 #ifdef GL_GLEXT_PROTOTYPES
355 GL_API
void GL_APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex);
356 GL_API
void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES (
void);
357 GL_API
void GL_APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride,
const void *pointer);
358 GL_API
void GL_APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride,
const void *pointer);
362 #ifndef GL_OES_packed_depth_stencil
363 #define GL_OES_packed_depth_stencil 1
364 #define GL_DEPTH_STENCIL_OES 0x84F9
365 #define GL_UNSIGNED_INT_24_8_OES 0x84FA
366 #define GL_DEPTH24_STENCIL8_OES 0x88F0
369 #ifndef GL_OES_query_matrix
370 #define GL_OES_query_matrix 1
371 typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed *mantissa, GLint *exponent);
372 #ifdef GL_GLEXT_PROTOTYPES
373 GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed *mantissa, GLint *exponent);
377 #ifndef GL_OES_required_internalformat
378 #define GL_OES_required_internalformat 1
379 #define GL_ALPHA8_OES 0x803C
380 #define GL_LUMINANCE4_ALPHA4_OES 0x8043
381 #define GL_LUMINANCE8_ALPHA8_OES 0x8045
382 #define GL_LUMINANCE8_OES 0x8040
383 #define GL_RGB8_OES 0x8051
384 #define GL_RGBA8_OES 0x8058
385 #define GL_RGB10_EXT 0x8052
386 #define GL_RGB10_A2_EXT 0x8059
389 #ifndef GL_OES_rgb8_rgba8
390 #define GL_OES_rgb8_rgba8 1
393 #ifndef GL_OES_single_precision
394 #define GL_OES_single_precision 1
395 typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth);
396 typedef void (GL_APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane,
const GLfloat *equation);
397 typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f);
398 typedef void (GL_APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
399 typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat *equation);
400 typedef void (GL_APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
401 #ifdef GL_GLEXT_PROTOTYPES
402 GL_API
void GL_APIENTRY glClearDepthfOES (GLclampf depth);
403 GL_API
void GL_APIENTRY glClipPlanefOES (GLenum plane,
const GLfloat *equation);
404 GL_API
void GL_APIENTRY glDepthRangefOES (GLclampf n, GLclampf f);
405 GL_API
void GL_APIENTRY glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
406 GL_API
void GL_APIENTRY glGetClipPlanefOES (GLenum plane, GLfloat *equation);
407 GL_API
void GL_APIENTRY glOrthofOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
411 #ifndef GL_OES_stencil1
412 #define GL_OES_stencil1 1
413 #define GL_STENCIL_INDEX1_OES 0x8D46
416 #ifndef GL_OES_stencil4
417 #define GL_OES_stencil4 1
418 #define GL_STENCIL_INDEX4_OES 0x8D47
421 #ifndef GL_OES_stencil8
422 #define GL_OES_stencil8 1
423 #define GL_STENCIL_INDEX8_OES 0x8D48
426 #ifndef GL_OES_stencil_wrap
427 #define GL_OES_stencil_wrap 1
428 #define GL_INCR_WRAP_OES 0x8507
429 #define GL_DECR_WRAP_OES 0x8508
432 #ifndef GL_OES_surfaceless_context
433 #define GL_OES_surfaceless_context 1
434 #define GL_FRAMEBUFFER_UNDEFINED_OES 0x8219
437 #ifndef GL_OES_texture_cube_map
438 #define GL_OES_texture_cube_map 1
439 #define GL_NORMAL_MAP_OES 0x8511
440 #define GL_REFLECTION_MAP_OES 0x8512
441 #define GL_TEXTURE_CUBE_MAP_OES 0x8513
442 #define GL_TEXTURE_BINDING_CUBE_MAP_OES 0x8514
443 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES 0x8515
444 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES 0x8516
445 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES 0x8517
446 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES 0x8518
447 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES 0x8519
448 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES 0x851A
449 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES 0x851C
450 #define GL_TEXTURE_GEN_MODE_OES 0x2500
451 #define GL_TEXTURE_GEN_STR_OES 0x8D60
452 typedef void (GL_APIENTRYP PFNGLTEXGENFOESPROC) (GLenum coord, GLenum pname, GLfloat param);
453 typedef void (GL_APIENTRYP PFNGLTEXGENFVOESPROC) (GLenum coord, GLenum pname,
const GLfloat *params);
454 typedef void (GL_APIENTRYP PFNGLTEXGENIOESPROC) (GLenum coord, GLenum pname, GLint param);
455 typedef void (GL_APIENTRYP PFNGLTEXGENIVOESPROC) (GLenum coord, GLenum pname,
const GLint *params);
456 typedef void (GL_APIENTRYP PFNGLGETTEXGENFVOESPROC) (GLenum coord, GLenum pname, GLfloat *params);
457 typedef void (GL_APIENTRYP PFNGLGETTEXGENIVOESPROC) (GLenum coord, GLenum pname, GLint *params);
458 #ifdef GL_GLEXT_PROTOTYPES
459 GL_API
void GL_APIENTRY glTexGenfOES (GLenum coord, GLenum pname, GLfloat param);
460 GL_API
void GL_APIENTRY glTexGenfvOES (GLenum coord, GLenum pname,
const GLfloat *params);
461 GL_API
void GL_APIENTRY glTexGeniOES (GLenum coord, GLenum pname, GLint param);
462 GL_API
void GL_APIENTRY glTexGenivOES (GLenum coord, GLenum pname,
const GLint *params);
463 GL_API
void GL_APIENTRY glGetTexGenfvOES (GLenum coord, GLenum pname, GLfloat *params);
464 GL_API
void GL_APIENTRY glGetTexGenivOES (GLenum coord, GLenum pname, GLint *params);
468 #ifndef GL_OES_texture_env_crossbar
469 #define GL_OES_texture_env_crossbar 1
472 #ifndef GL_OES_texture_mirrored_repeat
473 #define GL_OES_texture_mirrored_repeat 1
474 #define GL_MIRRORED_REPEAT_OES 0x8370
477 #ifndef GL_OES_texture_npot
478 #define GL_OES_texture_npot 1
481 #ifndef GL_OES_vertex_array_object
482 #define GL_OES_vertex_array_object 1
483 #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
484 typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
485 typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n,
const GLuint *arrays);
486 typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
487 typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
488 #ifdef GL_GLEXT_PROTOTYPES
489 GL_API
void GL_APIENTRY glBindVertexArrayOES (GLuint array);
490 GL_API
void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n,
const GLuint *arrays);
491 GL_API
void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
492 GL_API GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
496 #ifndef GL_AMD_compressed_3DC_texture
497 #define GL_AMD_compressed_3DC_texture 1
498 #define GL_3DC_X_AMD 0x87F9
499 #define GL_3DC_XY_AMD 0x87FA
502 #ifndef GL_AMD_compressed_ATC_texture
503 #define GL_AMD_compressed_ATC_texture 1
504 #define GL_ATC_RGB_AMD 0x8C92
505 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
506 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
509 #ifndef GL_APPLE_copy_texture_levels
510 #define GL_APPLE_copy_texture_levels 1
511 typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
512 #ifdef GL_GLEXT_PROTOTYPES
513 GL_API
void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
517 #ifndef GL_APPLE_framebuffer_multisample
518 #define GL_APPLE_framebuffer_multisample 1
519 #define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB
520 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
521 #define GL_MAX_SAMPLES_APPLE 0x8D57
522 #define GL_READ_FRAMEBUFFER_APPLE 0x8CA8
523 #define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9
524 #define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
525 #define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
526 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
527 typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
528 #ifdef GL_GLEXT_PROTOTYPES
529 GL_API
void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
530 GL_API
void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (
void);
534 #ifndef GL_APPLE_sync
535 #define GL_APPLE_sync 1
536 typedef struct __GLsync *GLsync;
537 typedef khronos_uint64_t GLuint64;
538 typedef khronos_int64_t GLint64;
539 #define GL_SYNC_OBJECT_APPLE 0x8A53
540 #define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE 0x9111
541 #define GL_OBJECT_TYPE_APPLE 0x9112
542 #define GL_SYNC_CONDITION_APPLE 0x9113
543 #define GL_SYNC_STATUS_APPLE 0x9114
544 #define GL_SYNC_FLAGS_APPLE 0x9115
545 #define GL_SYNC_FENCE_APPLE 0x9116
546 #define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE 0x9117
547 #define GL_UNSIGNALED_APPLE 0x9118
548 #define GL_SIGNALED_APPLE 0x9119
549 #define GL_ALREADY_SIGNALED_APPLE 0x911A
550 #define GL_TIMEOUT_EXPIRED_APPLE 0x911B
551 #define GL_CONDITION_SATISFIED_APPLE 0x911C
552 #define GL_WAIT_FAILED_APPLE 0x911D
553 #define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE 0x00000001
554 #define GL_TIMEOUT_IGNORED_APPLE 0xFFFFFFFFFFFFFFFFull
555 typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
556 typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
557 typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
558 typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
559 typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
560 typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
561 typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
562 #ifdef GL_GLEXT_PROTOTYPES
563 GL_API GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
564 GL_API GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
565 GL_API
void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
566 GL_API GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
567 GL_API
void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
568 GL_API
void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
569 GL_API
void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
573 #ifndef GL_APPLE_texture_2D_limited_npot
574 #define GL_APPLE_texture_2D_limited_npot 1
577 #ifndef GL_APPLE_texture_format_BGRA8888
578 #define GL_APPLE_texture_format_BGRA8888 1
579 #define GL_BGRA_EXT 0x80E1
580 #define GL_BGRA8_EXT 0x93A1
583 #ifndef GL_APPLE_texture_max_level
584 #define GL_APPLE_texture_max_level 1
585 #define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D
589 #define GL_ARM_rgba8 1
592 #ifndef GL_EXT_blend_minmax
593 #define GL_EXT_blend_minmax 1
594 #define GL_MIN_EXT 0x8007
595 #define GL_MAX_EXT 0x8008
598 #ifndef GL_EXT_debug_marker
599 #define GL_EXT_debug_marker 1
601 typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length,
const GLchar *marker);
602 typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length,
const GLchar *marker);
603 typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
604 #ifdef GL_GLEXT_PROTOTYPES
605 GL_API
void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length,
const GLchar *marker);
606 GL_API
void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length,
const GLchar *marker);
607 GL_API
void GL_APIENTRY glPopGroupMarkerEXT (
void);
611 #ifndef GL_EXT_discard_framebuffer
612 #define GL_EXT_discard_framebuffer 1
613 #define GL_COLOR_EXT 0x1800
614 #define GL_DEPTH_EXT 0x1801
615 #define GL_STENCIL_EXT 0x1802
616 typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments,
const GLenum *attachments);
617 #ifdef GL_GLEXT_PROTOTYPES
618 GL_API
void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments,
const GLenum *attachments);
622 #ifndef GL_EXT_map_buffer_range
623 #define GL_EXT_map_buffer_range 1
624 #define GL_MAP_READ_BIT_EXT 0x0001
625 #define GL_MAP_WRITE_BIT_EXT 0x0002
626 #define GL_MAP_INVALIDATE_RANGE_BIT_EXT 0x0004
627 #define GL_MAP_INVALIDATE_BUFFER_BIT_EXT 0x0008
628 #define GL_MAP_FLUSH_EXPLICIT_BIT_EXT 0x0010
629 #define GL_MAP_UNSYNCHRONIZED_BIT_EXT 0x0020
630 typedef void *(GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
631 typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
632 #ifdef GL_GLEXT_PROTOTYPES
633 GL_API
void *GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
634 GL_API
void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
638 #ifndef GL_EXT_multi_draw_arrays
639 #define GL_EXT_multi_draw_arrays 1
640 typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode,
const GLint *first,
const GLsizei *count, GLsizei primcount);
641 typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode,
const GLsizei *count, GLenum type,
const void *
const*indices, GLsizei primcount);
642 #ifdef GL_GLEXT_PROTOTYPES
643 GL_API
void GL_APIENTRY glMultiDrawArraysEXT (GLenum mode,
const GLint *first,
const GLsizei *count, GLsizei primcount);
644 GL_API
void GL_APIENTRY glMultiDrawElementsEXT (GLenum mode,
const GLsizei *count, GLenum type,
const void *
const*indices, GLsizei primcount);
648 #ifndef GL_EXT_multisampled_render_to_texture
649 #define GL_EXT_multisampled_render_to_texture 1
650 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C
651 #define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB
652 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
653 #define GL_MAX_SAMPLES_EXT 0x8D57
654 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
655 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
656 #ifdef GL_GLEXT_PROTOTYPES
657 GL_API
void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
658 GL_API
void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
662 #ifndef GL_EXT_read_format_bgra
663 #define GL_EXT_read_format_bgra 1
664 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
665 #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
668 #ifndef GL_EXT_robustness
669 #define GL_EXT_robustness 1
670 #define GL_GUILTY_CONTEXT_RESET_EXT 0x8253
671 #define GL_INNOCENT_CONTEXT_RESET_EXT 0x8254
672 #define GL_UNKNOWN_CONTEXT_RESET_EXT 0x8255
673 #define GL_CONTEXT_ROBUST_ACCESS_EXT 0x90F3
674 #define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256
675 #define GL_LOSE_CONTEXT_ON_RESET_EXT 0x8252
676 #define GL_NO_RESET_NOTIFICATION_EXT 0x8261
677 typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
678 typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize,
void *data);
679 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
680 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
681 #ifdef GL_GLEXT_PROTOTYPES
682 GL_API GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (
void);
683 GL_API
void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize,
void *data);
684 GL_API
void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
685 GL_API
void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
690 #define GL_EXT_sRGB 1
691 #define GL_SRGB_EXT 0x8C40
692 #define GL_SRGB_ALPHA_EXT 0x8C42
693 #define GL_SRGB8_ALPHA8_EXT 0x8C43
694 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210
697 #ifndef GL_EXT_texture_compression_dxt1
698 #define GL_EXT_texture_compression_dxt1 1
699 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
700 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
703 #ifndef GL_EXT_texture_filter_anisotropic
704 #define GL_EXT_texture_filter_anisotropic 1
705 #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
706 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
709 #ifndef GL_EXT_texture_format_BGRA8888
710 #define GL_EXT_texture_format_BGRA8888 1
713 #ifndef GL_EXT_texture_lod_bias
714 #define GL_EXT_texture_lod_bias 1
715 #define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD
716 #define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
717 #define GL_TEXTURE_LOD_BIAS_EXT 0x8501
720 #ifndef GL_EXT_texture_storage
721 #define GL_EXT_texture_storage 1
722 #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
723 #define GL_ALPHA8_EXT 0x803C
724 #define GL_LUMINANCE8_EXT 0x8040
725 #define GL_LUMINANCE8_ALPHA8_EXT 0x8045
726 #define GL_RGBA32F_EXT 0x8814
727 #define GL_RGB32F_EXT 0x8815
728 #define GL_ALPHA32F_EXT 0x8816
729 #define GL_LUMINANCE32F_EXT 0x8818
730 #define GL_LUMINANCE_ALPHA32F_EXT 0x8819
731 #define GL_RGBA16F_EXT 0x881A
732 #define GL_RGB16F_EXT 0x881B
733 #define GL_ALPHA16F_EXT 0x881C
734 #define GL_LUMINANCE16F_EXT 0x881E
735 #define GL_LUMINANCE_ALPHA16F_EXT 0x881F
736 #define GL_R8_EXT 0x8229
737 #define GL_RG8_EXT 0x822B
738 #define GL_R32F_EXT 0x822E
739 #define GL_RG32F_EXT 0x8230
740 #define GL_R16F_EXT 0x822D
741 #define GL_RG16F_EXT 0x822F
742 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
743 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
744 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
745 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
746 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
747 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
748 #ifdef GL_GLEXT_PROTOTYPES
749 GL_API
void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
750 GL_API
void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
751 GL_API
void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
752 GL_API
void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
753 GL_API
void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
754 GL_API
void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
758 #ifndef GL_IMG_multisampled_render_to_texture
759 #define GL_IMG_multisampled_render_to_texture 1
760 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
761 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
762 #define GL_MAX_SAMPLES_IMG 0x9135
763 #define GL_TEXTURE_SAMPLES_IMG 0x9136
764 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
765 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
766 #ifdef GL_GLEXT_PROTOTYPES
767 GL_API
void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
768 GL_API
void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
772 #ifndef GL_IMG_read_format
773 #define GL_IMG_read_format 1
774 #define GL_BGRA_IMG 0x80E1
775 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
778 #ifndef GL_IMG_texture_compression_pvrtc
779 #define GL_IMG_texture_compression_pvrtc 1
780 #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
781 #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
782 #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
783 #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
786 #ifndef GL_IMG_texture_env_enhanced_fixed_function
787 #define GL_IMG_texture_env_enhanced_fixed_function 1
788 #define GL_MODULATE_COLOR_IMG 0x8C04
789 #define GL_RECIP_ADD_SIGNED_ALPHA_IMG 0x8C05
790 #define GL_TEXTURE_ALPHA_MODULATE_IMG 0x8C06
791 #define GL_FACTOR_ALPHA_MODULATE_IMG 0x8C07
792 #define GL_FRAGMENT_ALPHA_MODULATE_IMG 0x8C08
793 #define GL_ADD_BLEND_IMG 0x8C09
794 #define GL_DOT3_RGBA_IMG 0x86AF
797 #ifndef GL_IMG_user_clip_plane
798 #define GL_IMG_user_clip_plane 1
799 #define GL_CLIP_PLANE0_IMG 0x3000
800 #define GL_CLIP_PLANE1_IMG 0x3001
801 #define GL_CLIP_PLANE2_IMG 0x3002
802 #define GL_CLIP_PLANE3_IMG 0x3003
803 #define GL_CLIP_PLANE4_IMG 0x3004
804 #define GL_CLIP_PLANE5_IMG 0x3005
805 #define GL_MAX_CLIP_PLANES_IMG 0x0D32
806 typedef void (GL_APIENTRYP PFNGLCLIPPLANEFIMGPROC) (GLenum p,
const GLfloat *eqn);
807 typedef void (GL_APIENTRYP PFNGLCLIPPLANEXIMGPROC) (GLenum p,
const GLfixed *eqn);
808 #ifdef GL_GLEXT_PROTOTYPES
809 GL_API
void GL_APIENTRY glClipPlanefIMG (GLenum p,
const GLfloat *eqn);
810 GL_API
void GL_APIENTRY glClipPlanexIMG (GLenum p,
const GLfixed *eqn);
815 #define GL_NV_fence 1
816 #define GL_ALL_COMPLETED_NV 0x84F2
817 #define GL_FENCE_STATUS_NV 0x84F3
818 #define GL_FENCE_CONDITION_NV 0x84F4
819 typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n,
const GLuint *fences);
820 typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
821 typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
822 typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
823 typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
824 typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
825 typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
826 #ifdef GL_GLEXT_PROTOTYPES
827 GL_API
void GL_APIENTRY glDeleteFencesNV (GLsizei n,
const GLuint *fences);
828 GL_API
void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
829 GL_API GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
830 GL_API GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
831 GL_API
void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
832 GL_API
void GL_APIENTRY glFinishFenceNV (GLuint fence);
833 GL_API
void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
837 #ifndef GL_QCOM_driver_control
838 #define GL_QCOM_driver_control 1
839 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
840 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
841 typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
842 typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
843 #ifdef GL_GLEXT_PROTOTYPES
844 GL_API
void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
845 GL_API
void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
846 GL_API
void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
847 GL_API
void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
851 #ifndef GL_QCOM_extended_get
852 #define GL_QCOM_extended_get 1
853 #define GL_TEXTURE_WIDTH_QCOM 0x8BD2
854 #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3
855 #define GL_TEXTURE_DEPTH_QCOM 0x8BD4
856 #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5
857 #define GL_TEXTURE_FORMAT_QCOM 0x8BD6
858 #define GL_TEXTURE_TYPE_QCOM 0x8BD7
859 #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8
860 #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9
861 #define GL_TEXTURE_TARGET_QCOM 0x8BDA
862 #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB
863 #define GL_STATE_RESTORE 0x8BDC
864 typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
865 typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
866 typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
867 typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
868 typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
869 typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
870 typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type,
void *texels);
871 typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target,
void **params);
872 #ifdef GL_GLEXT_PROTOTYPES
873 GL_API
void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
874 GL_API
void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
875 GL_API
void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
876 GL_API
void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
877 GL_API
void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
878 GL_API
void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
879 GL_API
void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type,
void *texels);
880 GL_API
void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target,
void **params);
884 #ifndef GL_QCOM_extended_get2
885 #define GL_QCOM_extended_get2 1
886 typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
887 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
888 typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
889 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
890 #ifdef GL_GLEXT_PROTOTYPES
891 GL_API
void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
892 GL_API
void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
893 GL_API GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
894 GL_API
void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
898 #ifndef GL_QCOM_perfmon_global_mode
899 #define GL_QCOM_perfmon_global_mode 1
900 #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0
903 #ifndef GL_QCOM_tiled_rendering
904 #define GL_QCOM_tiled_rendering 1
905 #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001
906 #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002
907 #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004
908 #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008
909 #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010
910 #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020
911 #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040
912 #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080
913 #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100
914 #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200
915 #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400
916 #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800
917 #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000
918 #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000
919 #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000
920 #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000
921 #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000
922 #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000
923 #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000
924 #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000
925 #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000
926 #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000
927 #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000
928 #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000
929 #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000
930 #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000
931 #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000
932 #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000
933 #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000
934 #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000
935 #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000
936 #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000
937 typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
938 typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
939 #ifdef GL_GLEXT_PROTOTYPES
940 GL_API
void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
941 GL_API
void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
945 #ifndef GL_QCOM_writeonly_rendering
946 #define GL_QCOM_writeonly_rendering 1
947 #define GL_WRITEONLY_RENDERING_QCOM 0x8823