sl@0: #ifndef __gl_h_ sl@0: #define __gl_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: - the inclusion of glextplatform.h at the end of the file 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: #include 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: typedef unsigned int GLenum; sl@0: typedef unsigned char GLboolean; sl@0: typedef unsigned int GLbitfield; sl@0: typedef signed char GLbyte; sl@0: typedef short GLshort; sl@0: typedef int GLint; sl@0: typedef int GLsizei; sl@0: typedef unsigned char GLubyte; sl@0: typedef unsigned short GLushort; sl@0: typedef unsigned int GLuint; sl@0: typedef float GLfloat; sl@0: typedef float GLclampf; sl@0: typedef void GLvoid; sl@0: typedef int GLfixed; sl@0: typedef int GLclampx; sl@0: sl@0: typedef int GLintptr; sl@0: typedef int GLsizeiptr; sl@0: sl@0: sl@0: /*************************************************************/ sl@0: sl@0: /* OpenGL ES core versions */ sl@0: #define GL_VERSION_ES_CM_1_0 1 sl@0: #define GL_VERSION_ES_CL_1_0 1 sl@0: #define GL_VERSION_ES_CM_1_1 1 sl@0: #define GL_VERSION_ES_CL_1_1 1 sl@0: sl@0: /* ClearBufferMask */ sl@0: #define GL_DEPTH_BUFFER_BIT 0x00000100 sl@0: #define GL_STENCIL_BUFFER_BIT 0x00000400 sl@0: #define GL_COLOR_BUFFER_BIT 0x00004000 sl@0: sl@0: /* Boolean */ sl@0: #define GL_FALSE 0 sl@0: #define GL_TRUE 1 sl@0: sl@0: /* BeginMode */ sl@0: #define GL_POINTS 0x0000 sl@0: #define GL_LINES 0x0001 sl@0: #define GL_LINE_LOOP 0x0002 sl@0: #define GL_LINE_STRIP 0x0003 sl@0: #define GL_TRIANGLES 0x0004 sl@0: #define GL_TRIANGLE_STRIP 0x0005 sl@0: #define GL_TRIANGLE_FAN 0x0006 sl@0: sl@0: /* AlphaFunction */ sl@0: #define GL_NEVER 0x0200 sl@0: #define GL_LESS 0x0201 sl@0: #define GL_EQUAL 0x0202 sl@0: #define GL_LEQUAL 0x0203 sl@0: #define GL_GREATER 0x0204 sl@0: #define GL_NOTEQUAL 0x0205 sl@0: #define GL_GEQUAL 0x0206 sl@0: #define GL_ALWAYS 0x0207 sl@0: sl@0: /* BlendingFactorDest */ sl@0: #define GL_ZERO 0 sl@0: #define GL_ONE 1 sl@0: #define GL_SRC_COLOR 0x0300 sl@0: #define GL_ONE_MINUS_SRC_COLOR 0x0301 sl@0: #define GL_SRC_ALPHA 0x0302 sl@0: #define GL_ONE_MINUS_SRC_ALPHA 0x0303 sl@0: #define GL_DST_ALPHA 0x0304 sl@0: #define GL_ONE_MINUS_DST_ALPHA 0x0305 sl@0: sl@0: /* BlendingFactorSrc */ sl@0: /* GL_ZERO */ sl@0: /* GL_ONE */ sl@0: #define GL_DST_COLOR 0x0306 sl@0: #define GL_ONE_MINUS_DST_COLOR 0x0307 sl@0: #define GL_SRC_ALPHA_SATURATE 0x0308 sl@0: /* GL_SRC_ALPHA */ sl@0: /* GL_ONE_MINUS_SRC_ALPHA */ sl@0: /* GL_DST_ALPHA */ sl@0: /* GL_ONE_MINUS_DST_ALPHA */ sl@0: sl@0: /* ClipPlaneName */ sl@0: #define GL_CLIP_PLANE0 0x3000 sl@0: #define GL_CLIP_PLANE1 0x3001 sl@0: #define GL_CLIP_PLANE2 0x3002 sl@0: #define GL_CLIP_PLANE3 0x3003 sl@0: #define GL_CLIP_PLANE4 0x3004 sl@0: #define GL_CLIP_PLANE5 0x3005 sl@0: sl@0: /* ColorMaterialFace */ sl@0: /* GL_FRONT_AND_BACK */ sl@0: sl@0: /* ColorMaterialParameter */ sl@0: /* GL_AMBIENT_AND_DIFFUSE */ sl@0: sl@0: /* ColorPointerType */ sl@0: /* GL_UNSIGNED_BYTE */ sl@0: /* GL_FLOAT */ sl@0: /* GL_FIXED */ sl@0: sl@0: /* CullFaceMode */ sl@0: #define GL_FRONT 0x0404 sl@0: #define GL_BACK 0x0405 sl@0: #define GL_FRONT_AND_BACK 0x0408 sl@0: sl@0: /* DepthFunction */ sl@0: /* GL_NEVER */ sl@0: /* GL_LESS */ sl@0: /* GL_EQUAL */ sl@0: /* GL_LEQUAL */ sl@0: /* GL_GREATER */ sl@0: /* GL_NOTEQUAL */ sl@0: /* GL_GEQUAL */ sl@0: /* GL_ALWAYS */ sl@0: sl@0: /* EnableCap */ sl@0: #define GL_FOG 0x0B60 sl@0: #define GL_LIGHTING 0x0B50 sl@0: #define GL_TEXTURE_2D 0x0DE1 sl@0: #define GL_CULL_FACE 0x0B44 sl@0: #define GL_ALPHA_TEST 0x0BC0 sl@0: #define GL_BLEND 0x0BE2 sl@0: #define GL_COLOR_LOGIC_OP 0x0BF2 sl@0: #define GL_DITHER 0x0BD0 sl@0: #define GL_STENCIL_TEST 0x0B90 sl@0: #define GL_DEPTH_TEST 0x0B71 sl@0: /* GL_LIGHT0 */ sl@0: /* GL_LIGHT1 */ sl@0: /* GL_LIGHT2 */ sl@0: /* GL_LIGHT3 */ sl@0: /* GL_LIGHT4 */ sl@0: /* GL_LIGHT5 */ sl@0: /* GL_LIGHT6 */ sl@0: /* GL_LIGHT7 */ sl@0: #define GL_POINT_SMOOTH 0x0B10 sl@0: #define GL_LINE_SMOOTH 0x0B20 sl@0: #define GL_SCISSOR_TEST 0x0C11 sl@0: #define GL_COLOR_MATERIAL 0x0B57 sl@0: #define GL_NORMALIZE 0x0BA1 sl@0: #define GL_RESCALE_NORMAL 0x803A sl@0: #define GL_POLYGON_OFFSET_FILL 0x8037 sl@0: #define GL_VERTEX_ARRAY 0x8074 sl@0: #define GL_NORMAL_ARRAY 0x8075 sl@0: #define GL_COLOR_ARRAY 0x8076 sl@0: #define GL_TEXTURE_COORD_ARRAY 0x8078 sl@0: #define GL_MULTISAMPLE 0x809D sl@0: #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E sl@0: #define GL_SAMPLE_ALPHA_TO_ONE 0x809F sl@0: #define GL_SAMPLE_COVERAGE 0x80A0 sl@0: sl@0: /* ErrorCode */ sl@0: #define GL_NO_ERROR 0 sl@0: #define GL_INVALID_ENUM 0x0500 sl@0: #define GL_INVALID_VALUE 0x0501 sl@0: #define GL_INVALID_OPERATION 0x0502 sl@0: #define GL_STACK_OVERFLOW 0x0503 sl@0: #define GL_STACK_UNDERFLOW 0x0504 sl@0: #define GL_OUT_OF_MEMORY 0x0505 sl@0: sl@0: /* FogMode */ sl@0: /* GL_LINEAR */ sl@0: #define GL_EXP 0x0800 sl@0: #define GL_EXP2 0x0801 sl@0: sl@0: /* FogParameter */ sl@0: #define GL_FOG_DENSITY 0x0B62 sl@0: #define GL_FOG_START 0x0B63 sl@0: #define GL_FOG_END 0x0B64 sl@0: #define GL_FOG_MODE 0x0B65 sl@0: #define GL_FOG_COLOR 0x0B66 sl@0: sl@0: /* FrontFaceDirection */ sl@0: #define GL_CW 0x0900 sl@0: #define GL_CCW 0x0901 sl@0: sl@0: /* GetPName */ sl@0: #define GL_CURRENT_COLOR 0x0B00 sl@0: #define GL_CURRENT_NORMAL 0x0B02 sl@0: #define GL_CURRENT_TEXTURE_COORDS 0x0B03 sl@0: #define GL_POINT_SIZE 0x0B11 sl@0: #define GL_POINT_SIZE_MIN 0x8126 sl@0: #define GL_POINT_SIZE_MAX 0x8127 sl@0: #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 sl@0: #define GL_POINT_DISTANCE_ATTENUATION 0x8129 sl@0: #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 sl@0: #define GL_LINE_WIDTH 0x0B21 sl@0: #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 sl@0: #define GL_ALIASED_POINT_SIZE_RANGE 0x846D sl@0: #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E sl@0: #define GL_CULL_FACE_MODE 0x0B45 sl@0: #define GL_FRONT_FACE 0x0B46 sl@0: #define GL_SHADE_MODEL 0x0B54 sl@0: #define GL_DEPTH_RANGE 0x0B70 sl@0: #define GL_DEPTH_WRITEMASK 0x0B72 sl@0: #define GL_DEPTH_CLEAR_VALUE 0x0B73 sl@0: #define GL_DEPTH_FUNC 0x0B74 sl@0: #define GL_STENCIL_CLEAR_VALUE 0x0B91 sl@0: #define GL_STENCIL_FUNC 0x0B92 sl@0: #define GL_STENCIL_VALUE_MASK 0x0B93 sl@0: #define GL_STENCIL_FAIL 0x0B94 sl@0: #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 sl@0: #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 sl@0: #define GL_STENCIL_REF 0x0B97 sl@0: #define GL_STENCIL_WRITEMASK 0x0B98 sl@0: #define GL_MATRIX_MODE 0x0BA0 sl@0: #define GL_VIEWPORT 0x0BA2 sl@0: #define GL_MODELVIEW_STACK_DEPTH 0x0BA3 sl@0: #define GL_PROJECTION_STACK_DEPTH 0x0BA4 sl@0: #define GL_TEXTURE_STACK_DEPTH 0x0BA5 sl@0: #define GL_MODELVIEW_MATRIX 0x0BA6 sl@0: #define GL_PROJECTION_MATRIX 0x0BA7 sl@0: #define GL_TEXTURE_MATRIX 0x0BA8 sl@0: #define GL_ALPHA_TEST_FUNC 0x0BC1 sl@0: #define GL_ALPHA_TEST_REF 0x0BC2 sl@0: #define GL_BLEND_DST 0x0BE0 sl@0: #define GL_BLEND_SRC 0x0BE1 sl@0: #define GL_LOGIC_OP_MODE 0x0BF0 sl@0: #define GL_SCISSOR_BOX 0x0C10 sl@0: #define GL_SCISSOR_TEST 0x0C11 sl@0: #define GL_COLOR_CLEAR_VALUE 0x0C22 sl@0: #define GL_COLOR_WRITEMASK 0x0C23 sl@0: #define GL_UNPACK_ALIGNMENT 0x0CF5 sl@0: #define GL_PACK_ALIGNMENT 0x0D05 sl@0: #define GL_MAX_LIGHTS 0x0D31 sl@0: #define GL_MAX_CLIP_PLANES 0x0D32 sl@0: #define GL_MAX_TEXTURE_SIZE 0x0D33 sl@0: #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 sl@0: #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 sl@0: #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 sl@0: #define GL_MAX_VIEWPORT_DIMS 0x0D3A sl@0: #define GL_MAX_TEXTURE_UNITS 0x84E2 sl@0: #define GL_SUBPIXEL_BITS 0x0D50 sl@0: #define GL_RED_BITS 0x0D52 sl@0: #define GL_GREEN_BITS 0x0D53 sl@0: #define GL_BLUE_BITS 0x0D54 sl@0: #define GL_ALPHA_BITS 0x0D55 sl@0: #define GL_DEPTH_BITS 0x0D56 sl@0: #define GL_STENCIL_BITS 0x0D57 sl@0: #define GL_POLYGON_OFFSET_UNITS 0x2A00 sl@0: #define GL_POLYGON_OFFSET_FILL 0x8037 sl@0: #define GL_POLYGON_OFFSET_FACTOR 0x8038 sl@0: #define GL_TEXTURE_BINDING_2D 0x8069 sl@0: #define GL_VERTEX_ARRAY_SIZE 0x807A sl@0: #define GL_VERTEX_ARRAY_TYPE 0x807B sl@0: #define GL_VERTEX_ARRAY_STRIDE 0x807C sl@0: #define GL_NORMAL_ARRAY_TYPE 0x807E sl@0: #define GL_NORMAL_ARRAY_STRIDE 0x807F sl@0: #define GL_COLOR_ARRAY_SIZE 0x8081 sl@0: #define GL_COLOR_ARRAY_TYPE 0x8082 sl@0: #define GL_COLOR_ARRAY_STRIDE 0x8083 sl@0: #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 sl@0: #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 sl@0: #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A sl@0: #define GL_VERTEX_ARRAY_POINTER 0x808E sl@0: #define GL_NORMAL_ARRAY_POINTER 0x808F sl@0: #define GL_COLOR_ARRAY_POINTER 0x8090 sl@0: #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 sl@0: #define GL_SAMPLE_BUFFERS 0x80A8 sl@0: #define GL_SAMPLES 0x80A9 sl@0: #define GL_SAMPLE_COVERAGE_VALUE 0x80AA sl@0: #define GL_SAMPLE_COVERAGE_INVERT 0x80AB sl@0: sl@0: /* GetTextureParameter */ sl@0: /* GL_TEXTURE_MAG_FILTER */ sl@0: /* GL_TEXTURE_MIN_FILTER */ sl@0: /* GL_TEXTURE_WRAP_S */ sl@0: /* GL_TEXTURE_WRAP_T */ sl@0: sl@0: #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 sl@0: #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 sl@0: sl@0: /* HintMode */ sl@0: #define GL_DONT_CARE 0x1100 sl@0: #define GL_FASTEST 0x1101 sl@0: #define GL_NICEST 0x1102 sl@0: sl@0: /* HintTarget */ sl@0: #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 sl@0: #define GL_POINT_SMOOTH_HINT 0x0C51 sl@0: #define GL_LINE_SMOOTH_HINT 0x0C52 sl@0: #define GL_FOG_HINT 0x0C54 sl@0: #define GL_GENERATE_MIPMAP_HINT 0x8192 sl@0: sl@0: /* LightModelParameter */ sl@0: #define GL_LIGHT_MODEL_AMBIENT 0x0B53 sl@0: #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 sl@0: sl@0: /* LightParameter */ sl@0: #define GL_AMBIENT 0x1200 sl@0: #define GL_DIFFUSE 0x1201 sl@0: #define GL_SPECULAR 0x1202 sl@0: #define GL_POSITION 0x1203 sl@0: #define GL_SPOT_DIRECTION 0x1204 sl@0: #define GL_SPOT_EXPONENT 0x1205 sl@0: #define GL_SPOT_CUTOFF 0x1206 sl@0: #define GL_CONSTANT_ATTENUATION 0x1207 sl@0: #define GL_LINEAR_ATTENUATION 0x1208 sl@0: #define GL_QUADRATIC_ATTENUATION 0x1209 sl@0: sl@0: /* DataType */ sl@0: #define GL_BYTE 0x1400 sl@0: #define GL_UNSIGNED_BYTE 0x1401 sl@0: #define GL_SHORT 0x1402 sl@0: #define GL_UNSIGNED_SHORT 0x1403 sl@0: #define GL_FLOAT 0x1406 sl@0: #define GL_FIXED 0x140C sl@0: sl@0: /* LogicOp */ sl@0: #define GL_CLEAR 0x1500 sl@0: #define GL_AND 0x1501 sl@0: #define GL_AND_REVERSE 0x1502 sl@0: #define GL_COPY 0x1503 sl@0: #define GL_AND_INVERTED 0x1504 sl@0: #define GL_NOOP 0x1505 sl@0: #define GL_XOR 0x1506 sl@0: #define GL_OR 0x1507 sl@0: #define GL_NOR 0x1508 sl@0: #define GL_EQUIV 0x1509 sl@0: #define GL_INVERT 0x150A sl@0: #define GL_OR_REVERSE 0x150B sl@0: #define GL_COPY_INVERTED 0x150C sl@0: #define GL_OR_INVERTED 0x150D sl@0: #define GL_NAND 0x150E sl@0: #define GL_SET 0x150F sl@0: sl@0: /* MaterialFace */ sl@0: /* GL_FRONT_AND_BACK */ sl@0: sl@0: /* MaterialParameter */ sl@0: #define GL_EMISSION 0x1600 sl@0: #define GL_SHININESS 0x1601 sl@0: #define GL_AMBIENT_AND_DIFFUSE 0x1602 sl@0: /* GL_AMBIENT */ sl@0: /* GL_DIFFUSE */ sl@0: /* GL_SPECULAR */ sl@0: sl@0: /* MatrixMode */ sl@0: #define GL_MODELVIEW 0x1700 sl@0: #define GL_PROJECTION 0x1701 sl@0: #define GL_TEXTURE 0x1702 sl@0: sl@0: /* NormalPointerType */ sl@0: /* GL_BYTE */ sl@0: /* GL_SHORT */ sl@0: /* GL_FLOAT */ sl@0: /* GL_FIXED */ sl@0: sl@0: /* PixelFormat */ sl@0: #define GL_ALPHA 0x1906 sl@0: #define GL_RGB 0x1907 sl@0: #define GL_RGBA 0x1908 sl@0: #define GL_LUMINANCE 0x1909 sl@0: #define GL_LUMINANCE_ALPHA 0x190A sl@0: sl@0: /* PixelStoreParameter */ sl@0: #define GL_UNPACK_ALIGNMENT 0x0CF5 sl@0: #define GL_PACK_ALIGNMENT 0x0D05 sl@0: sl@0: /* PixelType */ sl@0: /* GL_UNSIGNED_BYTE */ sl@0: #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 sl@0: #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 sl@0: #define GL_UNSIGNED_SHORT_5_6_5 0x8363 sl@0: sl@0: /* ShadingModel */ sl@0: #define GL_FLAT 0x1D00 sl@0: #define GL_SMOOTH 0x1D01 sl@0: sl@0: /* StencilFunction */ sl@0: /* GL_NEVER */ sl@0: /* GL_LESS */ sl@0: /* GL_EQUAL */ sl@0: /* GL_LEQUAL */ sl@0: /* GL_GREATER */ sl@0: /* GL_NOTEQUAL */ sl@0: /* GL_GEQUAL */ sl@0: /* GL_ALWAYS */ sl@0: sl@0: /* StencilOp */ sl@0: /* GL_ZERO */ sl@0: #define GL_KEEP 0x1E00 sl@0: #define GL_REPLACE 0x1E01 sl@0: #define GL_INCR 0x1E02 sl@0: #define GL_DECR 0x1E03 sl@0: /* GL_INVERT */ sl@0: sl@0: /* StringName */ sl@0: #define GL_VENDOR 0x1F00 sl@0: #define GL_RENDERER 0x1F01 sl@0: #define GL_VERSION 0x1F02 sl@0: #define GL_EXTENSIONS 0x1F03 sl@0: sl@0: /* TexCoordPointerType */ sl@0: /* GL_SHORT */ sl@0: /* GL_FLOAT */ sl@0: /* GL_FIXED */ sl@0: /* GL_BYTE */ sl@0: sl@0: /* TextureEnvMode */ sl@0: #define GL_MODULATE 0x2100 sl@0: #define GL_DECAL 0x2101 sl@0: /* GL_BLEND */ sl@0: #define GL_ADD 0x0104 sl@0: /* GL_REPLACE */ sl@0: sl@0: /* TextureEnvParameter */ sl@0: #define GL_TEXTURE_ENV_MODE 0x2200 sl@0: #define GL_TEXTURE_ENV_COLOR 0x2201 sl@0: sl@0: /* TextureEnvTarget */ sl@0: #define GL_TEXTURE_ENV 0x2300 sl@0: sl@0: /* TextureMagFilter */ sl@0: #define GL_NEAREST 0x2600 sl@0: #define GL_LINEAR 0x2601 sl@0: sl@0: /* TextureMinFilter */ sl@0: /* GL_NEAREST */ sl@0: /* GL_LINEAR */ sl@0: #define GL_NEAREST_MIPMAP_NEAREST 0x2700 sl@0: #define GL_LINEAR_MIPMAP_NEAREST 0x2701 sl@0: #define GL_NEAREST_MIPMAP_LINEAR 0x2702 sl@0: #define GL_LINEAR_MIPMAP_LINEAR 0x2703 sl@0: sl@0: /* TextureParameterName */ sl@0: #define GL_TEXTURE_MAG_FILTER 0x2800 sl@0: #define GL_TEXTURE_MIN_FILTER 0x2801 sl@0: #define GL_TEXTURE_WRAP_S 0x2802 sl@0: #define GL_TEXTURE_WRAP_T 0x2803 sl@0: #define GL_GENERATE_MIPMAP 0x8191 sl@0: sl@0: /* TextureTarget */ sl@0: /* GL_TEXTURE_2D */ sl@0: sl@0: /* TextureUnit */ sl@0: #define GL_TEXTURE0 0x84C0 sl@0: #define GL_TEXTURE1 0x84C1 sl@0: #define GL_TEXTURE2 0x84C2 sl@0: #define GL_TEXTURE3 0x84C3 sl@0: #define GL_TEXTURE4 0x84C4 sl@0: #define GL_TEXTURE5 0x84C5 sl@0: #define GL_TEXTURE6 0x84C6 sl@0: #define GL_TEXTURE7 0x84C7 sl@0: #define GL_TEXTURE8 0x84C8 sl@0: #define GL_TEXTURE9 0x84C9 sl@0: #define GL_TEXTURE10 0x84CA sl@0: #define GL_TEXTURE11 0x84CB sl@0: #define GL_TEXTURE12 0x84CC sl@0: #define GL_TEXTURE13 0x84CD sl@0: #define GL_TEXTURE14 0x84CE sl@0: #define GL_TEXTURE15 0x84CF sl@0: #define GL_TEXTURE16 0x84D0 sl@0: #define GL_TEXTURE17 0x84D1 sl@0: #define GL_TEXTURE18 0x84D2 sl@0: #define GL_TEXTURE19 0x84D3 sl@0: #define GL_TEXTURE20 0x84D4 sl@0: #define GL_TEXTURE21 0x84D5 sl@0: #define GL_TEXTURE22 0x84D6 sl@0: #define GL_TEXTURE23 0x84D7 sl@0: #define GL_TEXTURE24 0x84D8 sl@0: #define GL_TEXTURE25 0x84D9 sl@0: #define GL_TEXTURE26 0x84DA sl@0: #define GL_TEXTURE27 0x84DB sl@0: #define GL_TEXTURE28 0x84DC sl@0: #define GL_TEXTURE29 0x84DD sl@0: #define GL_TEXTURE30 0x84DE sl@0: #define GL_TEXTURE31 0x84DF sl@0: #define GL_ACTIVE_TEXTURE 0x84E0 sl@0: #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 sl@0: sl@0: /* TextureWrapMode */ sl@0: #define GL_REPEAT 0x2901 sl@0: #define GL_CLAMP_TO_EDGE 0x812F sl@0: sl@0: /* VertexPointerType */ sl@0: /* GL_SHORT */ sl@0: /* GL_FLOAT */ sl@0: /* GL_FIXED */ sl@0: /* GL_BYTE */ sl@0: sl@0: /* LightName */ sl@0: #define GL_LIGHT0 0x4000 sl@0: #define GL_LIGHT1 0x4001 sl@0: #define GL_LIGHT2 0x4002 sl@0: #define GL_LIGHT3 0x4003 sl@0: #define GL_LIGHT4 0x4004 sl@0: #define GL_LIGHT5 0x4005 sl@0: #define GL_LIGHT6 0x4006 sl@0: #define GL_LIGHT7 0x4007 sl@0: sl@0: /* Buffer Objects */ sl@0: #define GL_ARRAY_BUFFER 0x8892 sl@0: #define GL_ELEMENT_ARRAY_BUFFER 0x8893 sl@0: sl@0: #define GL_ARRAY_BUFFER_BINDING 0x8894 sl@0: #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 sl@0: #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 sl@0: #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 sl@0: #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 sl@0: #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A sl@0: sl@0: #define GL_STATIC_DRAW 0x88E4 sl@0: #define GL_DYNAMIC_DRAW 0x88E8 sl@0: sl@0: #define GL_BUFFER_SIZE 0x8764 sl@0: #define GL_BUFFER_USAGE 0x8765 sl@0: sl@0: /* Texture combine + dot3 */ sl@0: #define GL_SUBTRACT 0x84E7 sl@0: #define GL_COMBINE 0x8570 sl@0: #define GL_COMBINE_RGB 0x8571 sl@0: #define GL_COMBINE_ALPHA 0x8572 sl@0: #define GL_RGB_SCALE 0x8573 sl@0: #define GL_ADD_SIGNED 0x8574 sl@0: #define GL_INTERPOLATE 0x8575 sl@0: #define GL_CONSTANT 0x8576 sl@0: #define GL_PRIMARY_COLOR 0x8577 sl@0: #define GL_PREVIOUS 0x8578 sl@0: #define GL_OPERAND0_RGB 0x8590 sl@0: #define GL_OPERAND1_RGB 0x8591 sl@0: #define GL_OPERAND2_RGB 0x8592 sl@0: #define GL_OPERAND0_ALPHA 0x8598 sl@0: #define GL_OPERAND1_ALPHA 0x8599 sl@0: #define GL_OPERAND2_ALPHA 0x859A sl@0: sl@0: #define GL_ALPHA_SCALE 0x0D1C sl@0: sl@0: #define GL_SRC0_RGB 0x8580 sl@0: #define GL_SRC1_RGB 0x8581 sl@0: #define GL_SRC2_RGB 0x8582 sl@0: #define GL_SRC0_ALPHA 0x8588 sl@0: #define GL_SRC1_ALPHA 0x8589 sl@0: #define GL_SRC2_ALPHA 0x858A sl@0: sl@0: #define GL_DOT3_RGB 0x86AE sl@0: #define GL_DOT3_RGBA 0x86AF sl@0: sl@0: /*------------------------------------------------------------------------* sl@0: * required OES extension tokens sl@0: *------------------------------------------------------------------------*/ sl@0: sl@0: /* OES_read_format */ sl@0: #ifndef GL_OES_read_format sl@0: #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A sl@0: #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B sl@0: #endif sl@0: sl@0: /* GL_OES_compressed_paletted_texture */ sl@0: #ifndef GL_OES_compressed_paletted_texture sl@0: #define GL_PALETTE4_RGB8_OES 0x8B90 sl@0: #define GL_PALETTE4_RGBA8_OES 0x8B91 sl@0: #define GL_PALETTE4_R5_G6_B5_OES 0x8B92 sl@0: #define GL_PALETTE4_RGBA4_OES 0x8B93 sl@0: #define GL_PALETTE4_RGB5_A1_OES 0x8B94 sl@0: #define GL_PALETTE8_RGB8_OES 0x8B95 sl@0: #define GL_PALETTE8_RGBA8_OES 0x8B96 sl@0: #define GL_PALETTE8_R5_G6_B5_OES 0x8B97 sl@0: #define GL_PALETTE8_RGBA4_OES 0x8B98 sl@0: #define GL_PALETTE8_RGB5_A1_OES 0x8B99 sl@0: #endif sl@0: sl@0: /* OES_point_size_array */ sl@0: #ifndef GL_OES_point_size_array sl@0: #define GL_POINT_SIZE_ARRAY_OES 0x8B9C sl@0: #define GL_POINT_SIZE_ARRAY_TYPE_OES 0x898A sl@0: #define GL_POINT_SIZE_ARRAY_STRIDE_OES 0x898B sl@0: #define GL_POINT_SIZE_ARRAY_POINTER_OES 0x898C sl@0: #define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES 0x8B9F sl@0: #endif sl@0: sl@0: /* GL_OES_point_sprite */ sl@0: #ifndef GL_OES_point_sprite sl@0: #define GL_POINT_SPRITE_OES 0x8861 sl@0: #define GL_COORD_REPLACE_OES 0x8862 sl@0: #endif sl@0: sl@0: /*************************************************************/ sl@0: sl@0: /* Available only in Common profile */ sl@0: GL_API void GL_APIENTRY glAlphaFunc (GLenum func, GLclampf ref) __SOFTFP; sl@0: GL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) __SOFTFP; sl@0: GL_API void GL_APIENTRY glClearDepthf (GLclampf depth) __SOFTFP; sl@0: GL_API void GL_APIENTRY glClipPlanef (GLenum plane, const GLfloat *equation); sl@0: GL_API void GL_APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) __SOFTFP; sl@0: GL_API void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar) __SOFTFP; sl@0: GL_API void GL_APIENTRY glFogf (GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glFogfv (GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) __SOFTFP; sl@0: GL_API void GL_APIENTRY glGetClipPlanef (GLenum pname, GLfloat eqn[4]); sl@0: GL_API void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *params); sl@0: GL_API void GL_APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); sl@0: GL_API void GL_APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); sl@0: GL_API void GL_APIENTRY glGetTexEnvfv (GLenum env, GLenum pname, GLfloat *params); sl@0: GL_API void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); sl@0: GL_API void GL_APIENTRY glLightModelf (GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glLightModelfv (GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glLineWidth (GLfloat width) __SOFTFP; sl@0: GL_API void GL_APIENTRY glLoadMatrixf (const GLfloat *m); sl@0: GL_API void GL_APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glMultMatrixf (const GLfloat *m); sl@0: GL_API void GL_APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) __SOFTFP; sl@0: GL_API void GL_APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz) __SOFTFP; sl@0: GL_API void GL_APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) __SOFTFP; sl@0: GL_API void GL_APIENTRY glPointParameterf (GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glPointSize (GLfloat size) __SOFTFP; sl@0: GL_API void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units) __SOFTFP; sl@0: GL_API void GL_APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z) __SOFTFP; sl@0: GL_API void GL_APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z) __SOFTFP; sl@0: GL_API void GL_APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param) __SOFTFP; sl@0: GL_API void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); sl@0: GL_API void GL_APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z) __SOFTFP; sl@0: sl@0: /* Available in both Common and Common-Lite profiles */ sl@0: GL_API void GL_APIENTRY glActiveTexture (GLenum texture); sl@0: GL_API void GL_APIENTRY glAlphaFuncx (GLenum func, GLclampx ref); sl@0: GL_API void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer); sl@0: GL_API void GL_APIENTRY glBindTexture (GLenum target, GLuint texture); sl@0: GL_API void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); sl@0: GL_API void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); sl@0: GL_API void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); sl@0: GL_API void GL_APIENTRY glClear (GLbitfield mask); sl@0: GL_API void GL_APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); sl@0: GL_API void GL_APIENTRY glClearDepthx (GLclampx depth); sl@0: GL_API void GL_APIENTRY glClearStencil (GLint s); sl@0: GL_API void GL_APIENTRY glClientActiveTexture (GLenum texture); sl@0: GL_API void GL_APIENTRY glClipPlanex (GLenum plane, const GLfixed *equation); sl@0: GL_API void GL_APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); sl@0: GL_API void GL_APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); sl@0: GL_API void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); sl@0: GL_API void GL_APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: GL_API void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); sl@0: GL_API void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); sl@0: GL_API void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); sl@0: GL_API void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); sl@0: GL_API void GL_APIENTRY glCullFace (GLenum mode); sl@0: GL_API void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); sl@0: GL_API void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); sl@0: GL_API void GL_APIENTRY glDepthFunc (GLenum func); sl@0: GL_API void GL_APIENTRY glDepthMask (GLboolean flag); sl@0: GL_API void GL_APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar); sl@0: GL_API void GL_APIENTRY glDisable (GLenum cap); sl@0: GL_API void GL_APIENTRY glDisableClientState (GLenum array); sl@0: GL_API void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); sl@0: GL_API void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); sl@0: GL_API void GL_APIENTRY glEnable (GLenum cap); sl@0: GL_API void GL_APIENTRY glEnableClientState (GLenum array); sl@0: GL_API void GL_APIENTRY glFinish (void); sl@0: GL_API void GL_APIENTRY glFlush (void); sl@0: GL_API void GL_APIENTRY glFogx (GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glFogxv (GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glFrontFace (GLenum mode); sl@0: GL_API void GL_APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); sl@0: GL_API void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *params); sl@0: GL_API void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); sl@0: GL_API void GL_APIENTRY glGetClipPlanex (GLenum pname, GLfixed eqn[4]); sl@0: GL_API void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); sl@0: GL_API void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures); sl@0: GL_API GLenum GL_APIENTRY glGetError (void); sl@0: GL_API void GL_APIENTRY glGetFixedv (GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *params); sl@0: GL_API void GL_APIENTRY glGetLightxv (GLenum light, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetMaterialxv (GLenum face, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetPointerv (GLenum pname, void **params); sl@0: GL_API const GLubyte * GL_APIENTRY glGetString (GLenum name); sl@0: GL_API void GL_APIENTRY glGetTexEnviv (GLenum env, GLenum pname, GLint *params); sl@0: GL_API void GL_APIENTRY glGetTexEnvxv (GLenum env, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); sl@0: GL_API void GL_APIENTRY glGetTexParameterxv (GLenum target, GLenum pname, GLfixed *params); sl@0: GL_API void GL_APIENTRY glHint (GLenum target, GLenum mode); sl@0: GL_API GLboolean GL_APIENTRY glIsBuffer (GLuint buffer); sl@0: GL_API GLboolean GL_APIENTRY glIsEnabled (GLenum cap); sl@0: GL_API GLboolean GL_APIENTRY glIsTexture (GLuint texture); sl@0: GL_API void GL_APIENTRY glLightModelx (GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glLightModelxv (GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glLineWidthx (GLfixed width); sl@0: GL_API void GL_APIENTRY glLoadIdentity (void); sl@0: GL_API void GL_APIENTRY glLoadMatrixx (const GLfixed *m); sl@0: GL_API void GL_APIENTRY glLogicOp (GLenum opcode); sl@0: GL_API void GL_APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glMatrixMode (GLenum mode); sl@0: GL_API void GL_APIENTRY glMultMatrixx (const GLfixed *m); sl@0: GL_API void GL_APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); sl@0: GL_API void GL_APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz); sl@0: GL_API void GL_APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: GL_API void GL_APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); sl@0: GL_API void GL_APIENTRY glPixelStorei (GLenum pname, GLint param); sl@0: GL_API void GL_APIENTRY glPointParameterx (GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glPointParameterxv (GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glPointSizex (GLfixed size); sl@0: GL_API void GL_APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units); sl@0: GL_API void GL_APIENTRY glPopMatrix (void); sl@0: GL_API void GL_APIENTRY glPushMatrix (void); sl@0: GL_API void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); sl@0: GL_API void GL_APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); sl@0: GL_API void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert) __SOFTFP; sl@0: GL_API void GL_APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert); sl@0: GL_API void GL_APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z); sl@0: GL_API void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); sl@0: GL_API void GL_APIENTRY glShadeModel (GLenum mode); sl@0: GL_API void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); sl@0: GL_API void GL_APIENTRY glStencilMask (GLuint mask); sl@0: GL_API void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); sl@0: GL_API void GL_APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: GL_API void GL_APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); sl@0: GL_API void GL_APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); sl@0: GL_API void GL_APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); sl@0: GL_API void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); sl@0: GL_API void GL_APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param); sl@0: GL_API void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); sl@0: GL_API void GL_APIENTRY glTexParameterxv (GLenum target, GLenum pname, const GLfixed *params); sl@0: GL_API void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); sl@0: GL_API void GL_APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z); sl@0: GL_API void GL_APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: GL_API void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); sl@0: sl@0: /*------------------------------------------------------------------------* sl@0: * Required OES extension functions sl@0: *------------------------------------------------------------------------*/ sl@0: sl@0: /* GL_OES_read_format */ sl@0: #ifndef GL_OES_read_format sl@0: #define GL_OES_read_format 1 sl@0: #endif sl@0: sl@0: /* GL_OES_compressed_paletted_texture */ sl@0: #ifndef GL_OES_compressed_paletted_texture sl@0: #define GL_OES_compressed_paletted_texture 1 sl@0: #endif sl@0: sl@0: /* GL_OES_point_size_array */ sl@0: #ifndef GL_OES_point_size_array sl@0: #define GL_OES_point_size_array 1 sl@0: GL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, const GLvoid *pointer); sl@0: #endif sl@0: sl@0: /* GL_OES_point_sprite */ sl@0: #ifndef GL_OES_point_sprite sl@0: #define GL_OES_point_sprite 1 sl@0: #endif sl@0: sl@0: #ifdef __cplusplus sl@0: } sl@0: #endif sl@0: sl@0: #include sl@0: sl@0: #endif /* __gl_h_ */ sl@0: