| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | #ifndef __gl_h_ | 
|  | 2 | #define __gl_h_ | 
|  | 3 |  | 
| Mathias Agopian | 8f62c30 | 2010-06-09 18:08:15 -0700 | [diff] [blame] | 4 | /* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */ | 
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 5 |  | 
|  | 6 | #include <GLES/glplatform.h> | 
|  | 7 |  | 
|  | 8 | #ifdef __cplusplus | 
|  | 9 | extern "C" { | 
|  | 10 | #endif | 
|  | 11 |  | 
|  | 12 | /* | 
|  | 13 | * This document is licensed under the SGI Free Software B License Version | 
|  | 14 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . | 
|  | 15 | */ | 
|  | 16 |  | 
|  | 17 | typedef void             GLvoid; | 
| Mathias Agopian | 8f62c30 | 2010-06-09 18:08:15 -0700 | [diff] [blame] | 18 | typedef char             GLchar; | 
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 19 | typedef unsigned int     GLenum; | 
|  | 20 | typedef unsigned char    GLboolean; | 
|  | 21 | typedef unsigned int     GLbitfield; | 
|  | 22 | typedef khronos_int8_t   GLbyte; | 
|  | 23 | typedef short            GLshort; | 
|  | 24 | typedef int              GLint; | 
|  | 25 | typedef int              GLsizei; | 
|  | 26 | typedef khronos_uint8_t  GLubyte; | 
|  | 27 | typedef unsigned short   GLushort; | 
|  | 28 | typedef unsigned int     GLuint; | 
|  | 29 | typedef khronos_float_t  GLfloat; | 
|  | 30 | typedef khronos_float_t  GLclampf; | 
|  | 31 | typedef khronos_int32_t  GLfixed; | 
|  | 32 | typedef khronos_int32_t  GLclampx; | 
|  | 33 |  | 
|  | 34 | typedef khronos_intptr_t GLintptr; | 
|  | 35 | typedef khronos_ssize_t  GLsizeiptr; | 
|  | 36 |  | 
|  | 37 |  | 
|  | 38 | /*************************************************************/ | 
|  | 39 |  | 
|  | 40 | /* OpenGL ES core versions */ | 
|  | 41 | #define GL_VERSION_ES_CM_1_0          1 | 
|  | 42 | #define GL_VERSION_ES_CL_1_0          1 | 
|  | 43 | #define GL_VERSION_ES_CM_1_1          1 | 
|  | 44 | #define GL_VERSION_ES_CL_1_1          1 | 
|  | 45 |  | 
|  | 46 | /* ClearBufferMask */ | 
|  | 47 | #define GL_DEPTH_BUFFER_BIT               0x00000100 | 
|  | 48 | #define GL_STENCIL_BUFFER_BIT             0x00000400 | 
|  | 49 | #define GL_COLOR_BUFFER_BIT               0x00004000 | 
|  | 50 |  | 
|  | 51 | /* Boolean */ | 
|  | 52 | #define GL_FALSE                          0 | 
|  | 53 | #define GL_TRUE                           1 | 
|  | 54 |  | 
|  | 55 | /* BeginMode */ | 
|  | 56 | #define GL_POINTS                         0x0000 | 
|  | 57 | #define GL_LINES                          0x0001 | 
|  | 58 | #define GL_LINE_LOOP                      0x0002 | 
|  | 59 | #define GL_LINE_STRIP                     0x0003 | 
|  | 60 | #define GL_TRIANGLES                      0x0004 | 
|  | 61 | #define GL_TRIANGLE_STRIP                 0x0005 | 
|  | 62 | #define GL_TRIANGLE_FAN                   0x0006 | 
|  | 63 |  | 
|  | 64 | /* AlphaFunction */ | 
|  | 65 | #define GL_NEVER                          0x0200 | 
|  | 66 | #define GL_LESS                           0x0201 | 
|  | 67 | #define GL_EQUAL                          0x0202 | 
|  | 68 | #define GL_LEQUAL                         0x0203 | 
|  | 69 | #define GL_GREATER                        0x0204 | 
|  | 70 | #define GL_NOTEQUAL                       0x0205 | 
|  | 71 | #define GL_GEQUAL                         0x0206 | 
|  | 72 | #define GL_ALWAYS                         0x0207 | 
|  | 73 |  | 
|  | 74 | /* BlendingFactorDest */ | 
|  | 75 | #define GL_ZERO                           0 | 
|  | 76 | #define GL_ONE                            1 | 
|  | 77 | #define GL_SRC_COLOR                      0x0300 | 
|  | 78 | #define GL_ONE_MINUS_SRC_COLOR            0x0301 | 
|  | 79 | #define GL_SRC_ALPHA                      0x0302 | 
|  | 80 | #define GL_ONE_MINUS_SRC_ALPHA            0x0303 | 
|  | 81 | #define GL_DST_ALPHA                      0x0304 | 
|  | 82 | #define GL_ONE_MINUS_DST_ALPHA            0x0305 | 
|  | 83 |  | 
|  | 84 | /* BlendingFactorSrc */ | 
|  | 85 | /*      GL_ZERO */ | 
|  | 86 | /*      GL_ONE */ | 
|  | 87 | #define GL_DST_COLOR                      0x0306 | 
|  | 88 | #define GL_ONE_MINUS_DST_COLOR            0x0307 | 
|  | 89 | #define GL_SRC_ALPHA_SATURATE             0x0308 | 
|  | 90 | /*      GL_SRC_ALPHA */ | 
|  | 91 | /*      GL_ONE_MINUS_SRC_ALPHA */ | 
|  | 92 | /*      GL_DST_ALPHA */ | 
|  | 93 | /*      GL_ONE_MINUS_DST_ALPHA */ | 
|  | 94 |  | 
|  | 95 | /* ClipPlaneName */ | 
|  | 96 | #define GL_CLIP_PLANE0                    0x3000 | 
|  | 97 | #define GL_CLIP_PLANE1                    0x3001 | 
|  | 98 | #define GL_CLIP_PLANE2                    0x3002 | 
|  | 99 | #define GL_CLIP_PLANE3                    0x3003 | 
|  | 100 | #define GL_CLIP_PLANE4                    0x3004 | 
|  | 101 | #define GL_CLIP_PLANE5                    0x3005 | 
|  | 102 |  | 
|  | 103 | /* ColorMaterialFace */ | 
|  | 104 | /*      GL_FRONT_AND_BACK */ | 
|  | 105 |  | 
|  | 106 | /* ColorMaterialParameter */ | 
|  | 107 | /*      GL_AMBIENT_AND_DIFFUSE */ | 
|  | 108 |  | 
|  | 109 | /* ColorPointerType */ | 
|  | 110 | /*      GL_UNSIGNED_BYTE */ | 
|  | 111 | /*      GL_FLOAT */ | 
|  | 112 | /*      GL_FIXED */ | 
|  | 113 |  | 
|  | 114 | /* CullFaceMode */ | 
|  | 115 | #define GL_FRONT                          0x0404 | 
|  | 116 | #define GL_BACK                           0x0405 | 
|  | 117 | #define GL_FRONT_AND_BACK                 0x0408 | 
|  | 118 |  | 
|  | 119 | /* DepthFunction */ | 
|  | 120 | /*      GL_NEVER */ | 
|  | 121 | /*      GL_LESS */ | 
|  | 122 | /*      GL_EQUAL */ | 
|  | 123 | /*      GL_LEQUAL */ | 
|  | 124 | /*      GL_GREATER */ | 
|  | 125 | /*      GL_NOTEQUAL */ | 
|  | 126 | /*      GL_GEQUAL */ | 
|  | 127 | /*      GL_ALWAYS */ | 
|  | 128 |  | 
|  | 129 | /* EnableCap */ | 
|  | 130 | #define GL_FOG                            0x0B60 | 
|  | 131 | #define GL_LIGHTING                       0x0B50 | 
|  | 132 | #define GL_TEXTURE_2D                     0x0DE1 | 
|  | 133 | #define GL_CULL_FACE                      0x0B44 | 
|  | 134 | #define GL_ALPHA_TEST                     0x0BC0 | 
|  | 135 | #define GL_BLEND                          0x0BE2 | 
|  | 136 | #define GL_COLOR_LOGIC_OP                 0x0BF2 | 
|  | 137 | #define GL_DITHER                         0x0BD0 | 
|  | 138 | #define GL_STENCIL_TEST                   0x0B90 | 
|  | 139 | #define GL_DEPTH_TEST                     0x0B71 | 
|  | 140 | /*      GL_LIGHT0 */ | 
|  | 141 | /*      GL_LIGHT1 */ | 
|  | 142 | /*      GL_LIGHT2 */ | 
|  | 143 | /*      GL_LIGHT3 */ | 
|  | 144 | /*      GL_LIGHT4 */ | 
|  | 145 | /*      GL_LIGHT5 */ | 
|  | 146 | /*      GL_LIGHT6 */ | 
|  | 147 | /*      GL_LIGHT7 */ | 
|  | 148 | #define GL_POINT_SMOOTH                   0x0B10 | 
|  | 149 | #define GL_LINE_SMOOTH                    0x0B20 | 
|  | 150 | #define GL_SCISSOR_TEST                   0x0C11 | 
|  | 151 | #define GL_COLOR_MATERIAL                 0x0B57 | 
|  | 152 | #define GL_NORMALIZE                      0x0BA1 | 
|  | 153 | #define GL_RESCALE_NORMAL                 0x803A | 
|  | 154 | #define GL_POLYGON_OFFSET_FILL            0x8037 | 
|  | 155 | #define GL_VERTEX_ARRAY                   0x8074 | 
|  | 156 | #define GL_NORMAL_ARRAY                   0x8075 | 
|  | 157 | #define GL_COLOR_ARRAY                    0x8076 | 
|  | 158 | #define GL_TEXTURE_COORD_ARRAY            0x8078 | 
|  | 159 | #define GL_MULTISAMPLE                    0x809D | 
|  | 160 | #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E | 
|  | 161 | #define GL_SAMPLE_ALPHA_TO_ONE            0x809F | 
|  | 162 | #define GL_SAMPLE_COVERAGE                0x80A0 | 
|  | 163 |  | 
|  | 164 | /* ErrorCode */ | 
|  | 165 | #define GL_NO_ERROR                       0 | 
|  | 166 | #define GL_INVALID_ENUM                   0x0500 | 
|  | 167 | #define GL_INVALID_VALUE                  0x0501 | 
|  | 168 | #define GL_INVALID_OPERATION              0x0502 | 
|  | 169 | #define GL_STACK_OVERFLOW                 0x0503 | 
|  | 170 | #define GL_STACK_UNDERFLOW                0x0504 | 
|  | 171 | #define GL_OUT_OF_MEMORY                  0x0505 | 
|  | 172 |  | 
|  | 173 | /* FogMode */ | 
|  | 174 | /*      GL_LINEAR */ | 
|  | 175 | #define GL_EXP                            0x0800 | 
|  | 176 | #define GL_EXP2                           0x0801 | 
|  | 177 |  | 
|  | 178 | /* FogParameter */ | 
|  | 179 | #define GL_FOG_DENSITY                    0x0B62 | 
|  | 180 | #define GL_FOG_START                      0x0B63 | 
|  | 181 | #define GL_FOG_END                        0x0B64 | 
|  | 182 | #define GL_FOG_MODE                       0x0B65 | 
|  | 183 | #define GL_FOG_COLOR                      0x0B66 | 
|  | 184 |  | 
|  | 185 | /* FrontFaceDirection */ | 
|  | 186 | #define GL_CW                             0x0900 | 
|  | 187 | #define GL_CCW                            0x0901 | 
|  | 188 |  | 
|  | 189 | /* GetPName */ | 
|  | 190 | #define GL_CURRENT_COLOR                  0x0B00 | 
|  | 191 | #define GL_CURRENT_NORMAL                 0x0B02 | 
|  | 192 | #define GL_CURRENT_TEXTURE_COORDS         0x0B03 | 
|  | 193 | #define GL_POINT_SIZE                     0x0B11 | 
|  | 194 | #define GL_POINT_SIZE_MIN                 0x8126 | 
|  | 195 | #define GL_POINT_SIZE_MAX                 0x8127 | 
|  | 196 | #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128 | 
|  | 197 | #define GL_POINT_DISTANCE_ATTENUATION     0x8129 | 
|  | 198 | #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12 | 
|  | 199 | #define GL_LINE_WIDTH                     0x0B21 | 
|  | 200 | #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22 | 
|  | 201 | #define GL_ALIASED_POINT_SIZE_RANGE       0x846D | 
|  | 202 | #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E | 
|  | 203 | #define GL_CULL_FACE_MODE                 0x0B45 | 
|  | 204 | #define GL_FRONT_FACE                     0x0B46 | 
|  | 205 | #define GL_SHADE_MODEL                    0x0B54 | 
|  | 206 | #define GL_DEPTH_RANGE                    0x0B70 | 
|  | 207 | #define GL_DEPTH_WRITEMASK                0x0B72 | 
|  | 208 | #define GL_DEPTH_CLEAR_VALUE              0x0B73 | 
|  | 209 | #define GL_DEPTH_FUNC                     0x0B74 | 
|  | 210 | #define GL_STENCIL_CLEAR_VALUE            0x0B91 | 
|  | 211 | #define GL_STENCIL_FUNC                   0x0B92 | 
|  | 212 | #define GL_STENCIL_VALUE_MASK             0x0B93 | 
|  | 213 | #define GL_STENCIL_FAIL                   0x0B94 | 
|  | 214 | #define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95 | 
|  | 215 | #define GL_STENCIL_PASS_DEPTH_PASS        0x0B96 | 
|  | 216 | #define GL_STENCIL_REF                    0x0B97 | 
|  | 217 | #define GL_STENCIL_WRITEMASK              0x0B98 | 
|  | 218 | #define GL_MATRIX_MODE                    0x0BA0 | 
|  | 219 | #define GL_VIEWPORT                       0x0BA2 | 
|  | 220 | #define GL_MODELVIEW_STACK_DEPTH          0x0BA3 | 
|  | 221 | #define GL_PROJECTION_STACK_DEPTH         0x0BA4 | 
|  | 222 | #define GL_TEXTURE_STACK_DEPTH            0x0BA5 | 
|  | 223 | #define GL_MODELVIEW_MATRIX               0x0BA6 | 
|  | 224 | #define GL_PROJECTION_MATRIX              0x0BA7 | 
|  | 225 | #define GL_TEXTURE_MATRIX                 0x0BA8 | 
|  | 226 | #define GL_ALPHA_TEST_FUNC                0x0BC1 | 
|  | 227 | #define GL_ALPHA_TEST_REF                 0x0BC2 | 
|  | 228 | #define GL_BLEND_DST                      0x0BE0 | 
|  | 229 | #define GL_BLEND_SRC                      0x0BE1 | 
|  | 230 | #define GL_LOGIC_OP_MODE                  0x0BF0 | 
|  | 231 | #define GL_SCISSOR_BOX                    0x0C10 | 
|  | 232 | #define GL_SCISSOR_TEST                   0x0C11 | 
|  | 233 | #define GL_COLOR_CLEAR_VALUE              0x0C22 | 
|  | 234 | #define GL_COLOR_WRITEMASK                0x0C23 | 
|  | 235 | #define GL_UNPACK_ALIGNMENT               0x0CF5 | 
|  | 236 | #define GL_PACK_ALIGNMENT                 0x0D05 | 
|  | 237 | #define GL_MAX_LIGHTS                     0x0D31 | 
|  | 238 | #define GL_MAX_CLIP_PLANES                0x0D32 | 
|  | 239 | #define GL_MAX_TEXTURE_SIZE               0x0D33 | 
|  | 240 | #define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36 | 
|  | 241 | #define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38 | 
|  | 242 | #define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39 | 
|  | 243 | #define GL_MAX_VIEWPORT_DIMS              0x0D3A | 
|  | 244 | #define GL_MAX_TEXTURE_UNITS              0x84E2 | 
|  | 245 | #define GL_SUBPIXEL_BITS                  0x0D50 | 
|  | 246 | #define GL_RED_BITS                       0x0D52 | 
|  | 247 | #define GL_GREEN_BITS                     0x0D53 | 
|  | 248 | #define GL_BLUE_BITS                      0x0D54 | 
|  | 249 | #define GL_ALPHA_BITS                     0x0D55 | 
|  | 250 | #define GL_DEPTH_BITS                     0x0D56 | 
|  | 251 | #define GL_STENCIL_BITS                   0x0D57 | 
|  | 252 | #define GL_POLYGON_OFFSET_UNITS           0x2A00 | 
|  | 253 | #define GL_POLYGON_OFFSET_FILL            0x8037 | 
|  | 254 | #define GL_POLYGON_OFFSET_FACTOR          0x8038 | 
|  | 255 | #define GL_TEXTURE_BINDING_2D             0x8069 | 
|  | 256 | #define GL_VERTEX_ARRAY_SIZE              0x807A | 
|  | 257 | #define GL_VERTEX_ARRAY_TYPE              0x807B | 
|  | 258 | #define GL_VERTEX_ARRAY_STRIDE            0x807C | 
|  | 259 | #define GL_NORMAL_ARRAY_TYPE              0x807E | 
|  | 260 | #define GL_NORMAL_ARRAY_STRIDE            0x807F | 
|  | 261 | #define GL_COLOR_ARRAY_SIZE               0x8081 | 
|  | 262 | #define GL_COLOR_ARRAY_TYPE               0x8082 | 
|  | 263 | #define GL_COLOR_ARRAY_STRIDE             0x8083 | 
|  | 264 | #define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088 | 
|  | 265 | #define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089 | 
|  | 266 | #define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A | 
|  | 267 | #define GL_VERTEX_ARRAY_POINTER           0x808E | 
|  | 268 | #define GL_NORMAL_ARRAY_POINTER           0x808F | 
|  | 269 | #define GL_COLOR_ARRAY_POINTER            0x8090 | 
|  | 270 | #define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092 | 
|  | 271 | #define GL_SAMPLE_BUFFERS                 0x80A8 | 
|  | 272 | #define GL_SAMPLES                        0x80A9 | 
|  | 273 | #define GL_SAMPLE_COVERAGE_VALUE          0x80AA | 
|  | 274 | #define GL_SAMPLE_COVERAGE_INVERT         0x80AB | 
|  | 275 |  | 
|  | 276 | /* GetTextureParameter */ | 
|  | 277 | /*      GL_TEXTURE_MAG_FILTER */ | 
|  | 278 | /*      GL_TEXTURE_MIN_FILTER */ | 
|  | 279 | /*      GL_TEXTURE_WRAP_S */ | 
|  | 280 | /*      GL_TEXTURE_WRAP_T */ | 
|  | 281 |  | 
|  | 282 | #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 | 
|  | 283 | #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3 | 
|  | 284 |  | 
|  | 285 | /* HintMode */ | 
|  | 286 | #define GL_DONT_CARE                      0x1100 | 
|  | 287 | #define GL_FASTEST                        0x1101 | 
|  | 288 | #define GL_NICEST                         0x1102 | 
|  | 289 |  | 
|  | 290 | /* HintTarget */ | 
|  | 291 | #define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50 | 
|  | 292 | #define GL_POINT_SMOOTH_HINT              0x0C51 | 
|  | 293 | #define GL_LINE_SMOOTH_HINT               0x0C52 | 
|  | 294 | #define GL_FOG_HINT                       0x0C54 | 
|  | 295 | #define GL_GENERATE_MIPMAP_HINT           0x8192 | 
|  | 296 |  | 
|  | 297 | /* LightModelParameter */ | 
|  | 298 | #define GL_LIGHT_MODEL_AMBIENT            0x0B53 | 
|  | 299 | #define GL_LIGHT_MODEL_TWO_SIDE           0x0B52 | 
|  | 300 |  | 
|  | 301 | /* LightParameter */ | 
|  | 302 | #define GL_AMBIENT                        0x1200 | 
|  | 303 | #define GL_DIFFUSE                        0x1201 | 
|  | 304 | #define GL_SPECULAR                       0x1202 | 
|  | 305 | #define GL_POSITION                       0x1203 | 
|  | 306 | #define GL_SPOT_DIRECTION                 0x1204 | 
|  | 307 | #define GL_SPOT_EXPONENT                  0x1205 | 
|  | 308 | #define GL_SPOT_CUTOFF                    0x1206 | 
|  | 309 | #define GL_CONSTANT_ATTENUATION           0x1207 | 
|  | 310 | #define GL_LINEAR_ATTENUATION             0x1208 | 
|  | 311 | #define GL_QUADRATIC_ATTENUATION          0x1209 | 
|  | 312 |  | 
|  | 313 | /* DataType */ | 
|  | 314 | #define GL_BYTE                           0x1400 | 
|  | 315 | #define GL_UNSIGNED_BYTE                  0x1401 | 
|  | 316 | #define GL_SHORT                          0x1402 | 
|  | 317 | #define GL_UNSIGNED_SHORT                 0x1403 | 
|  | 318 | #define GL_FLOAT                          0x1406 | 
|  | 319 | #define GL_FIXED                          0x140C | 
|  | 320 |  | 
|  | 321 | /* LogicOp */ | 
|  | 322 | #define GL_CLEAR                          0x1500 | 
|  | 323 | #define GL_AND                            0x1501 | 
|  | 324 | #define GL_AND_REVERSE                    0x1502 | 
|  | 325 | #define GL_COPY                           0x1503 | 
|  | 326 | #define GL_AND_INVERTED                   0x1504 | 
|  | 327 | #define GL_NOOP                           0x1505 | 
|  | 328 | #define GL_XOR                            0x1506 | 
|  | 329 | #define GL_OR                             0x1507 | 
|  | 330 | #define GL_NOR                            0x1508 | 
|  | 331 | #define GL_EQUIV                          0x1509 | 
|  | 332 | #define GL_INVERT                         0x150A | 
|  | 333 | #define GL_OR_REVERSE                     0x150B | 
|  | 334 | #define GL_COPY_INVERTED                  0x150C | 
|  | 335 | #define GL_OR_INVERTED                    0x150D | 
|  | 336 | #define GL_NAND                           0x150E | 
|  | 337 | #define GL_SET                            0x150F | 
|  | 338 |  | 
|  | 339 | /* MaterialFace */ | 
|  | 340 | /*      GL_FRONT_AND_BACK */ | 
|  | 341 |  | 
|  | 342 | /* MaterialParameter */ | 
|  | 343 | #define GL_EMISSION                       0x1600 | 
|  | 344 | #define GL_SHININESS                      0x1601 | 
|  | 345 | #define GL_AMBIENT_AND_DIFFUSE            0x1602 | 
|  | 346 | /*      GL_AMBIENT */ | 
|  | 347 | /*      GL_DIFFUSE */ | 
|  | 348 | /*      GL_SPECULAR */ | 
|  | 349 |  | 
|  | 350 | /* MatrixMode */ | 
|  | 351 | #define GL_MODELVIEW                      0x1700 | 
|  | 352 | #define GL_PROJECTION                     0x1701 | 
|  | 353 | #define GL_TEXTURE                        0x1702 | 
|  | 354 |  | 
|  | 355 | /* NormalPointerType */ | 
|  | 356 | /*      GL_BYTE */ | 
|  | 357 | /*      GL_SHORT */ | 
|  | 358 | /*      GL_FLOAT */ | 
|  | 359 | /*      GL_FIXED */ | 
|  | 360 |  | 
|  | 361 | /* PixelFormat */ | 
|  | 362 | #define GL_ALPHA                          0x1906 | 
|  | 363 | #define GL_RGB                            0x1907 | 
|  | 364 | #define GL_RGBA                           0x1908 | 
|  | 365 | #define GL_LUMINANCE                      0x1909 | 
|  | 366 | #define GL_LUMINANCE_ALPHA                0x190A | 
|  | 367 |  | 
|  | 368 | /* PixelStoreParameter */ | 
|  | 369 | #define GL_UNPACK_ALIGNMENT               0x0CF5 | 
|  | 370 | #define GL_PACK_ALIGNMENT                 0x0D05 | 
|  | 371 |  | 
|  | 372 | /* PixelType */ | 
|  | 373 | /*      GL_UNSIGNED_BYTE */ | 
|  | 374 | #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033 | 
|  | 375 | #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034 | 
|  | 376 | #define GL_UNSIGNED_SHORT_5_6_5           0x8363 | 
|  | 377 |  | 
|  | 378 | /* ShadingModel */ | 
|  | 379 | #define GL_FLAT                           0x1D00 | 
|  | 380 | #define GL_SMOOTH                         0x1D01 | 
|  | 381 |  | 
|  | 382 | /* StencilFunction */ | 
|  | 383 | /*      GL_NEVER */ | 
|  | 384 | /*      GL_LESS */ | 
|  | 385 | /*      GL_EQUAL */ | 
|  | 386 | /*      GL_LEQUAL */ | 
|  | 387 | /*      GL_GREATER */ | 
|  | 388 | /*      GL_NOTEQUAL */ | 
|  | 389 | /*      GL_GEQUAL */ | 
|  | 390 | /*      GL_ALWAYS */ | 
|  | 391 |  | 
|  | 392 | /* StencilOp */ | 
|  | 393 | /*      GL_ZERO */ | 
|  | 394 | #define GL_KEEP                           0x1E00 | 
|  | 395 | #define GL_REPLACE                        0x1E01 | 
|  | 396 | #define GL_INCR                           0x1E02 | 
|  | 397 | #define GL_DECR                           0x1E03 | 
|  | 398 | /*      GL_INVERT */ | 
|  | 399 |  | 
|  | 400 | /* StringName */ | 
|  | 401 | #define GL_VENDOR                         0x1F00 | 
|  | 402 | #define GL_RENDERER                       0x1F01 | 
|  | 403 | #define GL_VERSION                        0x1F02 | 
|  | 404 | #define GL_EXTENSIONS                     0x1F03 | 
|  | 405 |  | 
|  | 406 | /* TexCoordPointerType */ | 
|  | 407 | /*      GL_SHORT */ | 
|  | 408 | /*      GL_FLOAT */ | 
|  | 409 | /*      GL_FIXED */ | 
|  | 410 | /*      GL_BYTE */ | 
|  | 411 |  | 
|  | 412 | /* TextureEnvMode */ | 
|  | 413 | #define GL_MODULATE                       0x2100 | 
|  | 414 | #define GL_DECAL                          0x2101 | 
|  | 415 | /*      GL_BLEND */ | 
|  | 416 | #define GL_ADD                            0x0104 | 
|  | 417 | /*      GL_REPLACE */ | 
|  | 418 |  | 
|  | 419 | /* TextureEnvParameter */ | 
|  | 420 | #define GL_TEXTURE_ENV_MODE               0x2200 | 
|  | 421 | #define GL_TEXTURE_ENV_COLOR              0x2201 | 
|  | 422 |  | 
|  | 423 | /* TextureEnvTarget */ | 
|  | 424 | #define GL_TEXTURE_ENV                    0x2300 | 
|  | 425 |  | 
|  | 426 | /* TextureMagFilter */ | 
|  | 427 | #define GL_NEAREST                        0x2600 | 
|  | 428 | #define GL_LINEAR                         0x2601 | 
|  | 429 |  | 
|  | 430 | /* TextureMinFilter */ | 
|  | 431 | /*      GL_NEAREST */ | 
|  | 432 | /*      GL_LINEAR */ | 
|  | 433 | #define GL_NEAREST_MIPMAP_NEAREST         0x2700 | 
|  | 434 | #define GL_LINEAR_MIPMAP_NEAREST          0x2701 | 
|  | 435 | #define GL_NEAREST_MIPMAP_LINEAR          0x2702 | 
|  | 436 | #define GL_LINEAR_MIPMAP_LINEAR           0x2703 | 
|  | 437 |  | 
|  | 438 | /* TextureParameterName */ | 
|  | 439 | #define GL_TEXTURE_MAG_FILTER             0x2800 | 
|  | 440 | #define GL_TEXTURE_MIN_FILTER             0x2801 | 
|  | 441 | #define GL_TEXTURE_WRAP_S                 0x2802 | 
|  | 442 | #define GL_TEXTURE_WRAP_T                 0x2803 | 
|  | 443 | #define GL_GENERATE_MIPMAP                0x8191 | 
|  | 444 |  | 
|  | 445 | /* TextureTarget */ | 
|  | 446 | /*      GL_TEXTURE_2D */ | 
|  | 447 |  | 
|  | 448 | /* TextureUnit */ | 
|  | 449 | #define GL_TEXTURE0                       0x84C0 | 
|  | 450 | #define GL_TEXTURE1                       0x84C1 | 
|  | 451 | #define GL_TEXTURE2                       0x84C2 | 
|  | 452 | #define GL_TEXTURE3                       0x84C3 | 
|  | 453 | #define GL_TEXTURE4                       0x84C4 | 
|  | 454 | #define GL_TEXTURE5                       0x84C5 | 
|  | 455 | #define GL_TEXTURE6                       0x84C6 | 
|  | 456 | #define GL_TEXTURE7                       0x84C7 | 
|  | 457 | #define GL_TEXTURE8                       0x84C8 | 
|  | 458 | #define GL_TEXTURE9                       0x84C9 | 
|  | 459 | #define GL_TEXTURE10                      0x84CA | 
|  | 460 | #define GL_TEXTURE11                      0x84CB | 
|  | 461 | #define GL_TEXTURE12                      0x84CC | 
|  | 462 | #define GL_TEXTURE13                      0x84CD | 
|  | 463 | #define GL_TEXTURE14                      0x84CE | 
|  | 464 | #define GL_TEXTURE15                      0x84CF | 
|  | 465 | #define GL_TEXTURE16                      0x84D0 | 
|  | 466 | #define GL_TEXTURE17                      0x84D1 | 
|  | 467 | #define GL_TEXTURE18                      0x84D2 | 
|  | 468 | #define GL_TEXTURE19                      0x84D3 | 
|  | 469 | #define GL_TEXTURE20                      0x84D4 | 
|  | 470 | #define GL_TEXTURE21                      0x84D5 | 
|  | 471 | #define GL_TEXTURE22                      0x84D6 | 
|  | 472 | #define GL_TEXTURE23                      0x84D7 | 
|  | 473 | #define GL_TEXTURE24                      0x84D8 | 
|  | 474 | #define GL_TEXTURE25                      0x84D9 | 
|  | 475 | #define GL_TEXTURE26                      0x84DA | 
|  | 476 | #define GL_TEXTURE27                      0x84DB | 
|  | 477 | #define GL_TEXTURE28                      0x84DC | 
|  | 478 | #define GL_TEXTURE29                      0x84DD | 
|  | 479 | #define GL_TEXTURE30                      0x84DE | 
|  | 480 | #define GL_TEXTURE31                      0x84DF | 
|  | 481 | #define GL_ACTIVE_TEXTURE                 0x84E0 | 
|  | 482 | #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1 | 
|  | 483 |  | 
|  | 484 | /* TextureWrapMode */ | 
|  | 485 | #define GL_REPEAT                         0x2901 | 
|  | 486 | #define GL_CLAMP_TO_EDGE                  0x812F | 
|  | 487 |  | 
|  | 488 | /* VertexPointerType */ | 
|  | 489 | /*      GL_SHORT */ | 
|  | 490 | /*      GL_FLOAT */ | 
|  | 491 | /*      GL_FIXED */ | 
|  | 492 | /*      GL_BYTE */ | 
|  | 493 |  | 
|  | 494 | /* LightName */ | 
|  | 495 | #define GL_LIGHT0                         0x4000 | 
|  | 496 | #define GL_LIGHT1                         0x4001 | 
|  | 497 | #define GL_LIGHT2                         0x4002 | 
|  | 498 | #define GL_LIGHT3                         0x4003 | 
|  | 499 | #define GL_LIGHT4                         0x4004 | 
|  | 500 | #define GL_LIGHT5                         0x4005 | 
|  | 501 | #define GL_LIGHT6                         0x4006 | 
|  | 502 | #define GL_LIGHT7                         0x4007 | 
|  | 503 |  | 
|  | 504 | /* Buffer Objects */ | 
|  | 505 | #define GL_ARRAY_BUFFER                   0x8892 | 
|  | 506 | #define GL_ELEMENT_ARRAY_BUFFER           0x8893 | 
|  | 507 |  | 
|  | 508 | #define GL_ARRAY_BUFFER_BINDING               0x8894 | 
|  | 509 | #define GL_ELEMENT_ARRAY_BUFFER_BINDING       0x8895 | 
|  | 510 | #define GL_VERTEX_ARRAY_BUFFER_BINDING        0x8896 | 
|  | 511 | #define GL_NORMAL_ARRAY_BUFFER_BINDING        0x8897 | 
|  | 512 | #define GL_COLOR_ARRAY_BUFFER_BINDING         0x8898 | 
|  | 513 | #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A | 
|  | 514 |  | 
|  | 515 | #define GL_STATIC_DRAW                    0x88E4 | 
|  | 516 | #define GL_DYNAMIC_DRAW                   0x88E8 | 
|  | 517 |  | 
|  | 518 | #define GL_BUFFER_SIZE                    0x8764 | 
|  | 519 | #define GL_BUFFER_USAGE                   0x8765 | 
|  | 520 |  | 
|  | 521 | /* Texture combine + dot3 */ | 
|  | 522 | #define GL_SUBTRACT                       0x84E7 | 
|  | 523 | #define GL_COMBINE                        0x8570 | 
|  | 524 | #define GL_COMBINE_RGB                    0x8571 | 
|  | 525 | #define GL_COMBINE_ALPHA                  0x8572 | 
|  | 526 | #define GL_RGB_SCALE                      0x8573 | 
|  | 527 | #define GL_ADD_SIGNED                     0x8574 | 
|  | 528 | #define GL_INTERPOLATE                    0x8575 | 
|  | 529 | #define GL_CONSTANT                       0x8576 | 
|  | 530 | #define GL_PRIMARY_COLOR                  0x8577 | 
|  | 531 | #define GL_PREVIOUS                       0x8578 | 
|  | 532 | #define GL_OPERAND0_RGB                   0x8590 | 
|  | 533 | #define GL_OPERAND1_RGB                   0x8591 | 
|  | 534 | #define GL_OPERAND2_RGB                   0x8592 | 
|  | 535 | #define GL_OPERAND0_ALPHA                 0x8598 | 
|  | 536 | #define GL_OPERAND1_ALPHA                 0x8599 | 
|  | 537 | #define GL_OPERAND2_ALPHA                 0x859A | 
|  | 538 |  | 
|  | 539 | #define GL_ALPHA_SCALE                    0x0D1C | 
|  | 540 |  | 
|  | 541 | #define GL_SRC0_RGB                       0x8580 | 
|  | 542 | #define GL_SRC1_RGB                       0x8581 | 
|  | 543 | #define GL_SRC2_RGB                       0x8582 | 
|  | 544 | #define GL_SRC0_ALPHA                     0x8588 | 
|  | 545 | #define GL_SRC1_ALPHA                     0x8589 | 
|  | 546 | #define GL_SRC2_ALPHA                     0x858A | 
|  | 547 |  | 
|  | 548 | #define GL_DOT3_RGB                       0x86AE | 
|  | 549 | #define GL_DOT3_RGBA                      0x86AF | 
|  | 550 |  | 
|  | 551 | /*------------------------------------------------------------------------* | 
|  | 552 | * required OES extension tokens | 
|  | 553 | *------------------------------------------------------------------------*/ | 
|  | 554 |  | 
|  | 555 | /* OES_read_format */ | 
|  | 556 | #ifndef GL_OES_read_format | 
|  | 557 | #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES                   0x8B9A | 
|  | 558 | #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES                 0x8B9B | 
|  | 559 | #endif | 
|  | 560 |  | 
|  | 561 | /* GL_OES_compressed_paletted_texture */ | 
|  | 562 | #ifndef GL_OES_compressed_paletted_texture | 
|  | 563 | #define GL_PALETTE4_RGB8_OES                                    0x8B90 | 
|  | 564 | #define GL_PALETTE4_RGBA8_OES                                   0x8B91 | 
|  | 565 | #define GL_PALETTE4_R5_G6_B5_OES                                0x8B92 | 
|  | 566 | #define GL_PALETTE4_RGBA4_OES                                   0x8B93 | 
|  | 567 | #define GL_PALETTE4_RGB5_A1_OES                                 0x8B94 | 
|  | 568 | #define GL_PALETTE8_RGB8_OES                                    0x8B95 | 
|  | 569 | #define GL_PALETTE8_RGBA8_OES                                   0x8B96 | 
|  | 570 | #define GL_PALETTE8_R5_G6_B5_OES                                0x8B97 | 
|  | 571 | #define GL_PALETTE8_RGBA4_OES                                   0x8B98 | 
|  | 572 | #define GL_PALETTE8_RGB5_A1_OES                                 0x8B99 | 
|  | 573 | #endif | 
|  | 574 |  | 
|  | 575 | /* OES_point_size_array */ | 
|  | 576 | #ifndef GL_OES_point_size_array | 
|  | 577 | #define GL_POINT_SIZE_ARRAY_OES                                 0x8B9C | 
|  | 578 | #define GL_POINT_SIZE_ARRAY_TYPE_OES                            0x898A | 
|  | 579 | #define GL_POINT_SIZE_ARRAY_STRIDE_OES                          0x898B | 
|  | 580 | #define GL_POINT_SIZE_ARRAY_POINTER_OES                         0x898C | 
|  | 581 | #define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES                  0x8B9F | 
|  | 582 | #endif | 
|  | 583 |  | 
|  | 584 | /* GL_OES_point_sprite */ | 
|  | 585 | #ifndef GL_OES_point_sprite | 
|  | 586 | #define GL_POINT_SPRITE_OES                                     0x8861 | 
|  | 587 | #define GL_COORD_REPLACE_OES                                    0x8862 | 
|  | 588 | #endif | 
|  | 589 |  | 
|  | 590 | /*************************************************************/ | 
|  | 591 |  | 
|  | 592 | /* Available only in Common profile */ | 
|  | 593 | GL_API void GL_APIENTRY glAlphaFunc (GLenum func, GLclampf ref); | 
|  | 594 | GL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); | 
|  | 595 | GL_API void GL_APIENTRY glClearDepthf (GLclampf depth); | 
|  | 596 | GL_API void GL_APIENTRY glClipPlanef (GLenum plane, const GLfloat *equation); | 
|  | 597 | GL_API void GL_APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); | 
|  | 598 | GL_API void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar); | 
|  | 599 | GL_API void GL_APIENTRY glFogf (GLenum pname, GLfloat param); | 
|  | 600 | GL_API void GL_APIENTRY glFogfv (GLenum pname, const GLfloat *params); | 
|  | 601 | GL_API void GL_APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); | 
|  | 602 | GL_API void GL_APIENTRY glGetClipPlanef (GLenum pname, GLfloat eqn[4]); | 
|  | 603 | GL_API void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *params); | 
|  | 604 | GL_API void GL_APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); | 
|  | 605 | GL_API void GL_APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); | 
|  | 606 | GL_API void GL_APIENTRY glGetTexEnvfv (GLenum env, GLenum pname, GLfloat *params); | 
|  | 607 | GL_API void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); | 
|  | 608 | GL_API void GL_APIENTRY glLightModelf (GLenum pname, GLfloat param); | 
|  | 609 | GL_API void GL_APIENTRY glLightModelfv (GLenum pname, const GLfloat *params); | 
|  | 610 | GL_API void GL_APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); | 
|  | 611 | GL_API void GL_APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); | 
|  | 612 | GL_API void GL_APIENTRY glLineWidth (GLfloat width); | 
|  | 613 | GL_API void GL_APIENTRY glLoadMatrixf (const GLfloat *m); | 
|  | 614 | GL_API void GL_APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); | 
|  | 615 | GL_API void GL_APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); | 
|  | 616 | GL_API void GL_APIENTRY glMultMatrixf (const GLfloat *m); | 
|  | 617 | GL_API void GL_APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); | 
|  | 618 | GL_API void GL_APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); | 
|  | 619 | GL_API void GL_APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); | 
|  | 620 | GL_API void GL_APIENTRY glPointParameterf (GLenum pname, GLfloat param); | 
|  | 621 | GL_API void GL_APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); | 
|  | 622 | GL_API void GL_APIENTRY glPointSize (GLfloat size); | 
|  | 623 | GL_API void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); | 
|  | 624 | GL_API void GL_APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); | 
|  | 625 | GL_API void GL_APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); | 
|  | 626 | GL_API void GL_APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); | 
|  | 627 | GL_API void GL_APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); | 
|  | 628 | GL_API void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); | 
|  | 629 | GL_API void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); | 
|  | 630 | GL_API void GL_APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); | 
|  | 631 |  | 
|  | 632 | /* Available in both Common and Common-Lite profiles */ | 
|  | 633 | GL_API void GL_APIENTRY glActiveTexture (GLenum texture); | 
|  | 634 | GL_API void GL_APIENTRY glAlphaFuncx (GLenum func, GLclampx ref); | 
|  | 635 | GL_API void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer); | 
|  | 636 | GL_API void GL_APIENTRY glBindTexture (GLenum target, GLuint texture); | 
|  | 637 | GL_API void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); | 
|  | 638 | GL_API void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); | 
|  | 639 | GL_API void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); | 
|  | 640 | GL_API void GL_APIENTRY glClear (GLbitfield mask); | 
|  | 641 | GL_API void GL_APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); | 
|  | 642 | GL_API void GL_APIENTRY glClearDepthx (GLclampx depth); | 
|  | 643 | GL_API void GL_APIENTRY glClearStencil (GLint s); | 
|  | 644 | GL_API void GL_APIENTRY glClientActiveTexture (GLenum texture); | 
|  | 645 | GL_API void GL_APIENTRY glClipPlanex (GLenum plane, const GLfixed *equation); | 
|  | 646 | GL_API void GL_APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); | 
|  | 647 | GL_API void GL_APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); | 
|  | 648 | GL_API void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); | 
|  | 649 | GL_API void GL_APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); | 
|  | 650 | GL_API void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); | 
|  | 651 | 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); | 
|  | 652 | GL_API void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); | 
|  | 653 | GL_API void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); | 
|  | 654 | GL_API void GL_APIENTRY glCullFace (GLenum mode); | 
|  | 655 | GL_API void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); | 
|  | 656 | GL_API void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); | 
|  | 657 | GL_API void GL_APIENTRY glDepthFunc (GLenum func); | 
|  | 658 | GL_API void GL_APIENTRY glDepthMask (GLboolean flag); | 
|  | 659 | GL_API void GL_APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar); | 
|  | 660 | GL_API void GL_APIENTRY glDisable (GLenum cap); | 
|  | 661 | GL_API void GL_APIENTRY glDisableClientState (GLenum array); | 
|  | 662 | GL_API void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); | 
|  | 663 | GL_API void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); | 
|  | 664 | GL_API void GL_APIENTRY glEnable (GLenum cap); | 
|  | 665 | GL_API void GL_APIENTRY glEnableClientState (GLenum array); | 
|  | 666 | GL_API void GL_APIENTRY glFinish (void); | 
|  | 667 | GL_API void GL_APIENTRY glFlush (void); | 
|  | 668 | GL_API void GL_APIENTRY glFogx (GLenum pname, GLfixed param); | 
|  | 669 | GL_API void GL_APIENTRY glFogxv (GLenum pname, const GLfixed *params); | 
|  | 670 | GL_API void GL_APIENTRY glFrontFace (GLenum mode); | 
|  | 671 | GL_API void GL_APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); | 
|  | 672 | GL_API void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *params); | 
|  | 673 | GL_API void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); | 
|  | 674 | GL_API void GL_APIENTRY glGetClipPlanex (GLenum pname, GLfixed eqn[4]); | 
|  | 675 | GL_API void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); | 
|  | 676 | GL_API void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures); | 
|  | 677 | GL_API GLenum GL_APIENTRY glGetError (void); | 
|  | 678 | GL_API void GL_APIENTRY glGetFixedv (GLenum pname, GLfixed *params); | 
|  | 679 | GL_API void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *params); | 
|  | 680 | GL_API void GL_APIENTRY glGetLightxv (GLenum light, GLenum pname, GLfixed *params); | 
|  | 681 | GL_API void GL_APIENTRY glGetMaterialxv (GLenum face, GLenum pname, GLfixed *params); | 
| Mathias Agopian | 8f62c30 | 2010-06-09 18:08:15 -0700 | [diff] [blame] | 682 | GL_API void GL_APIENTRY glGetPointerv (GLenum pname, GLvoid **params); | 
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 683 | GL_API const GLubyte * GL_APIENTRY glGetString (GLenum name); | 
|  | 684 | GL_API void GL_APIENTRY glGetTexEnviv (GLenum env, GLenum pname, GLint *params); | 
|  | 685 | GL_API void GL_APIENTRY glGetTexEnvxv (GLenum env, GLenum pname, GLfixed *params); | 
|  | 686 | GL_API void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); | 
|  | 687 | GL_API void GL_APIENTRY glGetTexParameterxv (GLenum target, GLenum pname, GLfixed *params); | 
|  | 688 | GL_API void GL_APIENTRY glHint (GLenum target, GLenum mode); | 
|  | 689 | GL_API GLboolean GL_APIENTRY glIsBuffer (GLuint buffer); | 
|  | 690 | GL_API GLboolean GL_APIENTRY glIsEnabled (GLenum cap); | 
|  | 691 | GL_API GLboolean GL_APIENTRY glIsTexture (GLuint texture); | 
|  | 692 | GL_API void GL_APIENTRY glLightModelx (GLenum pname, GLfixed param); | 
|  | 693 | GL_API void GL_APIENTRY glLightModelxv (GLenum pname, const GLfixed *params); | 
|  | 694 | GL_API void GL_APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param); | 
|  | 695 | GL_API void GL_APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params); | 
|  | 696 | GL_API void GL_APIENTRY glLineWidthx (GLfixed width); | 
|  | 697 | GL_API void GL_APIENTRY glLoadIdentity (void); | 
|  | 698 | GL_API void GL_APIENTRY glLoadMatrixx (const GLfixed *m); | 
|  | 699 | GL_API void GL_APIENTRY glLogicOp (GLenum opcode); | 
|  | 700 | GL_API void GL_APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param); | 
|  | 701 | GL_API void GL_APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params); | 
|  | 702 | GL_API void GL_APIENTRY glMatrixMode (GLenum mode); | 
|  | 703 | GL_API void GL_APIENTRY glMultMatrixx (const GLfixed *m); | 
|  | 704 | GL_API void GL_APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); | 
|  | 705 | GL_API void GL_APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz); | 
|  | 706 | GL_API void GL_APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); | 
|  | 707 | GL_API void GL_APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); | 
|  | 708 | GL_API void GL_APIENTRY glPixelStorei (GLenum pname, GLint param); | 
|  | 709 | GL_API void GL_APIENTRY glPointParameterx (GLenum pname, GLfixed param); | 
|  | 710 | GL_API void GL_APIENTRY glPointParameterxv (GLenum pname, const GLfixed *params); | 
|  | 711 | GL_API void GL_APIENTRY glPointSizex (GLfixed size); | 
|  | 712 | GL_API void GL_APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units); | 
|  | 713 | GL_API void GL_APIENTRY glPopMatrix (void); | 
|  | 714 | GL_API void GL_APIENTRY glPushMatrix (void); | 
|  | 715 | GL_API void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); | 
|  | 716 | GL_API void GL_APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); | 
|  | 717 | GL_API void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert); | 
|  | 718 | GL_API void GL_APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert); | 
|  | 719 | GL_API void GL_APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z); | 
|  | 720 | GL_API void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); | 
|  | 721 | GL_API void GL_APIENTRY glShadeModel (GLenum mode); | 
|  | 722 | GL_API void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); | 
|  | 723 | GL_API void GL_APIENTRY glStencilMask (GLuint mask); | 
|  | 724 | GL_API void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); | 
|  | 725 | GL_API void GL_APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); | 
|  | 726 | GL_API void GL_APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); | 
|  | 727 | GL_API void GL_APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param); | 
|  | 728 | GL_API void GL_APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); | 
|  | 729 | GL_API void GL_APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params); | 
|  | 730 | 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); | 
|  | 731 | GL_API void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); | 
|  | 732 | GL_API void GL_APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param); | 
|  | 733 | GL_API void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); | 
|  | 734 | GL_API void GL_APIENTRY glTexParameterxv (GLenum target, GLenum pname, const GLfixed *params); | 
|  | 735 | 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); | 
|  | 736 | GL_API void GL_APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z); | 
|  | 737 | GL_API void GL_APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); | 
|  | 738 | GL_API void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); | 
|  | 739 |  | 
|  | 740 | /*------------------------------------------------------------------------* | 
|  | 741 | * Required OES extension functions | 
|  | 742 | *------------------------------------------------------------------------*/ | 
|  | 743 |  | 
|  | 744 | /* GL_OES_read_format */ | 
|  | 745 | #ifndef GL_OES_read_format | 
|  | 746 | #define GL_OES_read_format 1 | 
|  | 747 | #endif | 
|  | 748 |  | 
|  | 749 | /* GL_OES_compressed_paletted_texture */ | 
|  | 750 | #ifndef GL_OES_compressed_paletted_texture | 
|  | 751 | #define GL_OES_compressed_paletted_texture 1 | 
|  | 752 | #endif | 
|  | 753 |  | 
|  | 754 | /* GL_OES_point_size_array */ | 
|  | 755 | #ifndef GL_OES_point_size_array | 
|  | 756 | #define GL_OES_point_size_array 1 | 
|  | 757 | GL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, const GLvoid *pointer); | 
|  | 758 | #endif | 
|  | 759 |  | 
|  | 760 | /* GL_OES_point_sprite */ | 
|  | 761 | #ifndef GL_OES_point_sprite | 
|  | 762 | #define GL_OES_point_sprite 1 | 
|  | 763 | #endif | 
|  | 764 |  | 
|  | 765 | #ifdef __cplusplus | 
|  | 766 | } | 
|  | 767 | #endif | 
|  | 768 |  | 
|  | 769 | #endif /* __gl_h_ */ | 
|  | 770 |  |