sl@0: #ifndef __glext_h_ sl@0: #define __glext_h_ sl@0: sl@0: /* differences from the actual sample implemtation provided by Khronos: sl@0: - this comment sl@0: - the Doxygen comment with tag 'publishedAll', and tag 'released' sl@0: - added __SOFTFP decorations for call-by-value float functions sl@0: */ sl@0: sl@0: /** sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #ifdef __cplusplus sl@0: extern "C" { sl@0: #endif sl@0: sl@0: /* sl@0: ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) sl@0: ** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved. sl@0: ** sl@0: ** Permission is hereby granted, free of charge, to any person obtaining sl@0: ** a copy of this software and associated documentation files sl@0: ** (the "Software"), to deal in the Software without restriction, sl@0: ** including without limitation the rights to use, copy, modify, merge, sl@0: ** publish, distribute, sublicense, and/or sell copies of the Software, sl@0: ** and to permit persons to whom the Software is furnished to do so, sl@0: ** subject to the following conditions: sl@0: ** sl@0: ** The above copyright notice including the dates of first sl@0: ** publication and either this permission notice or a reference to sl@0: ** http://oss.sgi.com/projects/FreeB/ shall be included in all copies sl@0: ** or substantial portions of the Software. sl@0: ** sl@0: ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, sl@0: ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF sl@0: ** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. sl@0: ** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, sl@0: ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR sl@0: ** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR sl@0: ** THE USE OR OTHER DEALINGS IN THE SOFTWARE. sl@0: ** sl@0: ** Except as contained in this notice, the name of Silicon Graphics, Inc. sl@0: ** shall not be used in advertising or otherwise to promote the sale, use sl@0: ** or other dealings in this Software without prior written authorization sl@0: ** from Silicon Graphics, Inc. sl@0: */ sl@0: sl@0: #ifndef GL_APIENTRYP sl@0: # define GL_APIENTRYP GL_APIENTRY* sl@0: #endif sl@0: sl@0: /*------------------------------------------------------------------------* sl@0: * OES extension tokens sl@0: *------------------------------------------------------------------------*/ sl@0: sl@0: /* GL_OES_blend_equation_separate */ sl@0: #ifndef GL_OES_blend_equation_separate sl@0: /* BLEND_EQUATION_RGB_OES same as BLEND_EQUATION_OES */ sl@0: #define GL_BLEND_EQUATION_RGB_OES 0x8009 sl@0: #define GL_BLEND_EQUATION_ALPHA_OES 0x883D sl@0: #endif sl@0: sl@0: /* GL_OES_blend_func_separate */ sl@0: #ifndef GL_OES_blend_func_separate sl@0: #define GL_BLEND_DST_RGB_OES 0x80C8 sl@0: #define GL_BLEND_SRC_RGB_OES 0x80C9 sl@0: #define GL_BLEND_DST_ALPHA_OES 0x80CA sl@0: #define GL_BLEND_SRC_ALPHA_OES 0x80CB sl@0: #endif sl@0: sl@0: /* GL_OES_blend_subtract */ sl@0: #ifndef GL_OES_blend_subtract sl@0: #define GL_BLEND_EQUATION_OES 0x8009 sl@0: #define GL_FUNC_ADD_OES 0x8006 sl@0: #define GL_FUNC_SUBTRACT_OES 0x800A sl@0: #define GL_FUNC_REVERSE_SUBTRACT_OES 0x800B sl@0: #endif sl@0: sl@0: /* GL_OES_compressed_ETC1_RGB8_texture */ sl@0: #ifndef GL_OES_compressed_ETC1_RGB8_texture sl@0: #define GL_ETC1_RGB8_OES 0x8D64 sl@0: #endif sl@0: sl@0: /* OES_draw_texture */ sl@0: #ifndef GL_OES_draw_texture sl@0: #define GL_TEXTURE_CROP_RECT_OES 0x8B9D sl@0: #endif sl@0: sl@0: /* OES_fixed_point */ sl@0: #ifndef GL_OES_fixed_point sl@0: #define GL_FIXED_OES 0x140C sl@0: #endif sl@0: sl@0: /* OES_framebuffer_object */ sl@0: #ifndef GL_OES_framebuffer_object sl@0: #define GL_FRAMEBUFFER_OES 0x8D40 sl@0: #define GL_RENDERBUFFER_OES 0x8D41 sl@0: #define GL_RGBA4_OES 0x8056 sl@0: #define GL_RGB5_A1_OES 0x8057 sl@0: #define GL_RGB565_OES 0x8D62 sl@0: #define GL_DEPTH_COMPONENT16_OES 0x81A5 sl@0: #define GL_RENDERBUFFER_WIDTH_OES 0x8D42 sl@0: #define GL_RENDERBUFFER_HEIGHT_OES 0x8D43 sl@0: #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES 0x8D44 sl@0: #define GL_RENDERBUFFER_RED_SIZE_OES 0x8D50 sl@0: #define GL_RENDERBUFFER_GREEN_SIZE_OES 0x8D51 sl@0: #define GL_RENDERBUFFER_BLUE_SIZE_OES 0x8D52 sl@0: #define GL_RENDERBUFFER_ALPHA_SIZE_OES 0x8D53 sl@0: #define GL_RENDERBUFFER_DEPTH_SIZE_OES 0x8D54 sl@0: #define GL_RENDERBUFFER_STENCIL_SIZE_OES 0x8D55 sl@0: #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES 0x8CD0 sl@0: #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES 0x8CD1 sl@0: #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES 0x8CD2 sl@0: #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3 sl@0: #define GL_COLOR_ATTACHMENT0_OES 0x8CE0 sl@0: #define GL_DEPTH_ATTACHMENT_OES 0x8D00 sl@0: #define GL_STENCIL_ATTACHMENT_OES 0x8D20 sl@0: #define GL_FRAMEBUFFER_COMPLETE_OES 0x8CD5 sl@0: #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES 0x8CD6 sl@0: #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7 sl@0: #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES 0x8CD9 sl@0: #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES 0x8CDA sl@0: #define GL_FRAMEBUFFER_UNSUPPORTED_OES 0x8CDD sl@0: #define GL_FRAMEBUFFER_BINDING_OES 0x8CA6 sl@0: #define GL_RENDERBUFFER_BINDING_OES 0x8CA7 sl@0: #define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8 sl@0: #define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506 sl@0: #endif sl@0: sl@0: /* OES_matrix_get */ sl@0: #ifndef GL_OES_matrix_get sl@0: #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D sl@0: #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E sl@0: #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F sl@0: #endif sl@0: sl@0: /* OES_matrix_palette */ sl@0: #ifndef GL_OES_matrix_palette sl@0: #define GL_MAX_VERTEX_UNITS_OES 0x86A4 sl@0: #define GL_MAX_PALETTE_MATRICES_OES 0x8842 sl@0: #define GL_MATRIX_PALETTE_OES 0x8840 sl@0: #define GL_MATRIX_INDEX_ARRAY_OES 0x8844 sl@0: #define GL_WEIGHT_ARRAY_OES 0x86AD sl@0: #define GL_CURRENT_PALETTE_MATRIX_OES 0x8843 sl@0: #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846 sl@0: #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847 sl@0: #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848 sl@0: #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849 sl@0: #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E sl@0: #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB sl@0: #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9 sl@0: #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA sl@0: #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC sl@0: #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E sl@0: #endif sl@0: sl@0: /* GL_OES_stencil_wrap */ sl@0: #ifndef GL_OES_stencil_wrap sl@0: #define GL_INCR_WRAP_OES 0x8507 sl@0: #define GL_DECR_WRAP_OES 0x8508 sl@0: #endif sl@0: sl@0: /* GL_OES_texture_cube_map */ sl@0: #ifndef GL_OES_texture_cube_map sl@0: #define GL_NORMAL_MAP_OES 0x8511 sl@0: #define GL_REFLECTION_MAP_OES 0x8512 sl@0: #define GL_TEXTURE_CUBE_MAP_OES 0x8513 sl@0: #define GL_TEXTURE_BINDING_CUBE_MAP_OES 0x8514 sl@0: #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES 0x8515 sl@0: #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES 0x8516 sl@0: #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES 0x8517 sl@0: #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES 0x8518 sl@0: #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES 0x8519 sl@0: #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES 0x851A sl@0: #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES 0x851C sl@0: #define GL_TEXTURE_GEN_MODE_OES 0x2500 sl@0: #define GL_TEXTURE_GEN_STR_OES 0x8D60 sl@0: #endif sl@0: sl@0: /* GL_OES_texture_mirrored_repeat */ sl@0: #ifndef GL_OES_texture_mirrored_repeat sl@0: #define GL_MIRRORED_REPEAT_OES 0x8370 sl@0: #endif sl@0: sl@0: /* GL_OES_EGL_image */ sl@0: #ifndef GL_OES_EGL_image sl@0: typedef void* GLeglImageOES; sl@0: #endif sl@0: sl@0: /* GL_OES_depth24 */ sl@0: #ifndef GL_OES_depth24 sl@0: #define GL_DEPTH_COMPONENT24_OES 0x81A6 sl@0: #endif sl@0: sl@0: /* GL_OES_depth32 */ sl@0: #ifndef GL_OES_depth32 sl@0: #define GL_DEPTH_COMPONENT32_OES 0x81A7 sl@0: #endif sl@0: sl@0: /* GL_OES_mapbuffer */ sl@0: #ifndef GL_OES_mapbuffer sl@0: #define GL_WRITE_ONLY_OES 0x88B9 sl@0: #define GL_BUFFER_ACCESS_OES 0x88BB sl@0: #define GL_BUFFER_MAPPED_OES 0x88BC sl@0: #define GL_BUFFER_MAP_POINTER_OES 0x88BD sl@0: #endif sl@0: sl@0: /* GL_OES_rgb8_rgba8 */ sl@0: #ifndef GL_OES_rgb8_rgba8 sl@0: #define GL_RGB8_OES 0x8051 sl@0: #define GL_RGBA8_OES 0x8058 sl@0: #endif sl@0: sl@0: /* GL_OES_stencil1 */ sl@0: #ifndef GL_OES_stencil1 sl@0: #define GL_STENCIL_INDEX1_OES 0x8D46 sl@0: #endif sl@0: sl@0: /* GL_OES_stencil4 */ sl@0: #ifndef GL_OES_stencil4 sl@0: #define GL_STENCIL_INDEX4_OES 0x8D47 sl@0: #endif sl@0: sl@0: /* GL_OES_stencil8 */ sl@0: #ifndef GL_OES_stencil8 sl@0: #define GL_STENCIL_INDEX8_OES 0x8D48 sl@0: #endif sl@0: sl@0: /* GL_AMD_compressed_3DC_texture */ sl@0: #ifndef GL_AMD_compressed_3DC_texture sl@0: #define GL_3DC_X_AMD 0x87F9 sl@0: #define GL_3DC_XY_AMD 0x87FA sl@0: #endif sl@0: sl@0: /* GL_AMD_compressed_ATC_texture */ sl@0: #ifndef GL_AMD_compressed_ATC_texture sl@0: #define GL_ATC_RGB_AMD 0x8C92 sl@0: #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93 sl@0: #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE sl@0: #endif sl@0: sl@0: /* GL_EXT_texture_filter_anisotropic */ sl@0: #ifndef GL_EXT_texture_filter_anisotropic sl@0: #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE sl@0: #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF sl@0: #endif sl@0: sl@0: /*------------------------------------------------------------------------* sl@0: * OES extension functions sl@0: *------------------------------------------------------------------------*/ sl@0: sl@0: /* GL_OES_blend_equation_separate */ sl@0: #ifndef GL_OES_blend_equation_separate sl@0: #define GL_OES_blend_equation_separate 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glBlendEquationSeparateOES (GLenum modeRGB, GLenum modeAlpha); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha); sl@0: #endif sl@0: sl@0: /* GL_OES_blend_func_separate */ sl@0: #ifndef GL_OES_blend_func_separate sl@0: #define GL_OES_blend_func_separate 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glBlendFuncSeparateOES (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEOESPROC) (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); sl@0: #endif sl@0: sl@0: /* GL_OES_blend_subtract */ sl@0: #ifndef GL_OES_blend_subtract sl@0: #define GL_OES_blend_subtract 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glBlendEquationOES (GLenum mode); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONOESPROC) (GLenum mode); sl@0: #endif sl@0: sl@0: /* GL_OES_byte_coordinates */ sl@0: #ifndef GL_OES_byte_coordinates sl@0: #define GL_OES_byte_coordinates 1 sl@0: #endif sl@0: sl@0: /* GL_OES_compressed_ETC1_RGB8_texture */ sl@0: #ifndef GL_OES_compressed_ETC1_RGB8_texture sl@0: #define GL_OES_compressed_ETC1_RGB8_texture 1 sl@0: #endif sl@0: sl@0: /* GL_OES_draw_texture */ sl@0: #ifndef GL_OES_draw_texture sl@0: #define GL_OES_draw_texture 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); sl@0: GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height); sl@0: GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); sl@0: GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords); sl@0: GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords); sl@0: GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords); sl@0: GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height) __SOFTFP; sl@0: GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXSOESPROC) (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXIOESPROC) (GLint x, GLint y, GLint z, GLint width, GLint height); sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXXOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXSVOESPROC) (const GLshort *coords); sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXIVOESPROC) (const GLint *coords); sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXXVOESPROC) (const GLfixed *coords); sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXFOESPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height) __SOFTFP; sl@0: typedef void (GL_APIENTRYP PFNGLDRAWTEXFVOESPROC) (const GLfloat *coords); sl@0: #endif sl@0: sl@0: /* GL_OES_extended_matrix_palette */ sl@0: #ifndef GL_OES_extended_matrix_palette sl@0: #define GL_OES_extended_matrix_palette 1 sl@0: #endif sl@0: sl@0: /* GL_OES_fixed_point */ sl@0: #ifndef GL_OES_fixed_point sl@0: #define GL_OES_fixed_point 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glAlphaFuncxOES (GLenum func, GLclampx ref); sl@0: GL_API void GL_APIENTRY glClearColorxOES (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); sl@0: GL_API void GL_APIENTRY glClearDepthxOES (GLclampx depth); sl@0: GL_API void GL_APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation); sl@0: GL_API void GL_APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); sl@0: GL_API void GL_APIENTRY glDepthRangexOES (GLclampx zNear, GLclampx zFar); sl@0: GL_API void GL_APIENTRY glFogxOES (GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glFogxvOES (GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glFrustumxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); sl@0: GL_API void GL_APIENTRY glGetClipPlanexOES (GLenum pname, GLfixed eqn[4]); sl@0: GL_API void GL_APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetLightxvOES (GLenum light, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetMaterialxvOES (GLenum face, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetTexEnvxvOES (GLenum env, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glLightModelxOES (GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glLineWidthxOES (GLfixed width); sl@0: GL_API void GL_APIENTRY glLoadMatrixxOES (const GLfixed *m); sl@0: GL_API void GL_APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glMultMatrixxOES (const GLfixed *m); sl@0: GL_API void GL_APIENTRY glMultiTexCoord4xOES (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); sl@0: GL_API void GL_APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz); sl@0: GL_API void GL_APIENTRY glOrthoxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); sl@0: GL_API void GL_APIENTRY glPointParameterxOES (GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glPointSizexOES (GLfixed size); sl@0: GL_API void GL_APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units); sl@0: GL_API void GL_APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); sl@0: GL_API void GL_APIENTRY glSampleCoveragexOES (GLclampx value, GLboolean invert); sl@0: GL_API void GL_APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z); sl@0: GL_API void GL_APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLclampx ref); sl@0: typedef void (GL_APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); sl@0: typedef void (GL_APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLclampx depth); sl@0: typedef void (GL_APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation); sl@0: typedef void (GL_APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); sl@0: typedef void (GL_APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLclampx zNear, GLclampx zFar); sl@0: typedef void (GL_APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); sl@0: typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum pname, GLfixed eqn[4]); sl@0: typedef void (GL_APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETLIGHTXVOESPROC) (GLenum light, GLenum pname, GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETMATERIALXVOESPROC) (GLenum face, GLenum pname, GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum env, GLenum pname, GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width); sl@0: typedef void (GL_APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m); sl@0: typedef void (GL_APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m); sl@0: typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); sl@0: typedef void (GL_APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz); sl@0: typedef void (GL_APIENTRYP PFNGLORTHOXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); sl@0: typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXOESPROC) (GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size); sl@0: typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units); sl@0: typedef void (GL_APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); sl@0: typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC) (GLclampx value, GLboolean invert); sl@0: typedef void (GL_APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); sl@0: typedef void (GL_APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); sl@0: #endif sl@0: sl@0: /* GL_OES_framebuffer_object */ sl@0: #ifndef GL_OES_framebuffer_object sl@0: #define GL_OES_framebuffer_object 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API GLboolean GL_APIENTRY glIsRenderbufferOES (GLuint renderbuffer); sl@0: GL_API void GL_APIENTRY glBindRenderbufferOES (GLenum target, GLuint renderbuffer); sl@0: GL_API void GL_APIENTRY glDeleteRenderbuffersOES (GLsizei n, const GLuint* renderbuffers); sl@0: GL_API void GL_APIENTRY glGenRenderbuffersOES (GLsizei n, GLuint* renderbuffers); sl@0: GL_API void GL_APIENTRY glRenderbufferStorageOES (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); sl@0: GL_API void GL_APIENTRY glGetRenderbufferParameterivOES (GLenum target, GLenum pname, GLint* params); sl@0: GL_API GLboolean GL_APIENTRY glIsFramebufferOES (GLuint framebuffer); sl@0: GL_API void GL_APIENTRY glBindFramebufferOES (GLenum target, GLuint framebuffer); sl@0: GL_API void GL_APIENTRY glDeleteFramebuffersOES (GLsizei n, const GLuint* framebuffers); sl@0: GL_API void GL_APIENTRY glGenFramebuffersOES (GLsizei n, GLuint* framebuffers); sl@0: GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES (GLenum target); sl@0: GL_API void GL_APIENTRY glFramebufferRenderbufferOES (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); sl@0: GL_API void GL_APIENTRY glFramebufferTexture2DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); sl@0: GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES (GLenum target, GLenum attachment, GLenum pname, GLint* params); sl@0: GL_API void GL_APIENTRY glGenerateMipmapOES (GLenum target); sl@0: #endif sl@0: typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFEROESPROC) (GLuint renderbuffer); sl@0: typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFEROESPROC) (GLenum target, GLuint renderbuffer); sl@0: typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSOESPROC) (GLsizei n, const GLuint* renderbuffers); sl@0: typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSOESPROC) (GLsizei n, GLuint* renderbuffers); sl@0: typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); sl@0: typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVOESPROC) (GLenum target, GLenum pname, GLint* params); sl@0: typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFEROESPROC) (GLuint framebuffer); sl@0: typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFEROESPROC) (GLenum target, GLuint framebuffer); sl@0: typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSOESPROC) (GLsizei n, const GLuint* framebuffers); sl@0: typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSOESPROC) (GLsizei n, GLuint* framebuffers); sl@0: typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSOESPROC) (GLenum target); sl@0: typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEROESPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); sl@0: typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); sl@0: typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); sl@0: typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPOESPROC) (GLenum target); sl@0: #endif sl@0: sl@0: /* GL_OES_matrix_get */ sl@0: #ifndef GL_OES_matrix_get sl@0: #define GL_OES_matrix_get 1 sl@0: #endif sl@0: sl@0: /* GL_OES_matrix_palette */ sl@0: #ifndef GL_OES_matrix_palette sl@0: #define GL_OES_matrix_palette 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex); sl@0: GL_API void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES (void); sl@0: GL_API void GL_APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: GL_API void GL_APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC) (GLuint matrixpaletteindex); sl@0: typedef void (GL_APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC) (void); sl@0: typedef void (GL_APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: typedef void (GL_APIENTRYP PFNGLWEIGHTPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: #endif sl@0: sl@0: /* GL_OES_query_matrix */ sl@0: #ifndef GL_OES_query_matrix sl@0: #define GL_OES_query_matrix 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed mantissa[16], GLint exponent[16]); sl@0: #endif sl@0: typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed mantissa[16], GLint exponent[16]); sl@0: #endif sl@0: sl@0: /* GL_OES_single_precision */ sl@0: #ifndef GL_OES_single_precision sl@0: #define GL_OES_single_precision 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glDepthRangefOES (GLclampf zNear, GLclampf zFar) __SOFTFP; sl@0: GL_API void GL_APIENTRY glFrustumfOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) __SOFTFP; sl@0: GL_API void GL_APIENTRY glOrthofOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) __SOFTFP; sl@0: GL_API void GL_APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation); sl@0: GL_API void GL_APIENTRY glGetClipPlanefOES (GLenum pname, GLfloat eqn[4]); sl@0: GL_API void GL_APIENTRY glClearDepthfOES (GLclampf depth) __SOFTFP; sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf zNear, GLclampf zFar) __SOFTFP; sl@0: typedef void (GL_APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) __SOFTFP; sl@0: typedef void (GL_APIENTRYP PFNGLORTHOFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) __SOFTFP; sl@0: typedef void (GL_APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation); sl@0: typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum pname, GLfloat eqn[4]); sl@0: typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth) __SOFTFP; sl@0: #endif sl@0: sl@0: /* GL_OES_stencil_wrap */ sl@0: #ifndef GL_OES_stencil_wrap sl@0: #define GL_OES_stencil_wrap 1 sl@0: #endif sl@0: sl@0: /* GL_OES_texture_cube_map */ sl@0: #ifndef GL_OES_texture_cube_map sl@0: #define GL_OES_texture_cube_map 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glTexGenfOES (GLenum coord, GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glTexGenfvOES (GLenum coord, GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glTexGeniOES (GLenum coord, GLenum pname, GLint param); sl@0: GL_API void GL_APIENTRY glTexGenivOES (GLenum coord, GLenum pname, const GLint *params); sl@0: GL_API void GL_APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetTexGenfvOES (GLenum coord, GLenum pname, GLfloat *params); sl@0: GL_API void GL_APIENTRY glGetTexGenivOES (GLenum coord, GLenum pname, GLint *params); sl@0: GL_API void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLTEXGENFOESPROC) (GLenum coord, GLenum pname, GLfloat param) __SOFTFP; sl@0: typedef void (GL_APIENTRYP PFNGLTEXGENFVOESPROC) (GLenum coord, GLenum pname, const GLfloat *params); sl@0: typedef void (GL_APIENTRYP PFNGLTEXGENIOESPROC) (GLenum coord, GLenum pname, GLint param); sl@0: typedef void (GL_APIENTRYP PFNGLTEXGENIVOESPROC) (GLenum coord, GLenum pname, const GLint *params); sl@0: typedef void (GL_APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param); sl@0: typedef void (GL_APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETTEXGENFVOESPROC) (GLenum coord, GLenum pname, GLfloat *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETTEXGENIVOESPROC) (GLenum coord, GLenum pname, GLint *params); sl@0: typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params); sl@0: #endif sl@0: sl@0: /* GL_OES_texture_env_crossbar */ sl@0: #ifndef GL_OES_texture_env_crossbar sl@0: #define GL_OES_texture_env_crossbar 1 sl@0: #endif sl@0: sl@0: /* GL_OES_texture_mirrored_repeat */ sl@0: #ifndef GL_OES_texture_mirrored_repeat sl@0: #define GL_OES_texture_mirrored_repeat 1 sl@0: #endif sl@0: sl@0: /* GL_OES_EGL_image */ sl@0: #ifndef GL_OES_EGL_image sl@0: #define GL_OES_EGL_image 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image); sl@0: GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image); sl@0: #endif sl@0: typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image); sl@0: typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image); sl@0: #endif sl@0: sl@0: /* GL_OES_depth24 */ sl@0: #ifndef GL_OES_depth24 sl@0: #define GL_OES_depth24 1 sl@0: #endif sl@0: sl@0: /* GL_OES_depth32 */ sl@0: #ifndef GL_OES_depth32 sl@0: #define GL_OES_depth32 1 sl@0: #endif sl@0: sl@0: /* GL_OES_element_index_uint */ sl@0: #ifndef GL_OES_element_index_uint sl@0: #define GL_OES_element_index_uint 1 sl@0: #endif sl@0: sl@0: /* GL_OES_fbo_render_mipmap */ sl@0: #ifndef GL_OES_fbo_render_mipmap sl@0: #define GL_OES_fbo_render_mipmap 1 sl@0: #endif sl@0: sl@0: /* GL_OES_mapbuffer */ sl@0: #ifndef GL_OES_mapbuffer sl@0: #define GL_OES_mapbuffer 1 sl@0: #ifdef GL_GLEXT_PROTOTYPES sl@0: GL_API void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access); sl@0: GL_API GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target); sl@0: GL_API void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params); sl@0: #endif sl@0: typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access); sl@0: typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target); sl@0: typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params); sl@0: #endif sl@0: sl@0: /* GL_OES_rgb8_rgba8 */ sl@0: #ifndef GL_OES_rgb8_rgba8 sl@0: #define GL_OES_rgb8_rgba8 1 sl@0: #endif sl@0: sl@0: /* GL_OES_stencil1 */ sl@0: #ifndef GL_OES_stencil1 sl@0: #define GL_OES_stencil1 1 sl@0: #endif sl@0: sl@0: /* GL_OES_stencil4 */ sl@0: #ifndef GL_OES_stencil4 sl@0: #define GL_OES_stencil4 1 sl@0: #endif sl@0: sl@0: /* GL_OES_stencil8 */ sl@0: #ifndef GL_OES_stencil8 sl@0: #define GL_OES_stencil8 1 sl@0: #endif sl@0: sl@0: /* GL_AMD_compressed_3DC_texture */ sl@0: #ifndef GL_AMD_compressed_3DC_texture sl@0: #define GL_AMD_compressed_3DC_texture 1 sl@0: #endif sl@0: sl@0: /* GL_AMD_compressed_ATC_texture */ sl@0: #ifndef GL_AMD_compressed_ATC_texture sl@0: #define GL_AMD_compressed_ATC_texture 1 sl@0: #endif sl@0: sl@0: /* GL_EXT_texture_filter_anisotropic */ sl@0: #ifndef GL_EXT_texture_filter_anisotropic sl@0: #define GL_EXT_texture_filter_anisotropic 1 sl@0: #endif sl@0: sl@0: #ifdef __cplusplus sl@0: } sl@0: #endif sl@0: sl@0: #endif /* __glext_h_ */ sl@0: