Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 1 | /* $Id: gl.h,v 1.18 1999/11/11 01:27:17 brianp Exp $ */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2 | |
| 3 | /* |
| 4 | * Mesa 3-D graphics library |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 5 | * Version: 3.3 |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 6 | * |
| 7 | * Copyright (C) 1999 Brian Paul All Rights Reserved. |
| 8 | * |
| 9 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 10 | * copy of this software and associated documentation files (the "Software"), |
| 11 | * to deal in the Software without restriction, including without limitation |
| 12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 13 | * and/or sell copies of the Software, and to permit persons to whom the |
| 14 | * Software is furnished to do so, subject to the following conditions: |
| 15 | * |
| 16 | * The above copyright notice and this permission notice shall be included |
| 17 | * in all copies or substantial portions of the Software. |
| 18 | * |
| 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 22 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 23 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 25 | */ |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | #ifndef GL_H |
| 31 | #define GL_H |
| 32 | |
| 33 | #if defined(USE_MGL_NAMESPACE) |
| 34 | #include "gl_mangle.h" |
| 35 | #endif |
| 36 | |
| 37 | |
| 38 | #if defined(__BEOS__) |
| 39 | #include <stdlib.h> /* to get some BeOS-isms */ |
| 40 | #endif |
| 41 | |
| 42 | |
| 43 | #if !defined(OPENSTEP) && (defined(NeXT) || defined(NeXT_PDO)) |
| 44 | #define OPENSTEP |
| 45 | #endif |
| 46 | |
| 47 | |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 48 | /* |
| 49 | * XXX move as many of these pragma's and MS Windows-isms into |
| 50 | * the new src/glheader.h file. |
| 51 | */ |
| 52 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 53 | #if defined(_WIN32) && !defined(__WIN32__) |
| 54 | # define __WIN32__ |
| 55 | #endif |
| 56 | |
| 57 | #if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__)) |
Ted Jump | b19ba78 | 1999-10-21 06:04:20 +0000 | [diff] [blame] | 58 | # pragma warning( disable : 4068 ) /* unknown pragma */ |
Ted Jump | 38136ec | 1999-10-30 18:39:06 +0000 | [diff] [blame] | 59 | # pragma warning( disable : 4710 ) /* function 'foo' not inlined */ |
Ted Jump | 3f17dfb | 1999-10-20 06:56:40 +0000 | [diff] [blame] | 60 | # pragma warning( disable : 4711 ) /* function 'foo' selected for automatic inline expansion */ |
Ted Jump | f7190d4 | 1999-11-05 18:20:31 +0000 | [diff] [blame] | 61 | # pragma warning( disable : 4127 ) /* conditional expression is constant */ |
Ted Jump | 38136ec | 1999-10-30 18:39:06 +0000 | [diff] [blame] | 62 | # if defined(MESA_MINWARN) |
Ted Jump | 38136ec | 1999-10-30 18:39:06 +0000 | [diff] [blame] | 63 | # pragma warning( disable : 4244 ) /* '=' : conversion from 'const double ' to 'float ', possible loss of data */ |
| 64 | # pragma warning( disable : 4018 ) /* '<' : signed/unsigned mismatch */ |
| 65 | # pragma warning( disable : 4305 ) /* '=' : truncation from 'const double ' to 'float ' */ |
| 66 | # pragma warning( disable : 4550 ) /* 'function' undefined; assuming extern returning int */ |
| 67 | # pragma warning( disable : 4761 ) /* integral size mismatch in argument; conversion supplied */ |
| 68 | # endif |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 69 | # if defined(_MSC_VER) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */ |
| 70 | # define GLAPI __declspec(dllexport) |
Ted Jump | 6799ecb | 1999-09-17 04:25:56 +0000 | [diff] [blame] | 71 | # define WGLAPI __declspec(dllexport) |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 72 | # elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */ |
| 73 | # define GLAPI __declspec(dllimport) |
Ted Jump | 6799ecb | 1999-09-17 04:25:56 +0000 | [diff] [blame] | 74 | # define WGLAPI __declspec(dllimport) |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 75 | # else /* for use with static link lib build of Win32 edition only */ |
| 76 | # define GLAPI extern |
Ted Jump | 6799ecb | 1999-09-17 04:25:56 +0000 | [diff] [blame] | 77 | # define WGLAPI __declspec(dllimport) |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 78 | # endif /* _STATIC_MESA support */ |
| 79 | # define GLAPIENTRY __stdcall |
| 80 | # define GLCALLBACK __stdcall |
| 81 | # define GLWINAPI __stdcall |
| 82 | # define GLWINAPIV __cdecl |
| 83 | #else |
| 84 | /* non-Windows compilation */ |
| 85 | # define GLAPI extern |
| 86 | # define GLAPIENTRY |
| 87 | # define GLCALLBACK |
| 88 | # define GLWINAPI |
| 89 | # define GLWINAPIV |
| 90 | #endif /* WIN32 / CYGWIN32 bracket */ |
| 91 | |
| 92 | /* compatability guard so we don't need to change client code */ |
| 93 | |
| 94 | #if defined(_WIN32) && !defined(_WINDEF_) && !defined(OPENSTEP) |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 95 | # define CALLBACK GLCALLBACK |
| 96 | typedef int (GLAPIENTRY *PROC)(); |
| 97 | typedef void *HGLRC; |
| 98 | typedef void *HDC; |
| 99 | typedef unsigned long COLORREF; |
| 100 | #endif |
| 101 | |
| 102 | #if defined(_WIN32) && !defined(_WINGDI_) && !defined(OPENSTEP) |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 103 | # define WGL_FONT_LINES 0 |
| 104 | # define WGL_FONT_POLYGONS 1 |
| 105 | # ifdef UNICODE |
| 106 | # define wglUseFontBitmaps wglUseFontBitmapsW |
| 107 | # define wglUseFontOutlines wglUseFontOutlinesW |
| 108 | # else |
| 109 | # define wglUseFontBitmaps wglUseFontBitmapsA |
| 110 | # define wglUseFontOutlines wglUseFontOutlinesA |
| 111 | # endif /* !UNICODE */ |
| 112 | typedef struct tagLAYERPLANEDESCRIPTOR LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR; |
| 113 | typedef struct _GLYPHMETRICSFLOAT GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT; |
Ted Jump | 6799ecb | 1999-09-17 04:25:56 +0000 | [diff] [blame] | 114 | typedef struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR; |
| 115 | #include <gl/mesa_wgl.h> |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 116 | #endif |
| 117 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 118 | #ifdef __cplusplus |
| 119 | extern "C" { |
| 120 | #endif |
| 121 | |
| 122 | |
| 123 | #ifdef macintosh |
| 124 | #pragma enumsalwaysint on |
| 125 | #if PRAGMA_IMPORT_SUPPORTED |
| 126 | #pragma import on |
| 127 | #endif |
| 128 | #endif |
| 129 | |
| 130 | |
| 131 | |
| 132 | /* |
| 133 | * Apps can test for this symbol to do conditional compilation if needed. |
| 134 | */ |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 135 | /* XXX these Mesa symbols are going away |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 136 | #define MESA |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 137 | #define MESA_MAJOR_VERSION 3 |
| 138 | #define MESA_MINOR_VERSION 1 |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 139 | */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 140 | |
| 141 | |
| 142 | #define GL_VERSION_1_1 1 |
| 143 | #define GL_VERSION_1_2 1 |
| 144 | |
| 145 | |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 146 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 147 | /* |
| 148 | * |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 149 | * Datatypes |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 150 | * |
| 151 | */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 152 | #ifdef CENTERLINE_CLPP |
| 153 | #define signed |
| 154 | #endif |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 155 | typedef unsigned int GLenum; |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 156 | typedef unsigned char GLboolean; |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 157 | typedef unsigned int GLbitfield; |
| 158 | typedef void GLvoid; |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 159 | typedef signed char GLbyte; /* 1-byte signed */ |
| 160 | typedef short GLshort; /* 2-byte signed */ |
| 161 | typedef int GLint; /* 4-byte signed */ |
| 162 | typedef unsigned char GLubyte; /* 1-byte unsigned */ |
| 163 | typedef unsigned short GLushort; /* 2-byte unsigned */ |
| 164 | typedef unsigned int GLuint; /* 4-byte unsigned */ |
| 165 | typedef int GLsizei; /* 4-byte signed */ |
| 166 | typedef float GLfloat; /* single precision float */ |
| 167 | typedef float GLclampf; /* single precision float in [0,1] */ |
| 168 | typedef double GLdouble; /* double precision float */ |
| 169 | typedef double GLclampd; /* double precision float in [0,1] */ |
| 170 | |
| 171 | |
| 172 | |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 173 | /* |
| 174 | * |
| 175 | * Constants |
| 176 | * |
| 177 | */ |
| 178 | |
| 179 | /* Boolean values */ |
| 180 | #define GL_FALSE 0x0 |
| 181 | #define GL_TRUE 0x1 |
| 182 | |
| 183 | /* Data types */ |
| 184 | #define GL_BYTE 0x1400 |
| 185 | #define GL_UNSIGNED_BYTE 0x1401 |
| 186 | #define GL_SHORT 0x1402 |
| 187 | #define GL_UNSIGNED_SHORT 0x1403 |
| 188 | #define GL_INT 0x1404 |
| 189 | #define GL_UNSIGNED_INT 0x1405 |
| 190 | #define GL_FLOAT 0x1406 |
| 191 | #define GL_DOUBLE 0x140A |
| 192 | #define GL_2_BYTES 0x1407 |
| 193 | #define GL_3_BYTES 0x1408 |
| 194 | #define GL_4_BYTES 0x1409 |
| 195 | |
| 196 | /* Primitives */ |
| 197 | #define GL_POINTS 0x0000 |
| 198 | #define GL_LINES 0x0001 |
| 199 | #define GL_LINE_LOOP 0x0002 |
| 200 | #define GL_LINE_STRIP 0x0003 |
| 201 | #define GL_TRIANGLES 0x0004 |
| 202 | #define GL_TRIANGLE_STRIP 0x0005 |
| 203 | #define GL_TRIANGLE_FAN 0x0006 |
| 204 | #define GL_QUADS 0x0007 |
| 205 | #define GL_QUAD_STRIP 0x0008 |
| 206 | #define GL_POLYGON 0x0009 |
| 207 | |
| 208 | /* Vertex Arrays */ |
| 209 | #define GL_VERTEX_ARRAY 0x8074 |
| 210 | #define GL_NORMAL_ARRAY 0x8075 |
| 211 | #define GL_COLOR_ARRAY 0x8076 |
| 212 | #define GL_INDEX_ARRAY 0x8077 |
| 213 | #define GL_TEXTURE_COORD_ARRAY 0x8078 |
| 214 | #define GL_EDGE_FLAG_ARRAY 0x8079 |
| 215 | #define GL_VERTEX_ARRAY_SIZE 0x807A |
| 216 | #define GL_VERTEX_ARRAY_TYPE 0x807B |
| 217 | #define GL_VERTEX_ARRAY_STRIDE 0x807C |
| 218 | #define GL_NORMAL_ARRAY_TYPE 0x807E |
| 219 | #define GL_NORMAL_ARRAY_STRIDE 0x807F |
| 220 | #define GL_COLOR_ARRAY_SIZE 0x8081 |
| 221 | #define GL_COLOR_ARRAY_TYPE 0x8082 |
| 222 | #define GL_COLOR_ARRAY_STRIDE 0x8083 |
| 223 | #define GL_INDEX_ARRAY_TYPE 0x8085 |
| 224 | #define GL_INDEX_ARRAY_STRIDE 0x8086 |
| 225 | #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 |
| 226 | #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 |
| 227 | #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A |
| 228 | #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C |
| 229 | #define GL_VERTEX_ARRAY_POINTER 0x808E |
| 230 | #define GL_NORMAL_ARRAY_POINTER 0x808F |
| 231 | #define GL_COLOR_ARRAY_POINTER 0x8090 |
| 232 | #define GL_INDEX_ARRAY_POINTER 0x8091 |
| 233 | #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 |
| 234 | #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 |
| 235 | #define GL_V2F 0x2A20 |
| 236 | #define GL_V3F 0x2A21 |
| 237 | #define GL_C4UB_V2F 0x2A22 |
| 238 | #define GL_C4UB_V3F 0x2A23 |
| 239 | #define GL_C3F_V3F 0x2A24 |
| 240 | #define GL_N3F_V3F 0x2A25 |
| 241 | #define GL_C4F_N3F_V3F 0x2A26 |
| 242 | #define GL_T2F_V3F 0x2A27 |
| 243 | #define GL_T4F_V4F 0x2A28 |
| 244 | #define GL_T2F_C4UB_V3F 0x2A29 |
| 245 | #define GL_T2F_C3F_V3F 0x2A2A |
| 246 | #define GL_T2F_N3F_V3F 0x2A2B |
| 247 | #define GL_T2F_C4F_N3F_V3F 0x2A2C |
| 248 | #define GL_T4F_C4F_N3F_V4F 0x2A2D |
| 249 | |
| 250 | /* Matrix Mode */ |
| 251 | #define GL_MATRIX_MODE 0x0BA0 |
| 252 | #define GL_MODELVIEW 0x1700 |
| 253 | #define GL_PROJECTION 0x1701 |
| 254 | #define GL_TEXTURE 0x1702 |
| 255 | |
| 256 | /* Points */ |
| 257 | #define GL_POINT_SMOOTH 0x0B10 |
| 258 | #define GL_POINT_SIZE 0x0B11 |
| 259 | #define GL_POINT_SIZE_GRANULARITY 0x0B13 |
| 260 | #define GL_POINT_SIZE_RANGE 0x0B12 |
| 261 | |
| 262 | /* Lines */ |
| 263 | #define GL_LINE_SMOOTH 0x0B20 |
| 264 | #define GL_LINE_STIPPLE 0x0B24 |
| 265 | #define GL_LINE_STIPPLE_PATTERN 0x0B25 |
| 266 | #define GL_LINE_STIPPLE_REPEAT 0x0B26 |
| 267 | #define GL_LINE_WIDTH 0x0B21 |
| 268 | #define GL_LINE_WIDTH_GRANULARITY 0x0B23 |
| 269 | #define GL_LINE_WIDTH_RANGE 0x0B22 |
| 270 | |
| 271 | /* Polygons */ |
| 272 | #define GL_POINT 0x1B00 |
| 273 | #define GL_LINE 0x1B01 |
| 274 | #define GL_FILL 0x1B02 |
| 275 | #define GL_CW 0x0900 |
| 276 | #define GL_CCW 0x0901 |
| 277 | #define GL_FRONT 0x0404 |
| 278 | #define GL_BACK 0x0405 |
| 279 | #define GL_POLYGON_MODE 0x0B40 |
| 280 | #define GL_POLYGON_SMOOTH 0x0B41 |
| 281 | #define GL_POLYGON_STIPPLE 0x0B42 |
| 282 | #define GL_EDGE_FLAG 0x0B43 |
| 283 | #define GL_CULL_FACE 0x0B44 |
| 284 | #define GL_CULL_FACE_MODE 0x0B45 |
| 285 | #define GL_FRONT_FACE 0x0B46 |
| 286 | #define GL_POLYGON_OFFSET_FACTOR 0x8038 |
| 287 | #define GL_POLYGON_OFFSET_UNITS 0x2A00 |
| 288 | #define GL_POLYGON_OFFSET_POINT 0x2A01 |
| 289 | #define GL_POLYGON_OFFSET_LINE 0x2A02 |
| 290 | #define GL_POLYGON_OFFSET_FILL 0x8037 |
| 291 | |
| 292 | /* Display Lists */ |
| 293 | #define GL_COMPILE 0x1300 |
| 294 | #define GL_COMPILE_AND_EXECUTE 0x1301 |
| 295 | #define GL_LIST_BASE 0x0B32 |
| 296 | #define GL_LIST_INDEX 0x0B33 |
| 297 | #define GL_LIST_MODE 0x0B30 |
| 298 | |
| 299 | /* Depth buffer */ |
| 300 | #define GL_NEVER 0x0200 |
| 301 | #define GL_LESS 0x0201 |
| 302 | #define GL_GEQUAL 0x0206 |
| 303 | #define GL_LEQUAL 0x0203 |
| 304 | #define GL_GREATER 0x0204 |
| 305 | #define GL_NOTEQUAL 0x0205 |
| 306 | #define GL_EQUAL 0x0202 |
| 307 | #define GL_ALWAYS 0x0207 |
| 308 | #define GL_DEPTH_TEST 0x0B71 |
| 309 | #define GL_DEPTH_BITS 0x0D56 |
| 310 | #define GL_DEPTH_CLEAR_VALUE 0x0B73 |
| 311 | #define GL_DEPTH_FUNC 0x0B74 |
| 312 | #define GL_DEPTH_RANGE 0x0B70 |
| 313 | #define GL_DEPTH_WRITEMASK 0x0B72 |
| 314 | #define GL_DEPTH_COMPONENT 0x1902 |
| 315 | |
| 316 | /* Lighting */ |
| 317 | #define GL_LIGHTING 0x0B50 |
| 318 | #define GL_LIGHT0 0x4000 |
| 319 | #define GL_LIGHT1 0x4001 |
| 320 | #define GL_LIGHT2 0x4002 |
| 321 | #define GL_LIGHT3 0x4003 |
| 322 | #define GL_LIGHT4 0x4004 |
| 323 | #define GL_LIGHT5 0x4005 |
| 324 | #define GL_LIGHT6 0x4006 |
| 325 | #define GL_LIGHT7 0x4007 |
| 326 | #define GL_SPOT_EXPONENT 0x1205 |
| 327 | #define GL_SPOT_CUTOFF 0x1206 |
| 328 | #define GL_CONSTANT_ATTENUATION 0x1207 |
| 329 | #define GL_LINEAR_ATTENUATION 0x1208 |
| 330 | #define GL_QUADRATIC_ATTENUATION 0x1209 |
| 331 | #define GL_AMBIENT 0x1200 |
| 332 | #define GL_DIFFUSE 0x1201 |
| 333 | #define GL_SPECULAR 0x1202 |
| 334 | #define GL_SHININESS 0x1601 |
| 335 | #define GL_EMISSION 0x1600 |
| 336 | #define GL_POSITION 0x1203 |
| 337 | #define GL_SPOT_DIRECTION 0x1204 |
| 338 | #define GL_AMBIENT_AND_DIFFUSE 0x1602 |
| 339 | #define GL_COLOR_INDEXES 0x1603 |
| 340 | #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 |
| 341 | #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 |
| 342 | #define GL_LIGHT_MODEL_AMBIENT 0x0B53 |
| 343 | #define GL_FRONT_AND_BACK 0x0408 |
| 344 | #define GL_SHADE_MODEL 0x0B54 |
| 345 | #define GL_FLAT 0x1D00 |
| 346 | #define GL_SMOOTH 0x1D01 |
| 347 | #define GL_COLOR_MATERIAL 0x0B57 |
| 348 | #define GL_COLOR_MATERIAL_FACE 0x0B55 |
| 349 | #define GL_COLOR_MATERIAL_PARAMETER 0x0B56 |
| 350 | #define GL_NORMALIZE 0x0BA1 |
| 351 | |
| 352 | /* User clipping planes */ |
| 353 | #define GL_CLIP_PLANE0 0x3000 |
| 354 | #define GL_CLIP_PLANE1 0x3001 |
| 355 | #define GL_CLIP_PLANE2 0x3002 |
| 356 | #define GL_CLIP_PLANE3 0x3003 |
| 357 | #define GL_CLIP_PLANE4 0x3004 |
| 358 | #define GL_CLIP_PLANE5 0x3005 |
| 359 | |
| 360 | /* Accumulation buffer */ |
| 361 | #define GL_ACCUM_RED_BITS 0x0D58 |
| 362 | #define GL_ACCUM_GREEN_BITS 0x0D59 |
| 363 | #define GL_ACCUM_BLUE_BITS 0x0D5A |
| 364 | #define GL_ACCUM_ALPHA_BITS 0x0D5B |
| 365 | #define GL_ACCUM_CLEAR_VALUE 0x0B80 |
| 366 | #define GL_ACCUM 0x0100 |
| 367 | #define GL_ADD 0x0104 |
| 368 | #define GL_LOAD 0x0101 |
| 369 | #define GL_MULT 0x0103 |
| 370 | #define GL_RETURN 0x0102 |
| 371 | |
| 372 | /* Alpha testing */ |
| 373 | #define GL_ALPHA_TEST 0x0BC0 |
| 374 | #define GL_ALPHA_TEST_REF 0x0BC2 |
| 375 | #define GL_ALPHA_TEST_FUNC 0x0BC1 |
| 376 | |
| 377 | /* Blending */ |
| 378 | #define GL_BLEND 0x0BE2 |
| 379 | #define GL_BLEND_SRC 0x0BE1 |
| 380 | #define GL_BLEND_DST 0x0BE0 |
| 381 | #define GL_ZERO 0x0 |
| 382 | #define GL_ONE 0x1 |
| 383 | #define GL_SRC_COLOR 0x0300 |
| 384 | #define GL_ONE_MINUS_SRC_COLOR 0x0301 |
| 385 | #define GL_DST_COLOR 0x0306 |
| 386 | #define GL_ONE_MINUS_DST_COLOR 0x0307 |
| 387 | #define GL_SRC_ALPHA 0x0302 |
| 388 | #define GL_ONE_MINUS_SRC_ALPHA 0x0303 |
| 389 | #define GL_DST_ALPHA 0x0304 |
| 390 | #define GL_ONE_MINUS_DST_ALPHA 0x0305 |
| 391 | #define GL_SRC_ALPHA_SATURATE 0x0308 |
| 392 | #define GL_CONSTANT_COLOR 0x8001 |
| 393 | #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 |
| 394 | #define GL_CONSTANT_ALPHA 0x8003 |
| 395 | #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 |
| 396 | |
| 397 | /* Render Mode */ |
| 398 | #define GL_FEEDBACK 0x1C01 |
| 399 | #define GL_RENDER 0x1C00 |
| 400 | #define GL_SELECT 0x1C02 |
| 401 | |
| 402 | /* Feedback */ |
| 403 | #define GL_2D 0x0600 |
| 404 | #define GL_3D 0x0601 |
| 405 | #define GL_3D_COLOR 0x0602 |
| 406 | #define GL_3D_COLOR_TEXTURE 0x0603 |
| 407 | #define GL_4D_COLOR_TEXTURE 0x0604 |
| 408 | #define GL_POINT_TOKEN 0x0701 |
| 409 | #define GL_LINE_TOKEN 0x0702 |
| 410 | #define GL_LINE_RESET_TOKEN 0x0707 |
| 411 | #define GL_POLYGON_TOKEN 0x0703 |
| 412 | #define GL_BITMAP_TOKEN 0x0704 |
| 413 | #define GL_DRAW_PIXEL_TOKEN 0x0705 |
| 414 | #define GL_COPY_PIXEL_TOKEN 0x0706 |
| 415 | #define GL_PASS_THROUGH_TOKEN 0x0700 |
| 416 | #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 |
| 417 | #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 |
| 418 | #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 |
| 419 | |
| 420 | /* Selection */ |
| 421 | #define GL_SELECTION_BUFFER_POINTER 0x0DF3 |
| 422 | #define GL_SELECTION_BUFFER_SIZE 0x0DF4 |
| 423 | |
| 424 | /* Fog */ |
| 425 | #define GL_FOG 0x0B60 |
| 426 | #define GL_FOG_MODE 0x0B65 |
| 427 | #define GL_FOG_DENSITY 0x0B62 |
| 428 | #define GL_FOG_COLOR 0x0B66 |
| 429 | #define GL_FOG_INDEX 0x0B61 |
| 430 | #define GL_FOG_START 0x0B63 |
| 431 | #define GL_FOG_END 0x0B64 |
| 432 | #define GL_LINEAR 0x2601 |
| 433 | #define GL_EXP 0x0800 |
| 434 | #define GL_EXP2 0x0801 |
| 435 | |
| 436 | /* Logic Ops */ |
| 437 | #define GL_LOGIC_OP 0x0BF1 |
| 438 | #define GL_INDEX_LOGIC_OP 0x0BF1 |
| 439 | #define GL_COLOR_LOGIC_OP 0x0BF2 |
| 440 | #define GL_LOGIC_OP_MODE 0x0BF0 |
| 441 | #define GL_CLEAR 0x1500 |
| 442 | #define GL_SET 0x150F |
| 443 | #define GL_COPY 0x1503 |
| 444 | #define GL_COPY_INVERTED 0x150C |
| 445 | #define GL_NOOP 0x1505 |
| 446 | #define GL_INVERT 0x150A |
| 447 | #define GL_AND 0x1501 |
| 448 | #define GL_NAND 0x150E |
| 449 | #define GL_OR 0x1507 |
| 450 | #define GL_NOR 0x1508 |
| 451 | #define GL_XOR 0x1506 |
| 452 | #define GL_EQUIV 0x1509 |
| 453 | #define GL_AND_REVERSE 0x1502 |
| 454 | #define GL_AND_INVERTED 0x1504 |
| 455 | #define GL_OR_REVERSE 0x150B |
| 456 | #define GL_OR_INVERTED 0x150D |
| 457 | |
| 458 | /* Stencil */ |
| 459 | #define GL_STENCIL_TEST 0x0B90 |
| 460 | #define GL_STENCIL_WRITEMASK 0x0B98 |
| 461 | #define GL_STENCIL_BITS 0x0D57 |
| 462 | #define GL_STENCIL_FUNC 0x0B92 |
| 463 | #define GL_STENCIL_VALUE_MASK 0x0B93 |
| 464 | #define GL_STENCIL_REF 0x0B97 |
| 465 | #define GL_STENCIL_FAIL 0x0B94 |
| 466 | #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 |
| 467 | #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 |
| 468 | #define GL_STENCIL_CLEAR_VALUE 0x0B91 |
| 469 | #define GL_STENCIL_INDEX 0x1901 |
| 470 | #define GL_KEEP 0x1E00 |
| 471 | #define GL_REPLACE 0x1E01 |
| 472 | #define GL_INCR 0x1E02 |
| 473 | #define GL_DECR 0x1E03 |
| 474 | |
| 475 | /* Buffers, Pixel Drawing/Reading */ |
| 476 | #define GL_NONE 0x0 |
| 477 | #define GL_LEFT 0x0406 |
| 478 | #define GL_RIGHT 0x0407 |
| 479 | /*GL_FRONT 0x0404 */ |
| 480 | /*GL_BACK 0x0405 */ |
| 481 | /*GL_FRONT_AND_BACK 0x0408 */ |
| 482 | #define GL_FRONT_LEFT 0x0400 |
| 483 | #define GL_FRONT_RIGHT 0x0401 |
| 484 | #define GL_BACK_LEFT 0x0402 |
| 485 | #define GL_BACK_RIGHT 0x0403 |
| 486 | #define GL_AUX0 0x0409 |
| 487 | #define GL_AUX1 0x040A |
| 488 | #define GL_AUX2 0x040B |
| 489 | #define GL_AUX3 0x040C |
| 490 | #define GL_COLOR_INDEX 0x1900 |
| 491 | #define GL_RED 0x1903 |
| 492 | #define GL_GREEN 0x1904 |
| 493 | #define GL_BLUE 0x1905 |
| 494 | #define GL_ALPHA 0x1906 |
| 495 | #define GL_LUMINANCE 0x1909 |
| 496 | #define GL_LUMINANCE_ALPHA 0x190A |
| 497 | #define GL_ALPHA_BITS 0x0D55 |
| 498 | #define GL_RED_BITS 0x0D52 |
| 499 | #define GL_GREEN_BITS 0x0D53 |
| 500 | #define GL_BLUE_BITS 0x0D54 |
| 501 | #define GL_INDEX_BITS 0x0D51 |
| 502 | #define GL_SUBPIXEL_BITS 0x0D50 |
| 503 | #define GL_AUX_BUFFERS 0x0C00 |
| 504 | #define GL_READ_BUFFER 0x0C02 |
| 505 | #define GL_DRAW_BUFFER 0x0C01 |
| 506 | #define GL_DOUBLEBUFFER 0x0C32 |
| 507 | #define GL_STEREO 0x0C33 |
| 508 | #define GL_BITMAP 0x1A00 |
| 509 | #define GL_COLOR 0x1800 |
| 510 | #define GL_DEPTH 0x1801 |
| 511 | #define GL_STENCIL 0x1802 |
| 512 | #define GL_DITHER 0x0BD0 |
| 513 | #define GL_RGB 0x1907 |
| 514 | #define GL_RGBA 0x1908 |
| 515 | |
| 516 | /* Implementation limits */ |
| 517 | #define GL_MAX_LIST_NESTING 0x0B31 |
| 518 | #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 |
| 519 | #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 |
| 520 | #define GL_MAX_NAME_STACK_DEPTH 0x0D37 |
| 521 | #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 |
| 522 | #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 |
| 523 | #define GL_MAX_EVAL_ORDER 0x0D30 |
| 524 | #define GL_MAX_LIGHTS 0x0D31 |
| 525 | #define GL_MAX_CLIP_PLANES 0x0D32 |
| 526 | #define GL_MAX_TEXTURE_SIZE 0x0D33 |
| 527 | #define GL_MAX_PIXEL_MAP_TABLE 0x0D34 |
| 528 | #define GL_MAX_VIEWPORT_DIMS 0x0D3A |
| 529 | #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B |
| 530 | |
| 531 | /* Gets */ |
| 532 | #define GL_ATTRIB_STACK_DEPTH 0x0BB0 |
| 533 | #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 |
| 534 | #define GL_COLOR_CLEAR_VALUE 0x0C22 |
| 535 | #define GL_COLOR_WRITEMASK 0x0C23 |
| 536 | #define GL_CURRENT_INDEX 0x0B01 |
| 537 | #define GL_CURRENT_COLOR 0x0B00 |
| 538 | #define GL_CURRENT_NORMAL 0x0B02 |
| 539 | #define GL_CURRENT_RASTER_COLOR 0x0B04 |
| 540 | #define GL_CURRENT_RASTER_DISTANCE 0x0B09 |
| 541 | #define GL_CURRENT_RASTER_INDEX 0x0B05 |
| 542 | #define GL_CURRENT_RASTER_POSITION 0x0B07 |
| 543 | #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 |
| 544 | #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 |
| 545 | #define GL_CURRENT_TEXTURE_COORDS 0x0B03 |
| 546 | #define GL_INDEX_CLEAR_VALUE 0x0C20 |
| 547 | #define GL_INDEX_MODE 0x0C30 |
| 548 | #define GL_INDEX_WRITEMASK 0x0C21 |
| 549 | #define GL_MODELVIEW_MATRIX 0x0BA6 |
| 550 | #define GL_MODELVIEW_STACK_DEPTH 0x0BA3 |
| 551 | #define GL_NAME_STACK_DEPTH 0x0D70 |
| 552 | #define GL_PROJECTION_MATRIX 0x0BA7 |
| 553 | #define GL_PROJECTION_STACK_DEPTH 0x0BA4 |
| 554 | #define GL_RENDER_MODE 0x0C40 |
| 555 | #define GL_RGBA_MODE 0x0C31 |
| 556 | #define GL_TEXTURE_MATRIX 0x0BA8 |
| 557 | #define GL_TEXTURE_STACK_DEPTH 0x0BA5 |
| 558 | #define GL_VIEWPORT 0x0BA2 |
| 559 | |
| 560 | /* Evaluators */ |
| 561 | #define GL_AUTO_NORMAL 0x0D80 |
| 562 | #define GL_MAP1_COLOR_4 0x0D90 |
| 563 | #define GL_MAP1_GRID_DOMAIN 0x0DD0 |
| 564 | #define GL_MAP1_GRID_SEGMENTS 0x0DD1 |
| 565 | #define GL_MAP1_INDEX 0x0D91 |
| 566 | #define GL_MAP1_NORMAL 0x0D92 |
| 567 | #define GL_MAP1_TEXTURE_COORD_1 0x0D93 |
| 568 | #define GL_MAP1_TEXTURE_COORD_2 0x0D94 |
| 569 | #define GL_MAP1_TEXTURE_COORD_3 0x0D95 |
| 570 | #define GL_MAP1_TEXTURE_COORD_4 0x0D96 |
| 571 | #define GL_MAP1_VERTEX_3 0x0D97 |
| 572 | #define GL_MAP1_VERTEX_4 0x0D98 |
| 573 | #define GL_MAP2_COLOR_4 0x0DB0 |
| 574 | #define GL_MAP2_GRID_DOMAIN 0x0DD2 |
| 575 | #define GL_MAP2_GRID_SEGMENTS 0x0DD3 |
| 576 | #define GL_MAP2_INDEX 0x0DB1 |
| 577 | #define GL_MAP2_NORMAL 0x0DB2 |
| 578 | #define GL_MAP2_TEXTURE_COORD_1 0x0DB3 |
| 579 | #define GL_MAP2_TEXTURE_COORD_2 0x0DB4 |
| 580 | #define GL_MAP2_TEXTURE_COORD_3 0x0DB5 |
| 581 | #define GL_MAP2_TEXTURE_COORD_4 0x0DB6 |
| 582 | #define GL_MAP2_VERTEX_3 0x0DB7 |
| 583 | #define GL_MAP2_VERTEX_4 0x0DB8 |
| 584 | #define GL_COEFF 0x0A00 |
| 585 | #define GL_DOMAIN 0x0A02 |
| 586 | #define GL_ORDER 0x0A01 |
| 587 | |
| 588 | /* Hints */ |
| 589 | #define GL_FOG_HINT 0x0C54 |
| 590 | #define GL_LINE_SMOOTH_HINT 0x0C52 |
| 591 | #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 |
| 592 | #define GL_POINT_SMOOTH_HINT 0x0C51 |
| 593 | #define GL_POLYGON_SMOOTH_HINT 0x0C53 |
| 594 | #define GL_DONT_CARE 0x1100 |
| 595 | #define GL_FASTEST 0x1101 |
| 596 | #define GL_NICEST 0x1102 |
| 597 | |
| 598 | /* Scissor box */ |
| 599 | #define GL_SCISSOR_TEST 0x0C11 |
| 600 | #define GL_SCISSOR_BOX 0x0C10 |
| 601 | |
| 602 | /* Pixel Mode / Transfer */ |
| 603 | #define GL_MAP_COLOR 0x0D10 |
| 604 | #define GL_MAP_STENCIL 0x0D11 |
| 605 | #define GL_INDEX_SHIFT 0x0D12 |
| 606 | #define GL_INDEX_OFFSET 0x0D13 |
| 607 | #define GL_RED_SCALE 0x0D14 |
| 608 | #define GL_RED_BIAS 0x0D15 |
| 609 | #define GL_GREEN_SCALE 0x0D18 |
| 610 | #define GL_GREEN_BIAS 0x0D19 |
| 611 | #define GL_BLUE_SCALE 0x0D1A |
| 612 | #define GL_BLUE_BIAS 0x0D1B |
| 613 | #define GL_ALPHA_SCALE 0x0D1C |
| 614 | #define GL_ALPHA_BIAS 0x0D1D |
| 615 | #define GL_DEPTH_SCALE 0x0D1E |
| 616 | #define GL_DEPTH_BIAS 0x0D1F |
| 617 | #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 |
| 618 | #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 |
| 619 | #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 |
| 620 | #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 |
| 621 | #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 |
| 622 | #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 |
| 623 | #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 |
| 624 | #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 |
| 625 | #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 |
| 626 | #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 |
| 627 | #define GL_PIXEL_MAP_S_TO_S 0x0C71 |
| 628 | #define GL_PIXEL_MAP_I_TO_I 0x0C70 |
| 629 | #define GL_PIXEL_MAP_I_TO_R 0x0C72 |
| 630 | #define GL_PIXEL_MAP_I_TO_G 0x0C73 |
| 631 | #define GL_PIXEL_MAP_I_TO_B 0x0C74 |
| 632 | #define GL_PIXEL_MAP_I_TO_A 0x0C75 |
| 633 | #define GL_PIXEL_MAP_R_TO_R 0x0C76 |
| 634 | #define GL_PIXEL_MAP_G_TO_G 0x0C77 |
| 635 | #define GL_PIXEL_MAP_B_TO_B 0x0C78 |
| 636 | #define GL_PIXEL_MAP_A_TO_A 0x0C79 |
| 637 | #define GL_PACK_ALIGNMENT 0x0D05 |
| 638 | #define GL_PACK_LSB_FIRST 0x0D01 |
| 639 | #define GL_PACK_ROW_LENGTH 0x0D02 |
| 640 | #define GL_PACK_SKIP_PIXELS 0x0D04 |
| 641 | #define GL_PACK_SKIP_ROWS 0x0D03 |
| 642 | #define GL_PACK_SWAP_BYTES 0x0D00 |
| 643 | #define GL_UNPACK_ALIGNMENT 0x0CF5 |
| 644 | #define GL_UNPACK_LSB_FIRST 0x0CF1 |
| 645 | #define GL_UNPACK_ROW_LENGTH 0x0CF2 |
| 646 | #define GL_UNPACK_SKIP_PIXELS 0x0CF4 |
| 647 | #define GL_UNPACK_SKIP_ROWS 0x0CF3 |
| 648 | #define GL_UNPACK_SWAP_BYTES 0x0CF0 |
| 649 | #define GL_ZOOM_X 0x0D16 |
| 650 | #define GL_ZOOM_Y 0x0D17 |
| 651 | |
| 652 | /* Texture mapping */ |
| 653 | #define GL_TEXTURE_ENV 0x2300 |
| 654 | #define GL_TEXTURE_ENV_MODE 0x2200 |
| 655 | #define GL_TEXTURE_1D 0x0DE0 |
| 656 | #define GL_TEXTURE_2D 0x0DE1 |
| 657 | #define GL_TEXTURE_WRAP_S 0x2802 |
| 658 | #define GL_TEXTURE_WRAP_T 0x2803 |
| 659 | #define GL_TEXTURE_MAG_FILTER 0x2800 |
| 660 | #define GL_TEXTURE_MIN_FILTER 0x2801 |
| 661 | #define GL_TEXTURE_ENV_COLOR 0x2201 |
| 662 | #define GL_TEXTURE_GEN_S 0x0C60 |
| 663 | #define GL_TEXTURE_GEN_T 0x0C61 |
| 664 | #define GL_TEXTURE_GEN_MODE 0x2500 |
| 665 | #define GL_TEXTURE_BORDER_COLOR 0x1004 |
| 666 | #define GL_TEXTURE_WIDTH 0x1000 |
| 667 | #define GL_TEXTURE_HEIGHT 0x1001 |
| 668 | #define GL_TEXTURE_BORDER 0x1005 |
| 669 | #define GL_TEXTURE_COMPONENTS 0x1003 |
| 670 | #define GL_TEXTURE_RED_SIZE 0x805C |
| 671 | #define GL_TEXTURE_GREEN_SIZE 0x805D |
| 672 | #define GL_TEXTURE_BLUE_SIZE 0x805E |
| 673 | #define GL_TEXTURE_ALPHA_SIZE 0x805F |
| 674 | #define GL_TEXTURE_LUMINANCE_SIZE 0x8060 |
| 675 | #define GL_TEXTURE_INTENSITY_SIZE 0x8061 |
| 676 | #define GL_NEAREST_MIPMAP_NEAREST 0x2700 |
| 677 | #define GL_NEAREST_MIPMAP_LINEAR 0x2702 |
| 678 | #define GL_LINEAR_MIPMAP_NEAREST 0x2701 |
| 679 | #define GL_LINEAR_MIPMAP_LINEAR 0x2703 |
| 680 | #define GL_OBJECT_LINEAR 0x2401 |
| 681 | #define GL_OBJECT_PLANE 0x2501 |
| 682 | #define GL_EYE_LINEAR 0x2400 |
| 683 | #define GL_EYE_PLANE 0x2502 |
| 684 | #define GL_SPHERE_MAP 0x2402 |
| 685 | #define GL_DECAL 0x2101 |
| 686 | #define GL_MODULATE 0x2100 |
| 687 | #define GL_NEAREST 0x2600 |
| 688 | #define GL_REPEAT 0x2901 |
| 689 | #define GL_CLAMP 0x2900 |
| 690 | #define GL_S 0x2000 |
| 691 | #define GL_T 0x2001 |
| 692 | #define GL_R 0x2002 |
| 693 | #define GL_Q 0x2003 |
| 694 | #define GL_TEXTURE_GEN_R 0x0C62 |
| 695 | #define GL_TEXTURE_GEN_Q 0x0C63 |
| 696 | |
| 697 | /* GL 1.1 texturing */ |
| 698 | #define GL_PROXY_TEXTURE_1D 0x8063 |
| 699 | #define GL_PROXY_TEXTURE_2D 0x8064 |
| 700 | #define GL_TEXTURE_PRIORITY 0x8066 |
| 701 | #define GL_TEXTURE_RESIDENT 0x8067 |
| 702 | #define GL_TEXTURE_BINDING_1D 0x8068 |
| 703 | #define GL_TEXTURE_BINDING_2D 0x8069 |
| 704 | #define GL_TEXTURE_INTERNAL_FORMAT 0x1003 |
| 705 | |
| 706 | /* GL 1.2 texturing */ |
| 707 | #define GL_PACK_SKIP_IMAGES 0x806B |
| 708 | #define GL_PACK_IMAGE_HEIGHT 0x806C |
| 709 | #define GL_UNPACK_SKIP_IMAGES 0x806D |
| 710 | #define GL_UNPACK_IMAGE_HEIGHT 0x806E |
| 711 | #define GL_TEXTURE_3D 0x806F |
| 712 | #define GL_PROXY_TEXTURE_3D 0x8070 |
| 713 | #define GL_TEXTURE_DEPTH 0x8071 |
| 714 | #define GL_TEXTURE_WRAP_R 0x8072 |
| 715 | #define GL_MAX_3D_TEXTURE_SIZE 0x8073 |
| 716 | #define GL_TEXTURE_BINDING_3D 0x806A |
| 717 | |
| 718 | /* Internal texture formats (GL 1.1) */ |
| 719 | #define GL_ALPHA4 0x803B |
| 720 | #define GL_ALPHA8 0x803C |
| 721 | #define GL_ALPHA12 0x803D |
| 722 | #define GL_ALPHA16 0x803E |
| 723 | #define GL_LUMINANCE4 0x803F |
| 724 | #define GL_LUMINANCE8 0x8040 |
| 725 | #define GL_LUMINANCE12 0x8041 |
| 726 | #define GL_LUMINANCE16 0x8042 |
| 727 | #define GL_LUMINANCE4_ALPHA4 0x8043 |
| 728 | #define GL_LUMINANCE6_ALPHA2 0x8044 |
| 729 | #define GL_LUMINANCE8_ALPHA8 0x8045 |
| 730 | #define GL_LUMINANCE12_ALPHA4 0x8046 |
| 731 | #define GL_LUMINANCE12_ALPHA12 0x8047 |
| 732 | #define GL_LUMINANCE16_ALPHA16 0x8048 |
| 733 | #define GL_INTENSITY 0x8049 |
| 734 | #define GL_INTENSITY4 0x804A |
| 735 | #define GL_INTENSITY8 0x804B |
| 736 | #define GL_INTENSITY12 0x804C |
| 737 | #define GL_INTENSITY16 0x804D |
| 738 | #define GL_R3_G3_B2 0x2A10 |
| 739 | #define GL_RGB4 0x804F |
| 740 | #define GL_RGB5 0x8050 |
| 741 | #define GL_RGB8 0x8051 |
| 742 | #define GL_RGB10 0x8052 |
| 743 | #define GL_RGB12 0x8053 |
| 744 | #define GL_RGB16 0x8054 |
| 745 | #define GL_RGBA2 0x8055 |
| 746 | #define GL_RGBA4 0x8056 |
| 747 | #define GL_RGB5_A1 0x8057 |
| 748 | #define GL_RGBA8 0x8058 |
| 749 | #define GL_RGB10_A2 0x8059 |
| 750 | #define GL_RGBA12 0x805A |
| 751 | #define GL_RGBA16 0x805B |
| 752 | |
| 753 | /* Utility */ |
| 754 | #define GL_VENDOR 0x1F00 |
| 755 | #define GL_RENDERER 0x1F01 |
| 756 | #define GL_VERSION 0x1F02 |
| 757 | #define GL_EXTENSIONS 0x1F03 |
| 758 | |
| 759 | /* Errors */ |
| 760 | #define GL_NO_ERROR 0x0 |
| 761 | #define GL_INVALID_VALUE 0x0501 |
| 762 | #define GL_INVALID_ENUM 0x0500 |
| 763 | #define GL_INVALID_OPERATION 0x0502 |
| 764 | #define GL_STACK_OVERFLOW 0x0503 |
| 765 | #define GL_STACK_UNDERFLOW 0x0504 |
| 766 | #define GL_OUT_OF_MEMORY 0x0505 |
| 767 | |
| 768 | /* |
| 769 | * Extensions |
| 770 | */ |
| 771 | |
| 772 | /* GL_EXT_blend_minmax and GL_EXT_blend_color */ |
| 773 | #define GL_CONSTANT_COLOR_EXT 0x8001 |
| 774 | #define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 |
| 775 | #define GL_CONSTANT_ALPHA_EXT 0x8003 |
| 776 | #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 |
| 777 | #define GL_BLEND_EQUATION_EXT 0x8009 |
| 778 | #define GL_MIN_EXT 0x8007 |
| 779 | #define GL_MAX_EXT 0x8008 |
| 780 | #define GL_FUNC_ADD_EXT 0x8006 |
| 781 | #define GL_FUNC_SUBTRACT_EXT 0x800A |
| 782 | #define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B |
| 783 | #define GL_BLEND_COLOR_EXT 0x8005 |
| 784 | |
| 785 | /* GL_EXT_polygon_offset */ |
| 786 | #define GL_POLYGON_OFFSET_EXT 0x8037 |
| 787 | #define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 |
| 788 | #define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 |
| 789 | |
| 790 | /* GL_EXT_vertex_array */ |
| 791 | #define GL_VERTEX_ARRAY_EXT 0x8074 |
| 792 | #define GL_NORMAL_ARRAY_EXT 0x8075 |
| 793 | #define GL_COLOR_ARRAY_EXT 0x8076 |
| 794 | #define GL_INDEX_ARRAY_EXT 0x8077 |
| 795 | #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 |
| 796 | #define GL_EDGE_FLAG_ARRAY_EXT 0x8079 |
| 797 | #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A |
| 798 | #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B |
| 799 | #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C |
| 800 | #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D |
| 801 | #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E |
| 802 | #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F |
| 803 | #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 |
| 804 | #define GL_COLOR_ARRAY_SIZE_EXT 0x8081 |
| 805 | #define GL_COLOR_ARRAY_TYPE_EXT 0x8082 |
| 806 | #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 |
| 807 | #define GL_COLOR_ARRAY_COUNT_EXT 0x8084 |
| 808 | #define GL_INDEX_ARRAY_TYPE_EXT 0x8085 |
| 809 | #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 |
| 810 | #define GL_INDEX_ARRAY_COUNT_EXT 0x8087 |
| 811 | #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 |
| 812 | #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 |
| 813 | #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A |
| 814 | #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B |
| 815 | #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C |
| 816 | #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D |
| 817 | #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E |
| 818 | #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F |
| 819 | #define GL_COLOR_ARRAY_POINTER_EXT 0x8090 |
| 820 | #define GL_INDEX_ARRAY_POINTER_EXT 0x8091 |
| 821 | #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 |
| 822 | #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 |
| 823 | |
| 824 | /* GL_EXT_texture_object */ |
| 825 | #define GL_TEXTURE_PRIORITY_EXT 0x8066 |
| 826 | #define GL_TEXTURE_RESIDENT_EXT 0x8067 |
| 827 | #define GL_TEXTURE_1D_BINDING_EXT 0x8068 |
| 828 | #define GL_TEXTURE_2D_BINDING_EXT 0x8069 |
| 829 | |
| 830 | /* GL_EXT_texture3D */ |
| 831 | #define GL_PACK_SKIP_IMAGES_EXT 0x806B |
| 832 | #define GL_PACK_IMAGE_HEIGHT_EXT 0x806C |
| 833 | #define GL_UNPACK_SKIP_IMAGES_EXT 0x806D |
| 834 | #define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E |
| 835 | #define GL_TEXTURE_3D_EXT 0x806F |
| 836 | #define GL_PROXY_TEXTURE_3D_EXT 0x8070 |
| 837 | #define GL_TEXTURE_DEPTH_EXT 0x8071 |
| 838 | #define GL_TEXTURE_WRAP_R_EXT 0x8072 |
| 839 | #define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 |
| 840 | #define GL_TEXTURE_3D_BINDING_EXT 0x806A |
| 841 | |
| 842 | /* GL_EXT_paletted_texture */ |
| 843 | #define GL_TABLE_TOO_LARGE_EXT 0x8031 |
| 844 | #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 |
| 845 | #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 |
| 846 | #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA |
| 847 | #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB |
| 848 | #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC |
| 849 | #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD |
| 850 | #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE |
| 851 | #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF |
| 852 | #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED |
| 853 | #define GL_COLOR_INDEX1_EXT 0x80E2 |
| 854 | #define GL_COLOR_INDEX2_EXT 0x80E3 |
| 855 | #define GL_COLOR_INDEX4_EXT 0x80E4 |
| 856 | #define GL_COLOR_INDEX8_EXT 0x80E5 |
| 857 | #define GL_COLOR_INDEX12_EXT 0x80E6 |
| 858 | #define GL_COLOR_INDEX16_EXT 0x80E7 |
| 859 | |
| 860 | /* GL_EXT_shared_texture_palette */ |
| 861 | #define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB |
| 862 | |
| 863 | /* GL_EXT_point_parameters */ |
| 864 | #define GL_POINT_SIZE_MIN_EXT 0x8126 |
| 865 | #define GL_POINT_SIZE_MAX_EXT 0x8127 |
| 866 | #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 |
| 867 | #define GL_DISTANCE_ATTENUATION_EXT 0x8129 |
| 868 | |
| 869 | /* GL_EXT_rescale_normal */ |
| 870 | #define GL_RESCALE_NORMAL_EXT 0x803A |
| 871 | |
| 872 | /* GL_EXT_abgr */ |
| 873 | #define GL_ABGR_EXT 0x8000 |
| 874 | |
| 875 | /* GL_EXT_stencil_wrap */ |
| 876 | #define GL_INCR_WRAP_EXT 0x8507 |
| 877 | #define GL_DECR_WRAP_EXT 0x8508 |
| 878 | |
| 879 | /* GL_SGIS_texture_edge_clamp */ |
| 880 | #define GL_CLAMP_TO_EDGE_SGIS 0x812F |
| 881 | |
| 882 | /* GL_INGR_blend_func_separate */ |
| 883 | #define GL_BLEND_DST_RGB_INGR 0x80C8 |
| 884 | #define GL_BLEND_SRC_RGB_INGR 0x80C9 |
| 885 | #define GL_BLEND_DST_ALPHA_INGR 0x80CA |
| 886 | #define GL_BLEND_SRC_ALPHA_INGR 0x80CB |
| 887 | |
| 888 | /* OpenGL 1.2 */ |
| 889 | #define GL_RESCALE_NORMAL 0x803A |
| 890 | #define GL_CLAMP_TO_EDGE 0x812F |
| 891 | #define GL_MAX_ELEMENTS_VERTICES 0x80E8 |
| 892 | #define GL_MAX_ELEMENTS_INDICES 0x80E9 |
| 893 | #define GL_BGR 0x80E0 |
| 894 | #define GL_BGRA 0x80E1 |
| 895 | #define GL_UNSIGNED_BYTE_3_3_2 0x8032 |
| 896 | #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 |
| 897 | #define GL_UNSIGNED_SHORT_5_6_5 0x8363 |
| 898 | #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 |
| 899 | #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 |
| 900 | #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 |
| 901 | #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 |
| 902 | #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 |
| 903 | #define GL_UNSIGNED_INT_8_8_8_8 0x8035 |
| 904 | #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 |
| 905 | #define GL_UNSIGNED_INT_10_10_10_2 0x8036 |
| 906 | #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 |
| 907 | #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 |
| 908 | #define GL_SINGLE_COLOR 0x81F9 |
| 909 | #define GL_SEPARATE_SPECULAR_COLOR 0x81FA |
| 910 | #define GL_TEXTURE_MIN_LOD 0x813A |
| 911 | #define GL_TEXTURE_MAX_LOD 0x813B |
| 912 | #define GL_TEXTURE_BASE_LEVEL 0x813C |
| 913 | #define GL_TEXTURE_MAX_LEVEL 0x813D |
| 914 | |
| 915 | /* GL_ARB_multitexture */ |
| 916 | #define GL_TEXTURE0_ARB 0x84C0 |
| 917 | #define GL_TEXTURE1_ARB 0x84C1 |
| 918 | #define GL_TEXTURE2_ARB 0x84C2 |
| 919 | #define GL_TEXTURE3_ARB 0x84C3 |
| 920 | #define GL_TEXTURE4_ARB 0x84C4 |
| 921 | #define GL_TEXTURE5_ARB 0x84C5 |
| 922 | #define GL_TEXTURE6_ARB 0x84C6 |
| 923 | #define GL_TEXTURE7_ARB 0x84C7 |
| 924 | #define GL_TEXTURE8_ARB 0x84C8 |
| 925 | #define GL_TEXTURE9_ARB 0x84C9 |
| 926 | #define GL_TEXTURE10_ARB 0x84CA |
| 927 | #define GL_TEXTURE11_ARB 0x84CB |
| 928 | #define GL_TEXTURE12_ARB 0x84CC |
| 929 | #define GL_TEXTURE13_ARB 0x84CD |
| 930 | #define GL_TEXTURE14_ARB 0x84CE |
| 931 | #define GL_TEXTURE15_ARB 0x84CF |
| 932 | #define GL_TEXTURE16_ARB 0x84D0 |
| 933 | #define GL_TEXTURE17_ARB 0x84D1 |
| 934 | #define GL_TEXTURE18_ARB 0x84D2 |
| 935 | #define GL_TEXTURE19_ARB 0x84D3 |
| 936 | #define GL_TEXTURE20_ARB 0x84D4 |
| 937 | #define GL_TEXTURE21_ARB 0x84D5 |
| 938 | #define GL_TEXTURE22_ARB 0x84D6 |
| 939 | #define GL_TEXTURE23_ARB 0x84D7 |
| 940 | #define GL_TEXTURE24_ARB 0x84D8 |
| 941 | #define GL_TEXTURE25_ARB 0x84D9 |
| 942 | #define GL_TEXTURE26_ARB 0x84DA |
| 943 | #define GL_TEXTURE27_ARB 0x84DB |
| 944 | #define GL_TEXTURE28_ARB 0x84DC |
| 945 | #define GL_TEXTURE29_ARB 0x84DD |
| 946 | #define GL_TEXTURE30_ARB 0x84DE |
| 947 | #define GL_TEXTURE31_ARB 0x84DF |
| 948 | #define GL_ACTIVE_TEXTURE_ARB 0x84E0 |
| 949 | #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 |
| 950 | #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 |
| 951 | |
| 952 | /* |
| 953 | * OpenGL 1.2 imaging subset (NOT IMPLEMENTED BY MESA) |
| 954 | */ |
| 955 | /* GL_EXT_color_table */ |
| 956 | #define GL_COLOR_TABLE 0x80D0 |
| 957 | #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 |
| 958 | #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 |
| 959 | #define GL_PROXY_COLOR_TABLE 0x80D3 |
| 960 | #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 |
| 961 | #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 |
| 962 | #define GL_COLOR_TABLE_SCALE 0x80D6 |
| 963 | #define GL_COLOR_TABLE_BIAS 0x80D7 |
| 964 | #define GL_COLOR_TABLE_FORMAT 0x80D8 |
| 965 | #define GL_COLOR_TABLE_WIDTH 0x80D9 |
| 966 | #define GL_COLOR_TABLE_RED_SIZE 0x80DA |
| 967 | #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB |
| 968 | #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC |
| 969 | #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD |
| 970 | #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE |
| 971 | #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF |
| 972 | /* GL_EXT_convolution and GL_HP_convolution_border_modes */ |
| 973 | #define GL_CONVOLUTION_1D 0x8010 |
| 974 | #define GL_CONVOLUTION_2D 0x8011 |
| 975 | #define GL_SEPARABLE_2D 0x8012 |
| 976 | #define GL_CONVOLUTION_BORDER_MODE 0x8013 |
| 977 | #define GL_CONVOLUTION_FILTER_SCALE 0x8014 |
| 978 | #define GL_CONVOLUTION_FILTER_BIAS 0x8015 |
| 979 | #define GL_REDUCE 0x8016 |
| 980 | #define GL_CONVOLUTION_FORMAT 0x8017 |
| 981 | #define GL_CONVOLUTION_WIDTH 0x8018 |
| 982 | #define GL_CONVOLUTION_HEIGHT 0x8019 |
| 983 | #define GL_MAX_CONVOLUTION_WIDTH 0x801A |
| 984 | #define GL_MAX_CONVOLUTION_HEIGHT 0x801B |
| 985 | #define GL_POST_CONVOLUTION_RED_SCALE 0x801C |
| 986 | #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D |
| 987 | #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E |
| 988 | #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F |
| 989 | #define GL_POST_CONVOLUTION_RED_BIAS 0x8020 |
| 990 | #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 |
| 991 | #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 |
| 992 | #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 |
| 993 | #define GL_CONSTANT_BORDER 0x8151 |
| 994 | #define GL_REPLICATE_BORDER 0x8153 |
| 995 | #define GL_CONVOLUTION_BORDER_COLOR 0x8154 |
| 996 | /* GL_SGI_color_matrix */ |
| 997 | #define GL_COLOR_MATRIX 0x80B1 |
| 998 | #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 |
| 999 | #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 |
| 1000 | #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 |
| 1001 | #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 |
| 1002 | #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 |
| 1003 | #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 |
| 1004 | #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 |
| 1005 | #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 |
| 1006 | #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA |
| 1007 | #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB |
| 1008 | /* GL_EXT_histogram */ |
| 1009 | #define GL_HISTOGRAM 0x8024 |
| 1010 | #define GL_PROXY_HISTOGRAM 0x8025 |
| 1011 | #define GL_HISTOGRAM_WIDTH 0x8026 |
| 1012 | #define GL_HISTOGRAM_FORMAT 0x8027 |
| 1013 | #define GL_HISTOGRAM_RED_SIZE 0x8028 |
| 1014 | #define GL_HISTOGRAM_GREEN_SIZE 0x8029 |
| 1015 | #define GL_HISTOGRAM_BLUE_SIZE 0x802A |
| 1016 | #define GL_HISTOGRAM_ALPHA_SIZE 0x802B |
| 1017 | #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C |
| 1018 | #define GL_HISTOGRAM_SINK 0x802D |
| 1019 | #define GL_MINMAX 0x802E |
| 1020 | #define GL_MINMAX_FORMAT 0x802F |
| 1021 | #define GL_MINMAX_SINK 0x8030 |
| 1022 | #define GL_TABLE_TOO_LARGE 0x8031 |
| 1023 | /* GL_EXT_blend_color, GL_EXT_blend_minmax */ |
| 1024 | #define GL_BLEND_EQUATION 0x8009 |
| 1025 | #define GL_MIN 0x8007 |
| 1026 | #define GL_MAX 0x8008 |
| 1027 | #define GL_FUNC_ADD 0x8006 |
| 1028 | #define GL_FUNC_SUBTRACT 0x800A |
| 1029 | #define GL_FUNC_REVERSE_SUBTRACT 0x800B |
| 1030 | #define GL_BLEND_COLOR 0x8005 |
| 1031 | |
| 1032 | /* GL_NV_texgen_reflection (nVidia) */ |
| 1033 | #define GL_NORMAL_MAP_NV 0x8511 |
| 1034 | #define GL_REFLECTION_MAP_NV 0x8512 |
| 1035 | |
| 1036 | /* GL_PGI_misc_hints */ |
| 1037 | #define GL_PREFER_DOUBLEBUFFER_HINT_PGI 107000 |
| 1038 | #define GL_STRICT_DEPTHFUNC_HINT_PGI 107030 |
| 1039 | #define GL_STRICT_LIGHTING_HINT_PGI 107031 |
| 1040 | #define GL_STRICT_SCISSOR_HINT_PGI 107032 |
| 1041 | #define GL_FULL_STIPPLE_HINT_PGI 107033 |
| 1042 | #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 107011 |
| 1043 | #define GL_NATIVE_GRAPHICS_END_HINT_PGI 107012 |
| 1044 | #define GL_CONSERVE_MEMORY_HINT_PGI 107005 |
| 1045 | #define GL_RECLAIM_MEMORY_HINT_PGI 107006 |
| 1046 | #define GL_ALWAYS_FAST_HINT_PGI 107020 |
| 1047 | #define GL_ALWAYS_SOFT_HINT_PGI 107021 |
| 1048 | #define GL_ALLOW_DRAW_OBJ_HINT_PGI 107022 |
| 1049 | #define GL_ALLOW_DRAW_WIN_HINT_PGI 107023 |
| 1050 | #define GL_ALLOW_DRAW_FRG_HINT_PGI 107024 |
| 1051 | #define GL_ALLOW_DRAW_SPN_HINT_PGI 107024 |
| 1052 | #define GL_ALLOW_DRAW_MEM_HINT_PGI 107025 |
| 1053 | #define GL_CLIP_NEAR_HINT_PGI 107040 |
| 1054 | #define GL_CLIP_FAR_HINT_PGI 107041 |
| 1055 | #define GL_WIDE_LINE_HINT_PGI 107042 |
| 1056 | #define GL_BACK_NORMALS_HINT_PGI 107043 |
| 1057 | #define GL_NATIVE_GRAPHICS_HANDLE_PGI 107010 |
| 1058 | |
| 1059 | /* GL_EXT_compiled_vertex_array */ |
| 1060 | #define GL_ARRAY_ELEMENT_LOCK_FIRST_SGI 0x81A8 |
| 1061 | #define GL_ARRAY_ELEMENT_LOCK_COUNT_SGI 0x81A9 |
| 1062 | |
| 1063 | /* GL_EXT_clip_volume_hint */ |
| 1064 | #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F |
| 1065 | |
| 1066 | |
| 1067 | /* glPush/PopAttrib bits */ |
| 1068 | #define GL_CURRENT_BIT 0x00000001 |
| 1069 | #define GL_POINT_BIT 0x00000002 |
| 1070 | #define GL_LINE_BIT 0x00000004 |
| 1071 | #define GL_POLYGON_BIT 0x00000008 |
| 1072 | #define GL_POLYGON_STIPPLE_BIT 0x00000010 |
| 1073 | #define GL_PIXEL_MODE_BIT 0x00000020 |
| 1074 | #define GL_LIGHTING_BIT 0x00000040 |
| 1075 | #define GL_FOG_BIT 0x00000080 |
| 1076 | #define GL_DEPTH_BUFFER_BIT 0x00000100 |
| 1077 | #define GL_ACCUM_BUFFER_BIT 0x00000200 |
| 1078 | #define GL_STENCIL_BUFFER_BIT 0x00000400 |
| 1079 | #define GL_VIEWPORT_BIT 0x00000800 |
| 1080 | #define GL_TRANSFORM_BIT 0x00001000 |
| 1081 | #define GL_ENABLE_BIT 0x00002000 |
| 1082 | #define GL_COLOR_BUFFER_BIT 0x00004000 |
| 1083 | #define GL_HINT_BIT 0x00008000 |
| 1084 | #define GL_EVAL_BIT 0x00010000 |
| 1085 | #define GL_LIST_BIT 0x00020000 |
| 1086 | #define GL_TEXTURE_BIT 0x00040000 |
| 1087 | #define GL_SCISSOR_BIT 0x00080000 |
| 1088 | #define GL_ALL_ATTRIB_BITS 0x000FFFFF |
| 1089 | |
| 1090 | |
| 1091 | #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 |
| 1092 | #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 |
| 1093 | #define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF |
| 1094 | |
| 1095 | |
| 1096 | |
| 1097 | |
| 1098 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 1099 | #if defined(__BEOS__) || defined(__QUICKDRAW__) |
| 1100 | #pragma export on |
| 1101 | #endif |
| 1102 | |
| 1103 | |
| 1104 | /* |
| 1105 | * Miscellaneous |
| 1106 | */ |
| 1107 | |
| 1108 | GLAPI void GLAPIENTRY glClearIndex( GLfloat c ); |
| 1109 | |
| 1110 | GLAPI void GLAPIENTRY glClearColor( GLclampf red, |
| 1111 | GLclampf green, |
| 1112 | GLclampf blue, |
| 1113 | GLclampf alpha ); |
| 1114 | |
| 1115 | GLAPI void GLAPIENTRY glClear( GLbitfield mask ); |
| 1116 | |
| 1117 | GLAPI void GLAPIENTRY glIndexMask( GLuint mask ); |
| 1118 | |
| 1119 | GLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green, |
| 1120 | GLboolean blue, GLboolean alpha ); |
| 1121 | |
| 1122 | GLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref ); |
| 1123 | |
| 1124 | GLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor ); |
| 1125 | |
| 1126 | GLAPI void GLAPIENTRY glLogicOp( GLenum opcode ); |
| 1127 | |
| 1128 | GLAPI void GLAPIENTRY glCullFace( GLenum mode ); |
| 1129 | |
| 1130 | GLAPI void GLAPIENTRY glFrontFace( GLenum mode ); |
| 1131 | |
| 1132 | GLAPI void GLAPIENTRY glPointSize( GLfloat size ); |
| 1133 | |
| 1134 | GLAPI void GLAPIENTRY glLineWidth( GLfloat width ); |
| 1135 | |
| 1136 | GLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern ); |
| 1137 | |
| 1138 | GLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode ); |
| 1139 | |
| 1140 | GLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units ); |
| 1141 | |
| 1142 | GLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask ); |
| 1143 | |
| 1144 | GLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask ); |
| 1145 | |
| 1146 | GLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag ); |
| 1147 | |
| 1148 | GLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag ); |
| 1149 | |
| 1150 | GLAPI void GLAPIENTRY glScissor( GLint x, GLint y, |
| 1151 | GLsizei width, GLsizei height); |
| 1152 | |
| 1153 | GLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation ); |
| 1154 | |
| 1155 | GLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation ); |
| 1156 | |
| 1157 | GLAPI void GLAPIENTRY glDrawBuffer( GLenum mode ); |
| 1158 | |
| 1159 | GLAPI void GLAPIENTRY glReadBuffer( GLenum mode ); |
| 1160 | |
| 1161 | GLAPI void GLAPIENTRY glEnable( GLenum cap ); |
| 1162 | |
| 1163 | GLAPI void GLAPIENTRY glDisable( GLenum cap ); |
| 1164 | |
| 1165 | GLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap ); |
| 1166 | |
| 1167 | |
| 1168 | GLAPI void GLAPIENTRY glEnableClientState( GLenum cap ); /* 1.1 */ |
| 1169 | |
| 1170 | GLAPI void GLAPIENTRY glDisableClientState( GLenum cap ); /* 1.1 */ |
| 1171 | |
| 1172 | |
| 1173 | GLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params ); |
| 1174 | |
| 1175 | GLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params ); |
| 1176 | |
| 1177 | GLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params ); |
| 1178 | |
| 1179 | GLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params ); |
| 1180 | |
| 1181 | |
| 1182 | GLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask ); |
| 1183 | |
| 1184 | GLAPI void GLAPIENTRY glPopAttrib( void ); |
| 1185 | |
| 1186 | |
| 1187 | GLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask ); /* 1.1 */ |
| 1188 | |
| 1189 | GLAPI void GLAPIENTRY glPopClientAttrib( void ); /* 1.1 */ |
| 1190 | |
| 1191 | |
| 1192 | GLAPI GLint GLAPIENTRY glRenderMode( GLenum mode ); |
| 1193 | |
| 1194 | GLAPI GLenum GLAPIENTRY glGetError( void ); |
| 1195 | |
| 1196 | GLAPI const GLubyte* GLAPIENTRY glGetString( GLenum name ); |
| 1197 | |
| 1198 | GLAPI void GLAPIENTRY glFinish( void ); |
| 1199 | |
| 1200 | GLAPI void GLAPIENTRY glFlush( void ); |
| 1201 | |
| 1202 | GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode ); |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | /* |
| 1207 | * Depth Buffer |
| 1208 | */ |
| 1209 | |
| 1210 | GLAPI void GLAPIENTRY glClearDepth( GLclampd depth ); |
| 1211 | |
| 1212 | GLAPI void GLAPIENTRY glDepthFunc( GLenum func ); |
| 1213 | |
| 1214 | GLAPI void GLAPIENTRY glDepthMask( GLboolean flag ); |
| 1215 | |
| 1216 | GLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val ); |
| 1217 | |
| 1218 | |
| 1219 | /* |
| 1220 | * Accumulation Buffer |
| 1221 | */ |
| 1222 | |
| 1223 | GLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green, |
| 1224 | GLfloat blue, GLfloat alpha ); |
| 1225 | |
| 1226 | GLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value ); |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | /* |
| 1231 | * Transformation |
| 1232 | */ |
| 1233 | |
| 1234 | GLAPI void GLAPIENTRY glMatrixMode( GLenum mode ); |
| 1235 | |
| 1236 | GLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right, |
| 1237 | GLdouble bottom, GLdouble top, |
| 1238 | GLdouble near_val, GLdouble far_val ); |
| 1239 | |
| 1240 | GLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right, |
| 1241 | GLdouble bottom, GLdouble top, |
| 1242 | GLdouble near_val, GLdouble far_val ); |
| 1243 | |
| 1244 | GLAPI void GLAPIENTRY glViewport( GLint x, GLint y, |
| 1245 | GLsizei width, GLsizei height ); |
| 1246 | |
| 1247 | GLAPI void GLAPIENTRY glPushMatrix( void ); |
| 1248 | |
| 1249 | GLAPI void GLAPIENTRY glPopMatrix( void ); |
| 1250 | |
| 1251 | GLAPI void GLAPIENTRY glLoadIdentity( void ); |
| 1252 | |
| 1253 | GLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m ); |
| 1254 | GLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m ); |
| 1255 | |
| 1256 | GLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m ); |
| 1257 | GLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m ); |
| 1258 | |
| 1259 | GLAPI void GLAPIENTRY glRotated( GLdouble angle, |
| 1260 | GLdouble x, GLdouble y, GLdouble z ); |
| 1261 | GLAPI void GLAPIENTRY glRotatef( GLfloat angle, |
| 1262 | GLfloat x, GLfloat y, GLfloat z ); |
| 1263 | |
| 1264 | GLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z ); |
| 1265 | GLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z ); |
| 1266 | |
| 1267 | GLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z ); |
| 1268 | GLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z ); |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | /* |
| 1273 | * Display Lists |
| 1274 | */ |
| 1275 | |
| 1276 | GLAPI GLboolean GLAPIENTRY glIsList( GLuint list ); |
| 1277 | |
| 1278 | GLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range ); |
| 1279 | |
| 1280 | GLAPI GLuint GLAPIENTRY glGenLists( GLsizei range ); |
| 1281 | |
| 1282 | GLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode ); |
| 1283 | |
| 1284 | GLAPI void GLAPIENTRY glEndList( void ); |
| 1285 | |
| 1286 | GLAPI void GLAPIENTRY glCallList( GLuint list ); |
| 1287 | |
| 1288 | GLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type, |
| 1289 | const GLvoid *lists ); |
| 1290 | |
| 1291 | GLAPI void GLAPIENTRY glListBase( GLuint base ); |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | /* |
| 1296 | * Drawing Functions |
| 1297 | */ |
| 1298 | |
| 1299 | GLAPI void GLAPIENTRY glBegin( GLenum mode ); |
| 1300 | |
| 1301 | GLAPI void GLAPIENTRY glEnd( void ); |
| 1302 | |
| 1303 | |
| 1304 | GLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y ); |
| 1305 | GLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y ); |
| 1306 | GLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y ); |
| 1307 | GLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y ); |
| 1308 | |
| 1309 | GLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z ); |
| 1310 | GLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z ); |
| 1311 | GLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z ); |
| 1312 | GLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z ); |
| 1313 | |
| 1314 | GLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ); |
| 1315 | GLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); |
| 1316 | GLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w ); |
| 1317 | GLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w ); |
| 1318 | |
| 1319 | GLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v ); |
| 1320 | GLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v ); |
| 1321 | GLAPI void GLAPIENTRY glVertex2iv( const GLint *v ); |
| 1322 | GLAPI void GLAPIENTRY glVertex2sv( const GLshort *v ); |
| 1323 | |
| 1324 | GLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v ); |
| 1325 | GLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v ); |
| 1326 | GLAPI void GLAPIENTRY glVertex3iv( const GLint *v ); |
| 1327 | GLAPI void GLAPIENTRY glVertex3sv( const GLshort *v ); |
| 1328 | |
| 1329 | GLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v ); |
| 1330 | GLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v ); |
| 1331 | GLAPI void GLAPIENTRY glVertex4iv( const GLint *v ); |
| 1332 | GLAPI void GLAPIENTRY glVertex4sv( const GLshort *v ); |
| 1333 | |
| 1334 | |
| 1335 | GLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz ); |
| 1336 | GLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz ); |
| 1337 | GLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz ); |
| 1338 | GLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz ); |
| 1339 | GLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz ); |
| 1340 | |
| 1341 | GLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v ); |
| 1342 | GLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v ); |
| 1343 | GLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v ); |
| 1344 | GLAPI void GLAPIENTRY glNormal3iv( const GLint *v ); |
| 1345 | GLAPI void GLAPIENTRY glNormal3sv( const GLshort *v ); |
| 1346 | |
| 1347 | |
| 1348 | GLAPI void GLAPIENTRY glIndexd( GLdouble c ); |
| 1349 | GLAPI void GLAPIENTRY glIndexf( GLfloat c ); |
| 1350 | GLAPI void GLAPIENTRY glIndexi( GLint c ); |
| 1351 | GLAPI void GLAPIENTRY glIndexs( GLshort c ); |
| 1352 | GLAPI void GLAPIENTRY glIndexub( GLubyte c ); /* 1.1 */ |
| 1353 | |
| 1354 | GLAPI void GLAPIENTRY glIndexdv( const GLdouble *c ); |
| 1355 | GLAPI void GLAPIENTRY glIndexfv( const GLfloat *c ); |
| 1356 | GLAPI void GLAPIENTRY glIndexiv( const GLint *c ); |
| 1357 | GLAPI void GLAPIENTRY glIndexsv( const GLshort *c ); |
| 1358 | GLAPI void GLAPIENTRY glIndexubv( const GLubyte *c ); /* 1.1 */ |
| 1359 | |
| 1360 | GLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue ); |
| 1361 | GLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue ); |
| 1362 | GLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue ); |
| 1363 | GLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue ); |
| 1364 | GLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue ); |
| 1365 | GLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue ); |
| 1366 | GLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue ); |
| 1367 | GLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue ); |
| 1368 | |
| 1369 | GLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green, |
| 1370 | GLbyte blue, GLbyte alpha ); |
| 1371 | GLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green, |
| 1372 | GLdouble blue, GLdouble alpha ); |
| 1373 | GLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green, |
| 1374 | GLfloat blue, GLfloat alpha ); |
| 1375 | GLAPI void GLAPIENTRY glColor4i( GLint red, GLint green, |
| 1376 | GLint blue, GLint alpha ); |
| 1377 | GLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green, |
| 1378 | GLshort blue, GLshort alpha ); |
| 1379 | GLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green, |
| 1380 | GLubyte blue, GLubyte alpha ); |
| 1381 | GLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green, |
| 1382 | GLuint blue, GLuint alpha ); |
| 1383 | GLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green, |
| 1384 | GLushort blue, GLushort alpha ); |
| 1385 | |
| 1386 | |
| 1387 | GLAPI void GLAPIENTRY glColor3bv( const GLbyte *v ); |
| 1388 | GLAPI void GLAPIENTRY glColor3dv( const GLdouble *v ); |
| 1389 | GLAPI void GLAPIENTRY glColor3fv( const GLfloat *v ); |
| 1390 | GLAPI void GLAPIENTRY glColor3iv( const GLint *v ); |
| 1391 | GLAPI void GLAPIENTRY glColor3sv( const GLshort *v ); |
| 1392 | GLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v ); |
| 1393 | GLAPI void GLAPIENTRY glColor3uiv( const GLuint *v ); |
| 1394 | GLAPI void GLAPIENTRY glColor3usv( const GLushort *v ); |
| 1395 | |
| 1396 | GLAPI void GLAPIENTRY glColor4bv( const GLbyte *v ); |
| 1397 | GLAPI void GLAPIENTRY glColor4dv( const GLdouble *v ); |
| 1398 | GLAPI void GLAPIENTRY glColor4fv( const GLfloat *v ); |
| 1399 | GLAPI void GLAPIENTRY glColor4iv( const GLint *v ); |
| 1400 | GLAPI void GLAPIENTRY glColor4sv( const GLshort *v ); |
| 1401 | GLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v ); |
| 1402 | GLAPI void GLAPIENTRY glColor4uiv( const GLuint *v ); |
| 1403 | GLAPI void GLAPIENTRY glColor4usv( const GLushort *v ); |
| 1404 | |
| 1405 | |
| 1406 | GLAPI void GLAPIENTRY glTexCoord1d( GLdouble s ); |
| 1407 | GLAPI void GLAPIENTRY glTexCoord1f( GLfloat s ); |
| 1408 | GLAPI void GLAPIENTRY glTexCoord1i( GLint s ); |
| 1409 | GLAPI void GLAPIENTRY glTexCoord1s( GLshort s ); |
| 1410 | |
| 1411 | GLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t ); |
| 1412 | GLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t ); |
| 1413 | GLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t ); |
| 1414 | GLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t ); |
| 1415 | |
| 1416 | GLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r ); |
| 1417 | GLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r ); |
| 1418 | GLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r ); |
| 1419 | GLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r ); |
| 1420 | |
| 1421 | GLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q ); |
| 1422 | GLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q ); |
| 1423 | GLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q ); |
| 1424 | GLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q ); |
| 1425 | |
| 1426 | GLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v ); |
| 1427 | GLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v ); |
| 1428 | GLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v ); |
| 1429 | GLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v ); |
| 1430 | |
| 1431 | GLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v ); |
| 1432 | GLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v ); |
| 1433 | GLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v ); |
| 1434 | GLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v ); |
| 1435 | |
| 1436 | GLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v ); |
| 1437 | GLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v ); |
| 1438 | GLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v ); |
| 1439 | GLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v ); |
| 1440 | |
| 1441 | GLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v ); |
| 1442 | GLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v ); |
| 1443 | GLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v ); |
| 1444 | GLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v ); |
| 1445 | |
| 1446 | |
| 1447 | GLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y ); |
| 1448 | GLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y ); |
| 1449 | GLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y ); |
| 1450 | GLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y ); |
| 1451 | |
| 1452 | GLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z ); |
| 1453 | GLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z ); |
| 1454 | GLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z ); |
| 1455 | GLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z ); |
| 1456 | |
| 1457 | GLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ); |
| 1458 | GLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); |
| 1459 | GLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w ); |
| 1460 | GLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w ); |
| 1461 | |
| 1462 | GLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v ); |
| 1463 | GLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v ); |
| 1464 | GLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v ); |
| 1465 | GLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v ); |
| 1466 | |
| 1467 | GLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v ); |
| 1468 | GLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v ); |
| 1469 | GLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v ); |
| 1470 | GLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v ); |
| 1471 | |
| 1472 | GLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v ); |
| 1473 | GLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v ); |
| 1474 | GLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v ); |
| 1475 | GLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v ); |
| 1476 | |
| 1477 | |
| 1478 | GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 ); |
| 1479 | GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ); |
| 1480 | GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 ); |
| 1481 | GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 ); |
| 1482 | |
| 1483 | |
| 1484 | GLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 ); |
| 1485 | GLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 ); |
| 1486 | GLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 ); |
| 1487 | GLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 ); |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | /* |
| 1492 | * Vertex Arrays (1.1) |
| 1493 | */ |
| 1494 | |
| 1495 | GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type, |
| 1496 | GLsizei stride, const GLvoid *ptr ); |
| 1497 | |
| 1498 | GLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride, |
| 1499 | const GLvoid *ptr ); |
| 1500 | |
| 1501 | GLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type, |
| 1502 | GLsizei stride, const GLvoid *ptr ); |
| 1503 | |
| 1504 | GLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride, |
| 1505 | const GLvoid *ptr ); |
| 1506 | |
| 1507 | GLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type, |
| 1508 | GLsizei stride, const GLvoid *ptr ); |
| 1509 | |
| 1510 | GLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr ); |
| 1511 | |
| 1512 | GLAPI void GLAPIENTRY glGetPointerv( GLenum pname, void **params ); |
| 1513 | |
| 1514 | GLAPI void GLAPIENTRY glArrayElement( GLint i ); |
| 1515 | |
| 1516 | GLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count ); |
| 1517 | |
| 1518 | GLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count, |
| 1519 | GLenum type, const GLvoid *indices ); |
| 1520 | |
| 1521 | GLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride, |
| 1522 | const GLvoid *pointer ); |
| 1523 | |
| 1524 | |
| 1525 | /* |
| 1526 | * Lighting |
| 1527 | */ |
| 1528 | |
| 1529 | GLAPI void GLAPIENTRY glShadeModel( GLenum mode ); |
| 1530 | |
| 1531 | GLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param ); |
| 1532 | GLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param ); |
| 1533 | GLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname, |
| 1534 | const GLfloat *params ); |
| 1535 | GLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname, |
| 1536 | const GLint *params ); |
| 1537 | |
| 1538 | GLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname, |
| 1539 | GLfloat *params ); |
| 1540 | GLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname, |
| 1541 | GLint *params ); |
| 1542 | |
| 1543 | GLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param ); |
| 1544 | GLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param ); |
| 1545 | GLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params ); |
| 1546 | GLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params ); |
| 1547 | |
| 1548 | GLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param ); |
| 1549 | GLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param ); |
| 1550 | GLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params ); |
| 1551 | GLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params ); |
| 1552 | |
| 1553 | GLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params ); |
| 1554 | GLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params ); |
| 1555 | |
| 1556 | GLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode ); |
| 1557 | |
| 1558 | |
| 1559 | |
| 1560 | |
| 1561 | /* |
| 1562 | * Raster functions |
| 1563 | */ |
| 1564 | |
| 1565 | GLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor ); |
| 1566 | |
| 1567 | GLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param ); |
| 1568 | GLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param ); |
| 1569 | |
| 1570 | GLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param ); |
| 1571 | GLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param ); |
| 1572 | |
| 1573 | GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLint mapsize, |
| 1574 | const GLfloat *values ); |
| 1575 | GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLint mapsize, |
| 1576 | const GLuint *values ); |
| 1577 | GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLint mapsize, |
| 1578 | const GLushort *values ); |
| 1579 | |
| 1580 | GLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values ); |
| 1581 | GLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values ); |
| 1582 | GLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values ); |
| 1583 | |
| 1584 | GLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height, |
| 1585 | GLfloat xorig, GLfloat yorig, |
| 1586 | GLfloat xmove, GLfloat ymove, |
| 1587 | const GLubyte *bitmap ); |
| 1588 | |
| 1589 | GLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y, |
| 1590 | GLsizei width, GLsizei height, |
| 1591 | GLenum format, GLenum type, |
| 1592 | GLvoid *pixels ); |
| 1593 | |
| 1594 | GLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height, |
| 1595 | GLenum format, GLenum type, |
| 1596 | const GLvoid *pixels ); |
| 1597 | |
| 1598 | GLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y, |
| 1599 | GLsizei width, GLsizei height, |
| 1600 | GLenum type ); |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | /* |
| 1605 | * Stenciling |
| 1606 | */ |
| 1607 | |
| 1608 | GLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask ); |
| 1609 | |
| 1610 | GLAPI void GLAPIENTRY glStencilMask( GLuint mask ); |
| 1611 | |
| 1612 | GLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass ); |
| 1613 | |
| 1614 | GLAPI void GLAPIENTRY glClearStencil( GLint s ); |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | /* |
| 1619 | * Texture mapping |
| 1620 | */ |
| 1621 | |
| 1622 | GLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param ); |
| 1623 | GLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param ); |
| 1624 | GLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param ); |
| 1625 | |
| 1626 | GLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params ); |
| 1627 | GLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params ); |
| 1628 | GLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params ); |
| 1629 | |
| 1630 | GLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params ); |
| 1631 | GLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params ); |
| 1632 | GLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params ); |
| 1633 | |
| 1634 | |
| 1635 | GLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param ); |
| 1636 | GLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param ); |
| 1637 | |
| 1638 | GLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params ); |
| 1639 | GLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params ); |
| 1640 | |
| 1641 | GLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params ); |
| 1642 | GLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params ); |
| 1643 | |
| 1644 | |
| 1645 | GLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param ); |
| 1646 | GLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param ); |
| 1647 | |
| 1648 | GLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname, |
| 1649 | const GLfloat *params ); |
| 1650 | GLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname, |
| 1651 | const GLint *params ); |
| 1652 | |
| 1653 | GLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target, |
| 1654 | GLenum pname, GLfloat *params); |
| 1655 | GLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target, |
| 1656 | GLenum pname, GLint *params ); |
| 1657 | |
| 1658 | GLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level, |
| 1659 | GLenum pname, GLfloat *params ); |
| 1660 | GLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level, |
| 1661 | GLenum pname, GLint *params ); |
| 1662 | |
| 1663 | |
| 1664 | GLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level, |
| 1665 | GLint internalFormat, |
| 1666 | GLsizei width, GLint border, |
| 1667 | GLenum format, GLenum type, |
| 1668 | const GLvoid *pixels ); |
| 1669 | |
| 1670 | GLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level, |
| 1671 | GLint internalFormat, |
| 1672 | GLsizei width, GLsizei height, |
| 1673 | GLint border, GLenum format, GLenum type, |
| 1674 | const GLvoid *pixels ); |
| 1675 | |
| 1676 | GLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level, |
| 1677 | GLenum format, GLenum type, |
| 1678 | GLvoid *pixels ); |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | /* 1.1 functions */ |
| 1683 | |
| 1684 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); |
| 1685 | |
| 1686 | GLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); |
| 1687 | |
| 1688 | GLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture ); |
| 1689 | |
| 1690 | GLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n, |
| 1691 | const GLuint *textures, |
| 1692 | const GLclampf *priorities ); |
| 1693 | |
| 1694 | GLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n, |
| 1695 | const GLuint *textures, |
| 1696 | GLboolean *residences ); |
| 1697 | |
| 1698 | GLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture ); |
| 1699 | |
| 1700 | |
| 1701 | GLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level, |
| 1702 | GLint xoffset, |
| 1703 | GLsizei width, GLenum format, |
| 1704 | GLenum type, const GLvoid *pixels ); |
| 1705 | |
| 1706 | |
| 1707 | GLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level, |
| 1708 | GLint xoffset, GLint yoffset, |
| 1709 | GLsizei width, GLsizei height, |
| 1710 | GLenum format, GLenum type, |
| 1711 | const GLvoid *pixels ); |
| 1712 | |
| 1713 | |
| 1714 | GLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level, |
| 1715 | GLenum internalformat, |
| 1716 | GLint x, GLint y, |
| 1717 | GLsizei width, GLint border ); |
| 1718 | |
| 1719 | |
| 1720 | GLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level, |
| 1721 | GLenum internalformat, |
| 1722 | GLint x, GLint y, |
| 1723 | GLsizei width, GLsizei height, |
| 1724 | GLint border ); |
| 1725 | |
| 1726 | |
| 1727 | GLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level, |
| 1728 | GLint xoffset, GLint x, GLint y, |
| 1729 | GLsizei width ); |
| 1730 | |
| 1731 | |
| 1732 | GLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level, |
| 1733 | GLint xoffset, GLint yoffset, |
| 1734 | GLint x, GLint y, |
| 1735 | GLsizei width, GLsizei height ); |
| 1736 | |
| 1737 | |
| 1738 | |
| 1739 | |
| 1740 | /* |
| 1741 | * Evaluators |
| 1742 | */ |
| 1743 | |
| 1744 | GLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2, |
| 1745 | GLint stride, |
| 1746 | GLint order, const GLdouble *points ); |
| 1747 | GLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2, |
| 1748 | GLint stride, |
| 1749 | GLint order, const GLfloat *points ); |
| 1750 | |
| 1751 | GLAPI void GLAPIENTRY glMap2d( GLenum target, |
| 1752 | GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, |
| 1753 | GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, |
| 1754 | const GLdouble *points ); |
| 1755 | GLAPI void GLAPIENTRY glMap2f( GLenum target, |
| 1756 | GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, |
| 1757 | GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, |
| 1758 | const GLfloat *points ); |
| 1759 | |
| 1760 | GLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v ); |
| 1761 | GLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v ); |
| 1762 | GLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v ); |
| 1763 | |
| 1764 | GLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u ); |
| 1765 | GLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u ); |
| 1766 | |
| 1767 | GLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u ); |
| 1768 | GLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u ); |
| 1769 | |
| 1770 | GLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v ); |
| 1771 | GLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v ); |
| 1772 | |
| 1773 | GLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u ); |
| 1774 | GLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u ); |
| 1775 | |
| 1776 | GLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 ); |
| 1777 | GLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 ); |
| 1778 | |
| 1779 | GLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2, |
| 1780 | GLint vn, GLdouble v1, GLdouble v2 ); |
| 1781 | GLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2, |
| 1782 | GLint vn, GLfloat v1, GLfloat v2 ); |
| 1783 | |
| 1784 | GLAPI void GLAPIENTRY glEvalPoint1( GLint i ); |
| 1785 | |
| 1786 | GLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j ); |
| 1787 | |
| 1788 | GLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 ); |
| 1789 | |
| 1790 | GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ); |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | /* |
| 1795 | * Fog |
| 1796 | */ |
| 1797 | |
| 1798 | GLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param ); |
| 1799 | |
| 1800 | GLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param ); |
| 1801 | |
| 1802 | GLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params ); |
| 1803 | |
| 1804 | GLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params ); |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | /* |
| 1809 | * Selection and Feedback |
| 1810 | */ |
| 1811 | |
| 1812 | GLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer ); |
| 1813 | |
| 1814 | GLAPI void GLAPIENTRY glPassThrough( GLfloat token ); |
| 1815 | |
| 1816 | GLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer ); |
| 1817 | |
| 1818 | GLAPI void GLAPIENTRY glInitNames( void ); |
| 1819 | |
| 1820 | GLAPI void GLAPIENTRY glLoadName( GLuint name ); |
| 1821 | |
| 1822 | GLAPI void GLAPIENTRY glPushName( GLuint name ); |
| 1823 | |
| 1824 | GLAPI void GLAPIENTRY glPopName( void ); |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | /* |
Brian Paul | ed34533 | 1999-09-11 11:26:34 +0000 | [diff] [blame] | 1829 | * Extensions |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 1830 | */ |
| 1831 | |
| 1832 | /* GL_EXT_blend_minmax */ |
| 1833 | GLAPI void GLAPIENTRY glBlendEquationEXT( GLenum mode ); |
| 1834 | |
| 1835 | |
| 1836 | |
| 1837 | /* GL_EXT_blend_color */ |
| 1838 | GLAPI void GLAPIENTRY glBlendColorEXT( GLclampf red, GLclampf green, |
| 1839 | GLclampf blue, GLclampf alpha ); |
| 1840 | |
| 1841 | |
| 1842 | |
| 1843 | /* GL_EXT_polygon_offset */ |
| 1844 | GLAPI void GLAPIENTRY glPolygonOffsetEXT( GLfloat factor, GLfloat bias ); |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | /* GL_EXT_vertex_array */ |
| 1849 | |
| 1850 | GLAPI void GLAPIENTRY glVertexPointerEXT( GLint size, GLenum type, |
| 1851 | GLsizei stride, |
| 1852 | GLsizei count, const GLvoid *ptr ); |
| 1853 | |
| 1854 | GLAPI void GLAPIENTRY glNormalPointerEXT( GLenum type, GLsizei stride, |
| 1855 | GLsizei count, const GLvoid *ptr ); |
| 1856 | |
| 1857 | GLAPI void GLAPIENTRY glColorPointerEXT( GLint size, GLenum type, |
| 1858 | GLsizei stride, |
| 1859 | GLsizei count, const GLvoid *ptr ); |
| 1860 | |
| 1861 | GLAPI void GLAPIENTRY glIndexPointerEXT( GLenum type, GLsizei stride, |
| 1862 | GLsizei count, const GLvoid *ptr ); |
| 1863 | |
| 1864 | GLAPI void GLAPIENTRY glTexCoordPointerEXT( GLint size, GLenum type, |
| 1865 | GLsizei stride, GLsizei count, |
| 1866 | const GLvoid *ptr ); |
| 1867 | |
| 1868 | GLAPI void GLAPIENTRY glEdgeFlagPointerEXT( GLsizei stride, GLsizei count, |
| 1869 | const GLboolean *ptr ); |
| 1870 | |
| 1871 | GLAPI void GLAPIENTRY glGetPointervEXT( GLenum pname, void **params ); |
| 1872 | |
| 1873 | GLAPI void GLAPIENTRY glArrayElementEXT( GLint i ); |
| 1874 | |
| 1875 | GLAPI void GLAPIENTRY glDrawArraysEXT( GLenum mode, GLint first, |
| 1876 | GLsizei count ); |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | /* GL_EXT_texture_object */ |
| 1881 | |
| 1882 | GLAPI void GLAPIENTRY glGenTexturesEXT( GLsizei n, GLuint *textures ); |
| 1883 | |
| 1884 | GLAPI void GLAPIENTRY glDeleteTexturesEXT( GLsizei n, const GLuint *textures); |
| 1885 | |
| 1886 | GLAPI void GLAPIENTRY glBindTextureEXT( GLenum target, GLuint texture ); |
| 1887 | |
| 1888 | GLAPI void GLAPIENTRY glPrioritizeTexturesEXT( GLsizei n, |
| 1889 | const GLuint *textures, |
| 1890 | const GLclampf *priorities ); |
| 1891 | |
| 1892 | GLAPI GLboolean GLAPIENTRY glAreTexturesResidentEXT( GLsizei n, |
| 1893 | const GLuint *textures, |
| 1894 | GLboolean *residences ); |
| 1895 | |
| 1896 | GLAPI GLboolean GLAPIENTRY glIsTextureEXT( GLuint texture ); |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | /* GL_EXT_texture3D */ |
| 1901 | |
| 1902 | GLAPI void GLAPIENTRY glTexImage3DEXT( GLenum target, GLint level, |
| 1903 | GLenum internalFormat, |
| 1904 | GLsizei width, GLsizei height, |
| 1905 | GLsizei depth, GLint border, |
| 1906 | GLenum format, GLenum type, |
| 1907 | const GLvoid *pixels ); |
| 1908 | |
| 1909 | GLAPI void GLAPIENTRY glTexSubImage3DEXT( GLenum target, GLint level, |
| 1910 | GLint xoffset, GLint yoffset, |
| 1911 | GLint zoffset, GLsizei width, |
| 1912 | GLsizei height, GLsizei depth, |
| 1913 | GLenum format, |
| 1914 | GLenum type, const GLvoid *pixels); |
| 1915 | |
| 1916 | GLAPI void GLAPIENTRY glCopyTexSubImage3DEXT( GLenum target, GLint level, |
| 1917 | GLint xoffset, GLint yoffset, |
| 1918 | GLint zoffset, GLint x, |
| 1919 | GLint y, GLsizei width, |
| 1920 | GLsizei height ); |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | /* GL_EXT_color_table */ |
| 1925 | |
| 1926 | GLAPI void GLAPIENTRY glColorTableEXT( GLenum target, GLenum internalformat, |
| 1927 | GLsizei width, GLenum format, |
| 1928 | GLenum type, const GLvoid *table ); |
| 1929 | |
| 1930 | GLAPI void GLAPIENTRY glColorSubTableEXT( GLenum target, |
| 1931 | GLsizei start, GLsizei count, |
| 1932 | GLenum format, GLenum type, |
| 1933 | const GLvoid *data ); |
| 1934 | |
| 1935 | GLAPI void GLAPIENTRY glGetColorTableEXT( GLenum target, GLenum format, |
| 1936 | GLenum type, GLvoid *table ); |
| 1937 | |
| 1938 | GLAPI void GLAPIENTRY glGetColorTableParameterfvEXT( GLenum target, |
| 1939 | GLenum pname, |
| 1940 | GLfloat *params ); |
| 1941 | |
| 1942 | GLAPI void GLAPIENTRY glGetColorTableParameterivEXT( GLenum target, |
| 1943 | GLenum pname, |
| 1944 | GLint *params ); |
| 1945 | |
| 1946 | |
| 1947 | /* GL_ARB_multitexture */ |
| 1948 | |
| 1949 | GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture); |
| 1950 | GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture); |
| 1951 | GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s); |
| 1952 | GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v); |
| 1953 | GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s); |
| 1954 | GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v); |
| 1955 | GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s); |
| 1956 | GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v); |
| 1957 | GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s); |
| 1958 | GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v); |
| 1959 | GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t); |
| 1960 | GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v); |
| 1961 | GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t); |
| 1962 | GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v); |
| 1963 | GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t); |
| 1964 | GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v); |
| 1965 | GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t); |
| 1966 | GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v); |
| 1967 | GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r); |
| 1968 | GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v); |
| 1969 | GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r); |
| 1970 | GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v); |
| 1971 | GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r); |
| 1972 | GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v); |
| 1973 | GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r); |
| 1974 | GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v); |
| 1975 | GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); |
| 1976 | GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v); |
| 1977 | GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); |
| 1978 | GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v); |
| 1979 | GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q); |
| 1980 | GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v); |
| 1981 | GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); |
| 1982 | GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v); |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | /* GL_EXT_point_parameters */ |
| 1987 | GLAPI void GLAPIENTRY glPointParameterfEXT( GLenum pname, GLfloat param ); |
| 1988 | GLAPI void GLAPIENTRY glPointParameterfvEXT( GLenum pname, |
| 1989 | const GLfloat *params ); |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | /* GL_INGR_blend_func_separate */ |
| 1994 | GLAPI void GLAPIENTRY glBlendFuncSeparateINGR( GLenum sfactorRGB, |
| 1995 | GLenum dfactorRGB, |
| 1996 | GLenum sfactorAlpha, |
| 1997 | GLenum dfactorAlpha ); |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | /* GL_MESA_window_pos */ |
| 2002 | |
| 2003 | GLAPI void GLAPIENTRY glWindowPos2iMESA( GLint x, GLint y ); |
| 2004 | GLAPI void GLAPIENTRY glWindowPos2sMESA( GLshort x, GLshort y ); |
| 2005 | GLAPI void GLAPIENTRY glWindowPos2fMESA( GLfloat x, GLfloat y ); |
| 2006 | GLAPI void GLAPIENTRY glWindowPos2dMESA( GLdouble x, GLdouble y ); |
| 2007 | |
| 2008 | GLAPI void GLAPIENTRY glWindowPos2ivMESA( const GLint *p ); |
| 2009 | GLAPI void GLAPIENTRY glWindowPos2svMESA( const GLshort *p ); |
| 2010 | GLAPI void GLAPIENTRY glWindowPos2fvMESA( const GLfloat *p ); |
| 2011 | GLAPI void GLAPIENTRY glWindowPos2dvMESA( const GLdouble *p ); |
| 2012 | |
| 2013 | GLAPI void GLAPIENTRY glWindowPos3iMESA( GLint x, GLint y, GLint z ); |
| 2014 | GLAPI void GLAPIENTRY glWindowPos3sMESA( GLshort x, GLshort y, GLshort z ); |
| 2015 | GLAPI void GLAPIENTRY glWindowPos3fMESA( GLfloat x, GLfloat y, GLfloat z ); |
| 2016 | GLAPI void GLAPIENTRY glWindowPos3dMESA( GLdouble x, GLdouble y, GLdouble z ); |
| 2017 | |
| 2018 | GLAPI void GLAPIENTRY glWindowPos3ivMESA( const GLint *p ); |
| 2019 | GLAPI void GLAPIENTRY glWindowPos3svMESA( const GLshort *p ); |
| 2020 | GLAPI void GLAPIENTRY glWindowPos3fvMESA( const GLfloat *p ); |
| 2021 | GLAPI void GLAPIENTRY glWindowPos3dvMESA( const GLdouble *p ); |
| 2022 | |
| 2023 | GLAPI void GLAPIENTRY glWindowPos4iMESA( GLint x, GLint y, GLint z, GLint w ); |
| 2024 | GLAPI void GLAPIENTRY glWindowPos4sMESA( GLshort x, GLshort y, GLshort z, GLshort w ); |
| 2025 | GLAPI void GLAPIENTRY glWindowPos4fMESA( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); |
| 2026 | GLAPI void GLAPIENTRY glWindowPos4dMESA( GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
| 2027 | |
| 2028 | GLAPI void GLAPIENTRY glWindowPos4ivMESA( const GLint *p ); |
| 2029 | GLAPI void GLAPIENTRY glWindowPos4svMESA( const GLshort *p ); |
| 2030 | GLAPI void GLAPIENTRY glWindowPos4fvMESA( const GLfloat *p ); |
| 2031 | GLAPI void GLAPIENTRY glWindowPos4dvMESA( const GLdouble *p ); |
| 2032 | |
| 2033 | |
| 2034 | /* GL_MESA_resize_buffers */ |
| 2035 | |
| 2036 | GLAPI void GLAPIENTRY glResizeBuffersMESA( void ); |
| 2037 | |
| 2038 | |
| 2039 | /* 1.2 functions */ |
| 2040 | GLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start, |
| 2041 | GLuint end, GLsizei count, GLenum type, const GLvoid *indices ); |
| 2042 | |
| 2043 | GLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level, |
| 2044 | GLint internalFormat, |
| 2045 | GLsizei width, GLsizei height, |
| 2046 | GLsizei depth, GLint border, |
| 2047 | GLenum format, GLenum type, |
| 2048 | const GLvoid *pixels ); |
| 2049 | |
| 2050 | GLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level, |
| 2051 | GLint xoffset, GLint yoffset, |
| 2052 | GLint zoffset, GLsizei width, |
| 2053 | GLsizei height, GLsizei depth, |
| 2054 | GLenum format, |
| 2055 | GLenum type, const GLvoid *pixels); |
| 2056 | |
| 2057 | GLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level, |
| 2058 | GLint xoffset, GLint yoffset, |
| 2059 | GLint zoffset, GLint x, |
| 2060 | GLint y, GLsizei width, |
| 2061 | GLsizei height ); |
| 2062 | |
| 2063 | |
| 2064 | /* 1.2 imaging extension functions */ |
| 2065 | |
Brian Paul | 053f202 | 1999-10-17 20:18:15 +0000 | [diff] [blame] | 2066 | GLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat, |
| 2067 | GLsizei width, GLenum format, |
| 2068 | GLenum type, const GLvoid *table ); |
| 2069 | |
| 2070 | GLAPI void GLAPIENTRY glColorSubTable( GLenum target, |
| 2071 | GLsizei start, GLsizei count, |
| 2072 | GLenum format, GLenum type, |
| 2073 | const GLvoid *data ); |
| 2074 | |
Brian Paul | c782c91 | 1999-10-17 21:42:32 +0000 | [diff] [blame] | 2075 | GLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname, |
| 2076 | const GLint *params); |
| 2077 | |
| 2078 | GLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname, |
| 2079 | const GLfloat *params); |
| 2080 | |
| 2081 | GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start, |
| 2082 | GLint x, GLint y, GLsizei width ); |
| 2083 | |
| 2084 | GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat, |
| 2085 | GLint x, GLint y, GLsizei width ); |
| 2086 | |
Brian Paul | 053f202 | 1999-10-17 20:18:15 +0000 | [diff] [blame] | 2087 | GLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format, |
| 2088 | GLenum type, GLvoid *table ); |
| 2089 | |
Brian Paul | c782c91 | 1999-10-17 21:42:32 +0000 | [diff] [blame] | 2090 | GLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname, |
Brian Paul | 053f202 | 1999-10-17 20:18:15 +0000 | [diff] [blame] | 2091 | GLfloat *params ); |
| 2092 | |
Brian Paul | c782c91 | 1999-10-17 21:42:32 +0000 | [diff] [blame] | 2093 | GLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname, |
Brian Paul | 053f202 | 1999-10-17 20:18:15 +0000 | [diff] [blame] | 2094 | GLint *params ); |
| 2095 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2096 | GLAPI void GLAPIENTRY glBlendEquation( GLenum mode ); |
| 2097 | |
| 2098 | GLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green, |
| 2099 | GLclampf blue, GLclampf alpha ); |
| 2100 | |
| 2101 | GLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width, |
| 2102 | GLenum internalformat, GLboolean sink ); |
| 2103 | |
| 2104 | GLAPI void GLAPIENTRY glResetHistogram( GLenum target ); |
| 2105 | |
| 2106 | GLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset, |
| 2107 | GLenum format, GLenum type, |
| 2108 | GLvoid *values ); |
| 2109 | |
| 2110 | GLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname, |
| 2111 | GLfloat *params ); |
| 2112 | |
| 2113 | GLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname, |
| 2114 | GLint *params ); |
| 2115 | |
| 2116 | GLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat, |
| 2117 | GLboolean sink ); |
| 2118 | |
| 2119 | GLAPI void GLAPIENTRY glResetMinmax( GLenum target ); |
| 2120 | |
Brian Paul | 251ba69 | 1999-10-15 21:59:23 +0000 | [diff] [blame] | 2121 | GLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset, |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2122 | GLenum format, GLenum types, |
| 2123 | GLvoid *values ); |
| 2124 | |
| 2125 | GLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname, |
| 2126 | GLfloat *params ); |
| 2127 | |
| 2128 | GLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname, |
| 2129 | GLint *params ); |
| 2130 | |
| 2131 | GLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target, |
| 2132 | GLenum internalformat, GLsizei width, GLenum format, GLenum type, |
| 2133 | const GLvoid *image ); |
| 2134 | |
| 2135 | GLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target, |
| 2136 | GLenum internalformat, GLsizei width, GLsizei height, GLenum format, |
| 2137 | GLenum type, const GLvoid *image ); |
| 2138 | |
| 2139 | GLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname, |
| 2140 | GLfloat params ); |
| 2141 | |
| 2142 | GLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname, |
| 2143 | const GLfloat *params ); |
| 2144 | |
| 2145 | GLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname, |
| 2146 | GLint params ); |
| 2147 | |
| 2148 | GLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname, |
| 2149 | const GLint *params ); |
| 2150 | |
| 2151 | GLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target, |
| 2152 | GLenum internalformat, GLint x, GLint y, GLsizei width ); |
| 2153 | |
| 2154 | GLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target, |
| 2155 | GLenum internalformat, GLint x, GLint y, GLsizei width, |
| 2156 | GLsizei height); |
| 2157 | |
| 2158 | GLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format, |
| 2159 | GLenum type, GLvoid *image ); |
| 2160 | |
| 2161 | GLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname, |
| 2162 | GLfloat *params ); |
| 2163 | |
| 2164 | GLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname, |
| 2165 | GLint *params ); |
| 2166 | |
| 2167 | GLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target, |
| 2168 | GLenum internalformat, GLsizei width, GLsizei height, GLenum format, |
| 2169 | GLenum type, const GLvoid *row, const GLvoid *column ); |
| 2170 | |
| 2171 | GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format, |
| 2172 | GLenum type, GLvoid *row, GLvoid *column, GLvoid *span ); |
| 2173 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2174 | |
| 2175 | |
| 2176 | /* GL_EXT_compiled_vertex_array */ |
| 2177 | GLAPI void GLAPIENTRY glLockArraysEXT( GLint first, GLsizei count ); |
| 2178 | GLAPI void GLAPIENTRY glUnlockArraysEXT( void ); |
| 2179 | |
| 2180 | |
Brian Paul | ed34533 | 1999-09-11 11:26:34 +0000 | [diff] [blame] | 2181 | |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 2182 | /* |
| 2183 | * XXX these extensions may eventually be moved into a new glext.h file |
| 2184 | */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2185 | |
| 2186 | |
| 2187 | /* |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 2188 | * GL_EXT_point_parameters |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2189 | */ |
Brian Paul | fbd8f21 | 1999-11-11 01:22:25 +0000 | [diff] [blame^] | 2190 | #ifndef GL_EXT_point_parameters |
| 2191 | #define GL_EXT_point_parameters 1 |
| 2192 | |
| 2193 | #define GL_POINT_SIZE_MIN_EXT 0x8126 |
| 2194 | #define GL_POINT_SIZE_MAX_EXT 0x8127 |
| 2195 | #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 |
| 2196 | #define GL_DISTANCE_ATTENUATION_EXT 0x8129 |
| 2197 | |
| 2198 | GLAPI void GLAPIENTRY glPointParameterfEXT( GLenum pname, GLfloat param ); |
| 2199 | GLAPI void GLAPIENTRY glPointParameterfvEXT( GLenum pname, const GLfloat *params ); |
| 2200 | |
| 2201 | #endif /* GL_EXT_point_parameters */ |
| 2202 | |
| 2203 | |
| 2204 | |
| 2205 | /* |
| 2206 | * GL_EXT_blend_minmax |
| 2207 | */ |
| 2208 | #ifndef GL_EXT_blend_minmax |
| 2209 | #define GL_EXT_blend_minmax 1 |
| 2210 | |
| 2211 | #define GL_FUNC_ADD_EXT 0x8006 |
| 2212 | #define GL_MIN_EXT 0x8007 |
| 2213 | #define GL_MAX_EXT 0x8008 |
| 2214 | #define GL_BLEND_EQUATION_EXT 0x8009 |
| 2215 | |
| 2216 | GLAPI void GLAPIENTRY glBlendEquationEXT( GLenum mode ); |
| 2217 | |
| 2218 | #endif /* GL_EXT_blend_minmax */ |
| 2219 | |
| 2220 | |
| 2221 | |
| 2222 | /* |
| 2223 | * GL_EXT_blend_subtract (requires GL_EXT_blend_max ) |
| 2224 | */ |
| 2225 | #ifndef GL_EXT_blend_subtract |
| 2226 | #define GL_EXT_blend_subtract 1 |
| 2227 | |
| 2228 | #define GL_FUNC_SUBTRACT_EXT 0x800A |
| 2229 | #define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B |
| 2230 | |
| 2231 | #endif /* GL_EXT_blend_subtract */ |
| 2232 | |
| 2233 | |
| 2234 | |
| 2235 | /* |
| 2236 | * GL_EXT_blend_logic_op |
| 2237 | */ |
| 2238 | #ifndef GL_EXT_blend_logic_op |
| 2239 | #define GL_EXT_blend_logic_op 1 |
| 2240 | |
| 2241 | /* No new tokens or functions */ |
| 2242 | |
| 2243 | #endif /* GL_EXT_blend_logic_op */ |
| 2244 | |
| 2245 | |
| 2246 | |
| 2247 | /* |
| 2248 | * GL_EXT_blend_color |
| 2249 | */ |
| 2250 | #ifndef GL_EXT_blend_color |
| 2251 | #define GL_EXT_blend_color 1 |
| 2252 | |
| 2253 | #define GL_CONSTANT_COLOR_EXT 0x8001 |
| 2254 | #define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 |
| 2255 | #define GL_CONSTANT_ALPHA_EXT 0x8003 |
| 2256 | #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 |
| 2257 | #define GL_BLEND_COLOR_EXT 0x8005 |
| 2258 | |
| 2259 | GLAPI void GLAPIENTRY glBlendColorEXT( GLclampf red, GLclampf green, |
| 2260 | GLclampf blue, GLclampf alpha ); |
| 2261 | |
| 2262 | #endif /* GL_EXT_blend_color */ |
| 2263 | |
| 2264 | |
| 2265 | |
| 2266 | /* |
| 2267 | * GL_EXT_stencil_wrap |
| 2268 | */ |
| 2269 | #ifndef GL_EXT_stencil_wrap |
| 2270 | #define GL_EXT_stencil_wrap 1 |
| 2271 | |
| 2272 | #define GL_INCR_WRAP_EXT 0x8507 |
| 2273 | #define GL_DECR_WRAP_EXT 0x8508 |
| 2274 | |
| 2275 | #endif /* GL_EXT_stencil_wrap */ |
| 2276 | |
| 2277 | |
| 2278 | |
| 2279 | /* |
| 2280 | * GL_EXT_clip_volume_hint |
| 2281 | */ |
| 2282 | #ifndef GL_EXT_clip_volume_hint |
| 2283 | #define GL_EXT_clip_volume_hint 1 |
| 2284 | |
| 2285 | #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F |
| 2286 | |
| 2287 | #endif /* GL_EXT_clip_volume_hint */ |
| 2288 | |
| 2289 | |
| 2290 | |
| 2291 | /* |
| 2292 | * GL_EXT_abgr |
| 2293 | */ |
| 2294 | #ifndef GL_EXT_abgr |
| 2295 | #define GL_EXT_abgr 1 |
| 2296 | |
| 2297 | #define GL_ABGR_EXT 0x8000 |
| 2298 | |
| 2299 | #endif /* GL_EXT_abgr */ |
| 2300 | |
| 2301 | |
| 2302 | |
| 2303 | /* |
| 2304 | * GL_EXT_rescale_normal |
| 2305 | */ |
| 2306 | #ifndef GL_EXT_rescale_normal |
| 2307 | #define GL_EXT_rescale_normal 1 |
| 2308 | |
| 2309 | #define GL_RESCALE_NORMAL_EXT 0x803A |
| 2310 | |
| 2311 | #endif /* GL_EXT_rescale_normal */ |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | /* |
| 2316 | * GL_EXT_paletted_texture |
| 2317 | */ |
| 2318 | #ifndef GL_EXT_paletted_texture |
| 2319 | #define GL_EXT_paletted_texture 1 |
| 2320 | |
| 2321 | #define GL_TABLE_TOO_LARGE_EXT 0x8031 |
| 2322 | #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 |
| 2323 | #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 |
| 2324 | #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA |
| 2325 | #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB |
| 2326 | #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC |
| 2327 | #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD |
| 2328 | #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE |
| 2329 | #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF |
| 2330 | #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED |
| 2331 | #define GL_COLOR_INDEX1_EXT 0x80E2 |
| 2332 | #define GL_COLOR_INDEX2_EXT 0x80E3 |
| 2333 | #define GL_COLOR_INDEX4_EXT 0x80E4 |
| 2334 | #define GL_COLOR_INDEX8_EXT 0x80E5 |
| 2335 | #define GL_COLOR_INDEX12_EXT 0x80E6 |
| 2336 | #define GL_COLOR_INDEX16_EXT 0x80E7 |
| 2337 | |
| 2338 | GLAPI void GLAPIENTRY glColorTableEXT( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table ); |
| 2339 | |
| 2340 | GLAPI void GLAPIENTRY glColorSubTableEXT( GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data ); |
| 2341 | |
| 2342 | GLAPI void GLAPIENTRY glGetColorTableEXT( GLenum target, GLenum format, GLenum type, GLvoid *table ); |
| 2343 | |
| 2344 | GLAPI void GLAPIENTRY glGetColorTableParameterfvEXT( GLenum target, GLenum pname, GLfloat *params ); |
| 2345 | |
| 2346 | GLAPI void GLAPIENTRY glGetColorTableParameterivEXT( GLenum target, GLenum pname, GLint *params ); |
| 2347 | |
| 2348 | #endif /* GL_EXT_paletted_texture */ |
| 2349 | |
| 2350 | |
| 2351 | |
| 2352 | /* |
| 2353 | * GL_EXT_shared_texture_palette (requires GL_EXT_paletted_texture) |
| 2354 | */ |
| 2355 | #ifndef GL_EXT_shared_texture_palette |
| 2356 | #define GL_EXT_shared_texture_palette 1 |
| 2357 | |
| 2358 | #define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB |
| 2359 | |
| 2360 | #endif /* GL_EXT_shared_texture_palette */ |
| 2361 | |
| 2362 | |
| 2363 | |
| 2364 | /* |
| 2365 | * GL_EXT_texture3D |
| 2366 | */ |
| 2367 | #ifndef GL_EXT_texture3D |
| 2368 | #define GL_EXT_texture3D 1 |
| 2369 | |
| 2370 | #define GL_PACK_SKIP_IMAGES_EXT 0x806B |
| 2371 | #define GL_PACK_IMAGE_HEIGHT_EXT 0x806C |
| 2372 | #define GL_UNPACK_SKIP_IMAGES_EXT 0x806D |
| 2373 | #define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E |
| 2374 | #define GL_TEXTURE_3D_EXT 0x806F |
| 2375 | #define GL_PROXY_TEXTURE_3D_EXT 0x8070 |
| 2376 | #define GL_TEXTURE_DEPTH_EXT 0x8071 |
| 2377 | #define GL_TEXTURE_WRAP_R_EXT 0x8072 |
| 2378 | #define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 |
| 2379 | #define GL_TEXTURE_3D_BINDING_EXT 0x806A |
| 2380 | |
| 2381 | GLAPI void GLAPIENTRY glTexImage3DEXT( GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels ); |
| 2382 | |
| 2383 | GLAPI void GLAPIENTRY glTexSubImage3DEXT( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); |
| 2384 | |
| 2385 | GLAPI void GLAPIENTRY glCopyTexSubImage3DEXT( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height ); |
| 2386 | |
| 2387 | #endif /* GL_EXT_texture3D */ |
| 2388 | |
| 2389 | |
| 2390 | |
| 2391 | |
| 2392 | /* |
| 2393 | * GL_EXT_texture_object |
| 2394 | */ |
| 2395 | #ifndef GL_EXT_texture_object |
| 2396 | #define GL_EXT_texture_object 1 |
| 2397 | |
| 2398 | #define GL_TEXTURE_PRIORITY_EXT 0x8066 |
| 2399 | #define GL_TEXTURE_RESIDENT_EXT 0x8067 |
| 2400 | #define GL_TEXTURE_1D_BINDING_EXT 0x8068 |
| 2401 | #define GL_TEXTURE_2D_BINDING_EXT 0x8069 |
| 2402 | |
| 2403 | GLAPI void GLAPIENTRY glGenTexturesEXT( GLsizei n, GLuint *textures ); |
| 2404 | |
| 2405 | GLAPI void GLAPIENTRY glDeleteTexturesEXT( GLsizei n, const GLuint *textures); |
| 2406 | |
| 2407 | GLAPI void GLAPIENTRY glBindTextureEXT( GLenum target, GLuint texture ); |
| 2408 | |
| 2409 | GLAPI void GLAPIENTRY glPrioritizeTexturesEXT( GLsizei n, const GLuint *textures, const GLclampf *priorities ); |
| 2410 | |
| 2411 | GLAPI GLboolean GLAPIENTRY glAreTexturesResidentEXT( GLsizei n, const GLuint *textures, GLboolean *residences ); |
| 2412 | |
| 2413 | GLAPI GLboolean GLAPIENTRY glIsTextureEXT( GLuint texture ); |
| 2414 | |
| 2415 | #endif /* GL_EXT_texture_object */ |
| 2416 | |
| 2417 | |
| 2418 | |
| 2419 | /* |
| 2420 | * GL_EXT_polygon_offset |
| 2421 | */ |
| 2422 | #ifndef GL_EXT_polygon_offset |
| 2423 | #define GL_EXT_polygon_offset 1 |
| 2424 | |
| 2425 | #define GL_POLYGON_OFFSET_EXT 0x8037 |
| 2426 | #define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 |
| 2427 | #define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 |
| 2428 | |
| 2429 | GLAPI void GLAPIENTRY glPolygonOffsetEXT( GLfloat factor, GLfloat bias ); |
| 2430 | |
| 2431 | #endif /* GL_EXT_polygon_offset */ |
| 2432 | |
| 2433 | |
| 2434 | |
| 2435 | /* |
| 2436 | * GL_EXT_vertex_array |
| 2437 | */ |
| 2438 | #ifndef GL_EXT_vertex_array |
| 2439 | #define GL_EXT_vertex_array 1 |
| 2440 | |
| 2441 | #define GL_VERTEX_ARRAY_EXT 0x8074 |
| 2442 | #define GL_NORMAL_ARRAY_EXT 0x8075 |
| 2443 | #define GL_COLOR_ARRAY_EXT 0x8076 |
| 2444 | #define GL_INDEX_ARRAY_EXT 0x8077 |
| 2445 | #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 |
| 2446 | #define GL_EDGE_FLAG_ARRAY_EXT 0x8079 |
| 2447 | #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A |
| 2448 | #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B |
| 2449 | #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C |
| 2450 | #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D |
| 2451 | #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E |
| 2452 | #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F |
| 2453 | #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 |
| 2454 | #define GL_COLOR_ARRAY_SIZE_EXT 0x8081 |
| 2455 | #define GL_COLOR_ARRAY_TYPE_EXT 0x8082 |
| 2456 | #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 |
| 2457 | #define GL_COLOR_ARRAY_COUNT_EXT 0x8084 |
| 2458 | #define GL_INDEX_ARRAY_TYPE_EXT 0x8085 |
| 2459 | #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 |
| 2460 | #define GL_INDEX_ARRAY_COUNT_EXT 0x8087 |
| 2461 | #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 |
| 2462 | #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 |
| 2463 | #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A |
| 2464 | #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B |
| 2465 | #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C |
| 2466 | #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D |
| 2467 | #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E |
| 2468 | #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F |
| 2469 | #define GL_COLOR_ARRAY_POINTER_EXT 0x8090 |
| 2470 | #define GL_INDEX_ARRAY_POINTER_EXT 0x8091 |
| 2471 | #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 |
| 2472 | #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 |
| 2473 | |
| 2474 | GLAPI void GLAPIENTRY glVertexPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr ); |
| 2475 | |
| 2476 | GLAPI void GLAPIENTRY glNormalPointerEXT( GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr ); |
| 2477 | |
| 2478 | GLAPI void GLAPIENTRY glColorPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr ); |
| 2479 | |
| 2480 | GLAPI void GLAPIENTRY glIndexPointerEXT( GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr ); |
| 2481 | |
| 2482 | GLAPI void GLAPIENTRY glTexCoordPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr ); |
| 2483 | |
| 2484 | GLAPI void GLAPIENTRY glEdgeFlagPointerEXT( GLsizei stride, GLsizei count, const GLboolean *ptr ); |
| 2485 | |
| 2486 | GLAPI void GLAPIENTRY glGetPointervEXT( GLenum pname, void **params ); |
| 2487 | |
| 2488 | GLAPI void GLAPIENTRY glArrayElementEXT( GLint i ); |
| 2489 | |
| 2490 | GLAPI void GLAPIENTRY glDrawArraysEXT( GLenum mode, GLint first, GLsizei count ); |
| 2491 | |
| 2492 | #endif /* GL_EXT_vertex_array */ |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | /* |
| 2497 | * GL_EXT_compiled_vertex_array |
| 2498 | */ |
| 2499 | #ifndef GL_EXT_compiled_vertex_array |
| 2500 | #define GL_EXT_compiled_vertex_array 1 |
| 2501 | |
| 2502 | #define GL_ARRAY_ELEMENT_LOCK_FIRST_SGI 0x81A8 |
| 2503 | #define GL_ARRAY_ELEMENT_LOCK_COUNT_SGI 0x81A9 |
| 2504 | |
| 2505 | GLAPI void GLAPIENTRY glLockArraysEXT( GLint first, GLsizei count ); |
| 2506 | GLAPI void GLAPIENTRY glUnlockArraysEXT( void ); |
| 2507 | |
| 2508 | #endif /* GL_EXT_compiled_vertex_array */ |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | /* |
| 2513 | * GL_NV_texgen_reflection |
| 2514 | */ |
| 2515 | #ifndef GL_NV_texgen_reflection |
| 2516 | #define GL_NV_texgen_reflection 1 |
| 2517 | |
| 2518 | #define GL_NORMAL_MAP_NV 0x8511 |
| 2519 | #define GL_REFLECTION_MAP_NV 0x8512 |
| 2520 | |
| 2521 | #endif /* GL_NV_texgen_reflection */ |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | /* |
| 2526 | * GL_INGR_blend_func_separate |
| 2527 | */ |
| 2528 | #ifndef GL_INGR_blend_func_separate |
| 2529 | #define GL_INGR_blend_func_separate 1 |
| 2530 | |
| 2531 | #define GL_BLEND_DST_RGB_INGR 0x80C8 |
| 2532 | #define GL_BLEND_SRC_RGB_INGR 0x80C9 |
| 2533 | #define GL_BLEND_DST_ALPHA_INGR 0x80CA |
| 2534 | #define GL_BLEND_SRC_ALPHA_INGR 0x80CB |
| 2535 | |
| 2536 | GLAPI void GLAPIENTRY glBlendFuncSeparateINGR( GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha ); |
| 2537 | |
| 2538 | #endif /* GL_INGR_blend_func_separate */ |
| 2539 | |
| 2540 | |
| 2541 | |
| 2542 | /* |
| 2543 | * GL_ARB_multitexture |
| 2544 | */ |
| 2545 | #ifndef GL_ARB_multitexture |
| 2546 | #define GL_ARB_multitexture 1 |
| 2547 | |
| 2548 | #define GL_TEXTURE0_ARB 0x84C0 |
| 2549 | #define GL_TEXTURE1_ARB 0x84C1 |
| 2550 | #define GL_TEXTURE2_ARB 0x84C2 |
| 2551 | #define GL_TEXTURE3_ARB 0x84C3 |
| 2552 | #define GL_TEXTURE4_ARB 0x84C4 |
| 2553 | #define GL_TEXTURE5_ARB 0x84C5 |
| 2554 | #define GL_TEXTURE6_ARB 0x84C6 |
| 2555 | #define GL_TEXTURE7_ARB 0x84C7 |
| 2556 | #define GL_TEXTURE8_ARB 0x84C8 |
| 2557 | #define GL_TEXTURE9_ARB 0x84C9 |
| 2558 | #define GL_TEXTURE10_ARB 0x84CA |
| 2559 | #define GL_TEXTURE11_ARB 0x84CB |
| 2560 | #define GL_TEXTURE12_ARB 0x84CC |
| 2561 | #define GL_TEXTURE13_ARB 0x84CD |
| 2562 | #define GL_TEXTURE14_ARB 0x84CE |
| 2563 | #define GL_TEXTURE15_ARB 0x84CF |
| 2564 | #define GL_TEXTURE16_ARB 0x84D0 |
| 2565 | #define GL_TEXTURE17_ARB 0x84D1 |
| 2566 | #define GL_TEXTURE18_ARB 0x84D2 |
| 2567 | #define GL_TEXTURE19_ARB 0x84D3 |
| 2568 | #define GL_TEXTURE20_ARB 0x84D4 |
| 2569 | #define GL_TEXTURE21_ARB 0x84D5 |
| 2570 | #define GL_TEXTURE22_ARB 0x84D6 |
| 2571 | #define GL_TEXTURE23_ARB 0x84D7 |
| 2572 | #define GL_TEXTURE24_ARB 0x84D8 |
| 2573 | #define GL_TEXTURE25_ARB 0x84D9 |
| 2574 | #define GL_TEXTURE26_ARB 0x84DA |
| 2575 | #define GL_TEXTURE27_ARB 0x84DB |
| 2576 | #define GL_TEXTURE28_ARB 0x84DC |
| 2577 | #define GL_TEXTURE29_ARB 0x84DD |
| 2578 | #define GL_TEXTURE30_ARB 0x84DE |
| 2579 | #define GL_TEXTURE31_ARB 0x84DF |
| 2580 | #define GL_ACTIVE_TEXTURE_ARB 0x84E0 |
| 2581 | #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 |
| 2582 | #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 |
| 2583 | |
| 2584 | GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture); |
| 2585 | GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture); |
| 2586 | GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s); |
| 2587 | GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v); |
| 2588 | GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s); |
| 2589 | GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v); |
| 2590 | GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s); |
| 2591 | GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v); |
| 2592 | GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s); |
| 2593 | GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v); |
| 2594 | GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t); |
| 2595 | GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v); |
| 2596 | GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t); |
| 2597 | GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v); |
| 2598 | GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t); |
| 2599 | GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v); |
| 2600 | GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t); |
| 2601 | GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v); |
| 2602 | GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r); |
| 2603 | GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v); |
| 2604 | GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r); |
| 2605 | GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v); |
| 2606 | GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r); |
| 2607 | GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v); |
| 2608 | GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r); |
| 2609 | GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v); |
| 2610 | GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); |
| 2611 | GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v); |
| 2612 | GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); |
| 2613 | GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v); |
| 2614 | GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q); |
| 2615 | GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v); |
| 2616 | GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); |
| 2617 | GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v); |
| 2618 | |
| 2619 | #endif /* GL_ARB_multitexture */ |
| 2620 | |
| 2621 | |
| 2622 | |
| 2623 | /* |
| 2624 | * GL_SGIS_texture_edge_clamp |
| 2625 | */ |
| 2626 | #ifndef GL_SGIS_texture_edge_clamp |
| 2627 | #define GL_SGIS_texture_edge_clamp 1 |
| 2628 | |
| 2629 | #define GL_CLAMP_TO_EDGE_SGIS 0x812F |
| 2630 | |
| 2631 | #endif /* GL_SGIS_texture_edge_clamp */ |
| 2632 | |
| 2633 | |
| 2634 | |
| 2635 | /* |
| 2636 | * GL_PGI_misc_hints |
| 2637 | */ |
| 2638 | #ifndef GL_PGI_misc_hints |
| 2639 | #define GL_PGI_misc_hints 1 |
| 2640 | |
| 2641 | #define GL_PREFER_DOUBLEBUFFER_HINT_PGI 107000 |
| 2642 | #define GL_STRICT_DEPTHFUNC_HINT_PGI 107030 |
| 2643 | #define GL_STRICT_LIGHTING_HINT_PGI 107031 |
| 2644 | #define GL_STRICT_SCISSOR_HINT_PGI 107032 |
| 2645 | #define GL_FULL_STIPPLE_HINT_PGI 107033 |
| 2646 | #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 107011 |
| 2647 | #define GL_NATIVE_GRAPHICS_END_HINT_PGI 107012 |
| 2648 | #define GL_CONSERVE_MEMORY_HINT_PGI 107005 |
| 2649 | #define GL_RECLAIM_MEMORY_HINT_PGI 107006 |
| 2650 | #define GL_ALWAYS_FAST_HINT_PGI 107020 |
| 2651 | #define GL_ALWAYS_SOFT_HINT_PGI 107021 |
| 2652 | #define GL_ALLOW_DRAW_OBJ_HINT_PGI 107022 |
| 2653 | #define GL_ALLOW_DRAW_WIN_HINT_PGI 107023 |
| 2654 | #define GL_ALLOW_DRAW_FRG_HINT_PGI 107024 |
| 2655 | #define GL_ALLOW_DRAW_SPN_HINT_PGI 107024 |
| 2656 | #define GL_ALLOW_DRAW_MEM_HINT_PGI 107025 |
| 2657 | #define GL_CLIP_NEAR_HINT_PGI 107040 |
| 2658 | #define GL_CLIP_FAR_HINT_PGI 107041 |
| 2659 | #define GL_WIDE_LINE_HINT_PGI 107042 |
| 2660 | #define GL_BACK_NORMALS_HINT_PGI 107043 |
| 2661 | #define GL_NATIVE_GRAPHICS_HANDLE_PGI 107010 |
| 2662 | |
| 2663 | #endif /* GL_PGI_misc_hints */ |
| 2664 | |
| 2665 | |
| 2666 | |
| 2667 | /* |
| 2668 | * GL_MESA_window_pos |
| 2669 | */ |
| 2670 | #ifndef GL_MESA_window_pos |
| 2671 | #define GL_MESA_window_pos 1 |
| 2672 | |
| 2673 | GLAPI void GLAPIENTRY glWindowPos2iMESA( GLint x, GLint y ); |
| 2674 | GLAPI void GLAPIENTRY glWindowPos2sMESA( GLshort x, GLshort y ); |
| 2675 | GLAPI void GLAPIENTRY glWindowPos2fMESA( GLfloat x, GLfloat y ); |
| 2676 | GLAPI void GLAPIENTRY glWindowPos2dMESA( GLdouble x, GLdouble y ); |
| 2677 | GLAPI void GLAPIENTRY glWindowPos2ivMESA( const GLint *p ); |
| 2678 | GLAPI void GLAPIENTRY glWindowPos2svMESA( const GLshort *p ); |
| 2679 | GLAPI void GLAPIENTRY glWindowPos2fvMESA( const GLfloat *p ); |
| 2680 | GLAPI void GLAPIENTRY glWindowPos2dvMESA( const GLdouble *p ); |
| 2681 | GLAPI void GLAPIENTRY glWindowPos3iMESA( GLint x, GLint y, GLint z ); |
| 2682 | GLAPI void GLAPIENTRY glWindowPos3sMESA( GLshort x, GLshort y, GLshort z ); |
| 2683 | GLAPI void GLAPIENTRY glWindowPos3fMESA( GLfloat x, GLfloat y, GLfloat z ); |
| 2684 | GLAPI void GLAPIENTRY glWindowPos3dMESA( GLdouble x, GLdouble y, GLdouble z ); |
| 2685 | GLAPI void GLAPIENTRY glWindowPos3ivMESA( const GLint *p ); |
| 2686 | GLAPI void GLAPIENTRY glWindowPos3svMESA( const GLshort *p ); |
| 2687 | GLAPI void GLAPIENTRY glWindowPos3fvMESA( const GLfloat *p ); |
| 2688 | GLAPI void GLAPIENTRY glWindowPos3dvMESA( const GLdouble *p ); |
| 2689 | GLAPI void GLAPIENTRY glWindowPos4iMESA( GLint x, GLint y, GLint z, GLint w ); |
| 2690 | GLAPI void GLAPIENTRY glWindowPos4sMESA( GLshort x, GLshort y, GLshort z, GLshort w ); |
| 2691 | GLAPI void GLAPIENTRY glWindowPos4fMESA( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); |
| 2692 | GLAPI void GLAPIENTRY glWindowPos4dMESA( GLdouble x, GLdouble y, GLdouble z, GLdouble w); |
| 2693 | GLAPI void GLAPIENTRY glWindowPos4ivMESA( const GLint *p ); |
| 2694 | GLAPI void GLAPIENTRY glWindowPos4svMESA( const GLshort *p ); |
| 2695 | GLAPI void GLAPIENTRY glWindowPos4fvMESA( const GLfloat *p ); |
| 2696 | GLAPI void GLAPIENTRY glWindowPos4dvMESA( const GLdouble *p ); |
| 2697 | |
| 2698 | #endif /* GL_MESA_window_pos */ |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | /* |
| 2703 | * GL_MESA_resize_bufffers |
| 2704 | */ |
| 2705 | #ifndef GL_MESA_resize_bufffers |
| 2706 | #define GL_MESA_resize_buffers 1 |
| 2707 | |
| 2708 | GLAPI void GLAPIENTRY glResizeBuffersMESA( void ); |
| 2709 | |
| 2710 | #endif /* GL_MESA_resize_bufffers */ |
| 2711 | |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | |
| 2716 | #if defined(__BEOS__) || defined(__QUICKDRAW__) |
| 2717 | #pragma export off |
| 2718 | #endif |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2719 | |
| 2720 | |
| 2721 | #ifdef macintosh |
| 2722 | #pragma enumsalwaysint reset |
| 2723 | #if PRAGMA_IMPORT_SUPPORTED |
| 2724 | #pragma import off |
| 2725 | #endif |
| 2726 | #endif |
| 2727 | |
| 2728 | |
| 2729 | #ifdef __cplusplus |
| 2730 | } |
| 2731 | #endif |
| 2732 | |
| 2733 | #endif |