gl.h revision b8e80941
1848b8605Smrg/* 2848b8605Smrg * Mesa 3-D graphics library 3848b8605Smrg * 4848b8605Smrg * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. 5848b8605Smrg * Copyright (C) 2009 VMware, Inc. All Rights Reserved. 6848b8605Smrg * 7848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a 8848b8605Smrg * copy of this software and associated documentation files (the "Software"), 9848b8605Smrg * to deal in the Software without restriction, including without limitation 10848b8605Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 11848b8605Smrg * and/or sell copies of the Software, and to permit persons to whom the 12848b8605Smrg * Software is furnished to do so, subject to the following conditions: 13848b8605Smrg * 14848b8605Smrg * The above copyright notice and this permission notice shall be included 15848b8605Smrg * in all copies or substantial portions of the Software. 16848b8605Smrg * 17848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18848b8605Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19848b8605Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20848b8605Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21848b8605Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22848b8605Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23848b8605Smrg * OTHER DEALINGS IN THE SOFTWARE. 24848b8605Smrg */ 25848b8605Smrg 26848b8605Smrg 27848b8605Smrg#ifndef __gl_h_ 28848b8605Smrg#define __gl_h_ 29848b8605Smrg 30848b8605Smrg#if defined(USE_MGL_NAMESPACE) 31848b8605Smrg#include "gl_mangle.h" 32848b8605Smrg#endif 33848b8605Smrg 34848b8605Smrg 35848b8605Smrg/********************************************************************** 36848b8605Smrg * Begin system-specific stuff. 37848b8605Smrg */ 38848b8605Smrg 39848b8605Smrg#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__) 40848b8605Smrg#define __WIN32__ 41848b8605Smrg#endif 42848b8605Smrg 43848b8605Smrg#if defined(__WIN32__) && !defined(__CYGWIN__) 44848b8605Smrg# if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */ 45848b8605Smrg# define GLAPI __declspec(dllexport) 46848b8605Smrg# elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */ 47848b8605Smrg# define GLAPI __declspec(dllimport) 48848b8605Smrg# else /* for use with static link lib build of Win32 edition only */ 49848b8605Smrg# define GLAPI extern 50b8e80941Smrg# endif 51848b8605Smrg# if defined(__MINGW32__) && defined(GL_NO_STDCALL) || defined(UNDER_CE) /* The generated DLLs by MingW with STDCALL are not compatible with the ones done by Microsoft's compilers */ 52b8e80941Smrg# define GLAPIENTRY 53848b8605Smrg# else 54848b8605Smrg# define GLAPIENTRY __stdcall 55848b8605Smrg# endif 56848b8605Smrg#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */ 57848b8605Smrg# define GLAPI extern 58848b8605Smrg# define GLAPIENTRY __stdcall 59848b8605Smrg#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) 60848b8605Smrg# define GLAPI __attribute__((visibility("default"))) 61848b8605Smrg# define GLAPIENTRY 62848b8605Smrg#endif /* WIN32 && !CYGWIN */ 63848b8605Smrg 64848b8605Smrg/* 65848b8605Smrg * WINDOWS: Include windows.h here to define APIENTRY. 66848b8605Smrg * It is also useful when applications include this file by 67848b8605Smrg * including only glut.h, since glut.h depends on windows.h. 68848b8605Smrg * Applications needing to include windows.h with parms other 69848b8605Smrg * than "WIN32_LEAN_AND_MEAN" may include windows.h before 70848b8605Smrg * glut.h or gl.h. 71848b8605Smrg */ 72848b8605Smrg#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) 73848b8605Smrg#ifndef WIN32_LEAN_AND_MEAN 74848b8605Smrg#define WIN32_LEAN_AND_MEAN 1 75848b8605Smrg#endif 76848b8605Smrg#include <windows.h> 77848b8605Smrg#endif 78848b8605Smrg 79848b8605Smrg#ifndef GLAPI 80848b8605Smrg#define GLAPI extern 81848b8605Smrg#endif 82848b8605Smrg 83848b8605Smrg#ifndef GLAPIENTRY 84848b8605Smrg#define GLAPIENTRY 85848b8605Smrg#endif 86848b8605Smrg 87848b8605Smrg#ifndef APIENTRY 88848b8605Smrg#define APIENTRY GLAPIENTRY 89848b8605Smrg#endif 90848b8605Smrg 91848b8605Smrg/* "P" suffix to be used for a pointer to a function */ 92848b8605Smrg#ifndef APIENTRYP 93848b8605Smrg#define APIENTRYP APIENTRY * 94848b8605Smrg#endif 95848b8605Smrg 96848b8605Smrg#ifndef GLAPIENTRYP 97848b8605Smrg#define GLAPIENTRYP GLAPIENTRY * 98848b8605Smrg#endif 99848b8605Smrg 100848b8605Smrg/* 101848b8605Smrg * End system-specific stuff. 102848b8605Smrg **********************************************************************/ 103848b8605Smrg 104848b8605Smrg 105848b8605Smrg 106848b8605Smrg#ifdef __cplusplus 107848b8605Smrgextern "C" { 108848b8605Smrg#endif 109848b8605Smrg 110848b8605Smrg 111848b8605Smrg 112848b8605Smrg#define GL_VERSION_1_1 1 113848b8605Smrg#define GL_VERSION_1_2 1 114848b8605Smrg#define GL_VERSION_1_3 1 115848b8605Smrg#define GL_ARB_imaging 1 116848b8605Smrg 117848b8605Smrg 118848b8605Smrg/* 119848b8605Smrg * Datatypes 120848b8605Smrg */ 121848b8605Smrgtypedef unsigned int GLenum; 122848b8605Smrgtypedef unsigned char GLboolean; 123848b8605Smrgtypedef unsigned int GLbitfield; 124848b8605Smrgtypedef void GLvoid; 125848b8605Smrgtypedef signed char GLbyte; /* 1-byte signed */ 126848b8605Smrgtypedef short GLshort; /* 2-byte signed */ 127848b8605Smrgtypedef int GLint; /* 4-byte signed */ 128848b8605Smrgtypedef unsigned char GLubyte; /* 1-byte unsigned */ 129848b8605Smrgtypedef unsigned short GLushort; /* 2-byte unsigned */ 130848b8605Smrgtypedef unsigned int GLuint; /* 4-byte unsigned */ 131848b8605Smrgtypedef int GLsizei; /* 4-byte signed */ 132848b8605Smrgtypedef float GLfloat; /* single precision float */ 133848b8605Smrgtypedef float GLclampf; /* single precision float in [0,1] */ 134848b8605Smrgtypedef double GLdouble; /* double precision float */ 135848b8605Smrgtypedef double GLclampd; /* double precision float in [0,1] */ 136848b8605Smrg 137848b8605Smrg 138848b8605Smrg 139848b8605Smrg/* 140848b8605Smrg * Constants 141848b8605Smrg */ 142848b8605Smrg 143848b8605Smrg/* Boolean values */ 144848b8605Smrg#define GL_FALSE 0 145848b8605Smrg#define GL_TRUE 1 146848b8605Smrg 147848b8605Smrg/* Data types */ 148848b8605Smrg#define GL_BYTE 0x1400 149848b8605Smrg#define GL_UNSIGNED_BYTE 0x1401 150848b8605Smrg#define GL_SHORT 0x1402 151848b8605Smrg#define GL_UNSIGNED_SHORT 0x1403 152848b8605Smrg#define GL_INT 0x1404 153848b8605Smrg#define GL_UNSIGNED_INT 0x1405 154848b8605Smrg#define GL_FLOAT 0x1406 155848b8605Smrg#define GL_2_BYTES 0x1407 156848b8605Smrg#define GL_3_BYTES 0x1408 157848b8605Smrg#define GL_4_BYTES 0x1409 158848b8605Smrg#define GL_DOUBLE 0x140A 159848b8605Smrg 160848b8605Smrg/* Primitives */ 161848b8605Smrg#define GL_POINTS 0x0000 162848b8605Smrg#define GL_LINES 0x0001 163848b8605Smrg#define GL_LINE_LOOP 0x0002 164848b8605Smrg#define GL_LINE_STRIP 0x0003 165848b8605Smrg#define GL_TRIANGLES 0x0004 166848b8605Smrg#define GL_TRIANGLE_STRIP 0x0005 167848b8605Smrg#define GL_TRIANGLE_FAN 0x0006 168848b8605Smrg#define GL_QUADS 0x0007 169848b8605Smrg#define GL_QUAD_STRIP 0x0008 170848b8605Smrg#define GL_POLYGON 0x0009 171848b8605Smrg 172848b8605Smrg/* Vertex Arrays */ 173848b8605Smrg#define GL_VERTEX_ARRAY 0x8074 174848b8605Smrg#define GL_NORMAL_ARRAY 0x8075 175848b8605Smrg#define GL_COLOR_ARRAY 0x8076 176848b8605Smrg#define GL_INDEX_ARRAY 0x8077 177848b8605Smrg#define GL_TEXTURE_COORD_ARRAY 0x8078 178848b8605Smrg#define GL_EDGE_FLAG_ARRAY 0x8079 179848b8605Smrg#define GL_VERTEX_ARRAY_SIZE 0x807A 180848b8605Smrg#define GL_VERTEX_ARRAY_TYPE 0x807B 181848b8605Smrg#define GL_VERTEX_ARRAY_STRIDE 0x807C 182848b8605Smrg#define GL_NORMAL_ARRAY_TYPE 0x807E 183848b8605Smrg#define GL_NORMAL_ARRAY_STRIDE 0x807F 184848b8605Smrg#define GL_COLOR_ARRAY_SIZE 0x8081 185848b8605Smrg#define GL_COLOR_ARRAY_TYPE 0x8082 186848b8605Smrg#define GL_COLOR_ARRAY_STRIDE 0x8083 187848b8605Smrg#define GL_INDEX_ARRAY_TYPE 0x8085 188848b8605Smrg#define GL_INDEX_ARRAY_STRIDE 0x8086 189848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 190848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 191848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A 192848b8605Smrg#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C 193848b8605Smrg#define GL_VERTEX_ARRAY_POINTER 0x808E 194848b8605Smrg#define GL_NORMAL_ARRAY_POINTER 0x808F 195848b8605Smrg#define GL_COLOR_ARRAY_POINTER 0x8090 196848b8605Smrg#define GL_INDEX_ARRAY_POINTER 0x8091 197848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 198848b8605Smrg#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 199848b8605Smrg#define GL_V2F 0x2A20 200848b8605Smrg#define GL_V3F 0x2A21 201848b8605Smrg#define GL_C4UB_V2F 0x2A22 202848b8605Smrg#define GL_C4UB_V3F 0x2A23 203848b8605Smrg#define GL_C3F_V3F 0x2A24 204848b8605Smrg#define GL_N3F_V3F 0x2A25 205848b8605Smrg#define GL_C4F_N3F_V3F 0x2A26 206848b8605Smrg#define GL_T2F_V3F 0x2A27 207848b8605Smrg#define GL_T4F_V4F 0x2A28 208848b8605Smrg#define GL_T2F_C4UB_V3F 0x2A29 209848b8605Smrg#define GL_T2F_C3F_V3F 0x2A2A 210848b8605Smrg#define GL_T2F_N3F_V3F 0x2A2B 211848b8605Smrg#define GL_T2F_C4F_N3F_V3F 0x2A2C 212848b8605Smrg#define GL_T4F_C4F_N3F_V4F 0x2A2D 213848b8605Smrg 214848b8605Smrg/* Matrix Mode */ 215848b8605Smrg#define GL_MATRIX_MODE 0x0BA0 216848b8605Smrg#define GL_MODELVIEW 0x1700 217848b8605Smrg#define GL_PROJECTION 0x1701 218848b8605Smrg#define GL_TEXTURE 0x1702 219848b8605Smrg 220848b8605Smrg/* Points */ 221848b8605Smrg#define GL_POINT_SMOOTH 0x0B10 222848b8605Smrg#define GL_POINT_SIZE 0x0B11 223848b8605Smrg#define GL_POINT_SIZE_GRANULARITY 0x0B13 224848b8605Smrg#define GL_POINT_SIZE_RANGE 0x0B12 225848b8605Smrg 226848b8605Smrg/* Lines */ 227848b8605Smrg#define GL_LINE_SMOOTH 0x0B20 228848b8605Smrg#define GL_LINE_STIPPLE 0x0B24 229848b8605Smrg#define GL_LINE_STIPPLE_PATTERN 0x0B25 230848b8605Smrg#define GL_LINE_STIPPLE_REPEAT 0x0B26 231848b8605Smrg#define GL_LINE_WIDTH 0x0B21 232848b8605Smrg#define GL_LINE_WIDTH_GRANULARITY 0x0B23 233848b8605Smrg#define GL_LINE_WIDTH_RANGE 0x0B22 234848b8605Smrg 235848b8605Smrg/* Polygons */ 236848b8605Smrg#define GL_POINT 0x1B00 237848b8605Smrg#define GL_LINE 0x1B01 238848b8605Smrg#define GL_FILL 0x1B02 239848b8605Smrg#define GL_CW 0x0900 240848b8605Smrg#define GL_CCW 0x0901 241848b8605Smrg#define GL_FRONT 0x0404 242848b8605Smrg#define GL_BACK 0x0405 243848b8605Smrg#define GL_POLYGON_MODE 0x0B40 244848b8605Smrg#define GL_POLYGON_SMOOTH 0x0B41 245848b8605Smrg#define GL_POLYGON_STIPPLE 0x0B42 246848b8605Smrg#define GL_EDGE_FLAG 0x0B43 247848b8605Smrg#define GL_CULL_FACE 0x0B44 248848b8605Smrg#define GL_CULL_FACE_MODE 0x0B45 249848b8605Smrg#define GL_FRONT_FACE 0x0B46 250848b8605Smrg#define GL_POLYGON_OFFSET_FACTOR 0x8038 251848b8605Smrg#define GL_POLYGON_OFFSET_UNITS 0x2A00 252848b8605Smrg#define GL_POLYGON_OFFSET_POINT 0x2A01 253848b8605Smrg#define GL_POLYGON_OFFSET_LINE 0x2A02 254848b8605Smrg#define GL_POLYGON_OFFSET_FILL 0x8037 255848b8605Smrg 256848b8605Smrg/* Display Lists */ 257848b8605Smrg#define GL_COMPILE 0x1300 258848b8605Smrg#define GL_COMPILE_AND_EXECUTE 0x1301 259848b8605Smrg#define GL_LIST_BASE 0x0B32 260848b8605Smrg#define GL_LIST_INDEX 0x0B33 261848b8605Smrg#define GL_LIST_MODE 0x0B30 262848b8605Smrg 263848b8605Smrg/* Depth buffer */ 264848b8605Smrg#define GL_NEVER 0x0200 265848b8605Smrg#define GL_LESS 0x0201 266848b8605Smrg#define GL_EQUAL 0x0202 267848b8605Smrg#define GL_LEQUAL 0x0203 268848b8605Smrg#define GL_GREATER 0x0204 269848b8605Smrg#define GL_NOTEQUAL 0x0205 270848b8605Smrg#define GL_GEQUAL 0x0206 271848b8605Smrg#define GL_ALWAYS 0x0207 272848b8605Smrg#define GL_DEPTH_TEST 0x0B71 273848b8605Smrg#define GL_DEPTH_BITS 0x0D56 274848b8605Smrg#define GL_DEPTH_CLEAR_VALUE 0x0B73 275848b8605Smrg#define GL_DEPTH_FUNC 0x0B74 276848b8605Smrg#define GL_DEPTH_RANGE 0x0B70 277848b8605Smrg#define GL_DEPTH_WRITEMASK 0x0B72 278848b8605Smrg#define GL_DEPTH_COMPONENT 0x1902 279848b8605Smrg 280848b8605Smrg/* Lighting */ 281848b8605Smrg#define GL_LIGHTING 0x0B50 282848b8605Smrg#define GL_LIGHT0 0x4000 283848b8605Smrg#define GL_LIGHT1 0x4001 284848b8605Smrg#define GL_LIGHT2 0x4002 285848b8605Smrg#define GL_LIGHT3 0x4003 286848b8605Smrg#define GL_LIGHT4 0x4004 287848b8605Smrg#define GL_LIGHT5 0x4005 288848b8605Smrg#define GL_LIGHT6 0x4006 289848b8605Smrg#define GL_LIGHT7 0x4007 290848b8605Smrg#define GL_SPOT_EXPONENT 0x1205 291848b8605Smrg#define GL_SPOT_CUTOFF 0x1206 292848b8605Smrg#define GL_CONSTANT_ATTENUATION 0x1207 293848b8605Smrg#define GL_LINEAR_ATTENUATION 0x1208 294848b8605Smrg#define GL_QUADRATIC_ATTENUATION 0x1209 295848b8605Smrg#define GL_AMBIENT 0x1200 296848b8605Smrg#define GL_DIFFUSE 0x1201 297848b8605Smrg#define GL_SPECULAR 0x1202 298848b8605Smrg#define GL_SHININESS 0x1601 299848b8605Smrg#define GL_EMISSION 0x1600 300848b8605Smrg#define GL_POSITION 0x1203 301848b8605Smrg#define GL_SPOT_DIRECTION 0x1204 302848b8605Smrg#define GL_AMBIENT_AND_DIFFUSE 0x1602 303848b8605Smrg#define GL_COLOR_INDEXES 0x1603 304848b8605Smrg#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 305848b8605Smrg#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 306848b8605Smrg#define GL_LIGHT_MODEL_AMBIENT 0x0B53 307848b8605Smrg#define GL_FRONT_AND_BACK 0x0408 308848b8605Smrg#define GL_SHADE_MODEL 0x0B54 309848b8605Smrg#define GL_FLAT 0x1D00 310848b8605Smrg#define GL_SMOOTH 0x1D01 311848b8605Smrg#define GL_COLOR_MATERIAL 0x0B57 312848b8605Smrg#define GL_COLOR_MATERIAL_FACE 0x0B55 313848b8605Smrg#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 314848b8605Smrg#define GL_NORMALIZE 0x0BA1 315848b8605Smrg 316848b8605Smrg/* User clipping planes */ 317848b8605Smrg#define GL_CLIP_PLANE0 0x3000 318848b8605Smrg#define GL_CLIP_PLANE1 0x3001 319848b8605Smrg#define GL_CLIP_PLANE2 0x3002 320848b8605Smrg#define GL_CLIP_PLANE3 0x3003 321848b8605Smrg#define GL_CLIP_PLANE4 0x3004 322848b8605Smrg#define GL_CLIP_PLANE5 0x3005 323848b8605Smrg 324848b8605Smrg/* Accumulation buffer */ 325848b8605Smrg#define GL_ACCUM_RED_BITS 0x0D58 326848b8605Smrg#define GL_ACCUM_GREEN_BITS 0x0D59 327848b8605Smrg#define GL_ACCUM_BLUE_BITS 0x0D5A 328848b8605Smrg#define GL_ACCUM_ALPHA_BITS 0x0D5B 329848b8605Smrg#define GL_ACCUM_CLEAR_VALUE 0x0B80 330848b8605Smrg#define GL_ACCUM 0x0100 331848b8605Smrg#define GL_ADD 0x0104 332848b8605Smrg#define GL_LOAD 0x0101 333848b8605Smrg#define GL_MULT 0x0103 334848b8605Smrg#define GL_RETURN 0x0102 335848b8605Smrg 336848b8605Smrg/* Alpha testing */ 337848b8605Smrg#define GL_ALPHA_TEST 0x0BC0 338848b8605Smrg#define GL_ALPHA_TEST_REF 0x0BC2 339848b8605Smrg#define GL_ALPHA_TEST_FUNC 0x0BC1 340848b8605Smrg 341848b8605Smrg/* Blending */ 342848b8605Smrg#define GL_BLEND 0x0BE2 343848b8605Smrg#define GL_BLEND_SRC 0x0BE1 344848b8605Smrg#define GL_BLEND_DST 0x0BE0 345848b8605Smrg#define GL_ZERO 0 346848b8605Smrg#define GL_ONE 1 347848b8605Smrg#define GL_SRC_COLOR 0x0300 348848b8605Smrg#define GL_ONE_MINUS_SRC_COLOR 0x0301 349848b8605Smrg#define GL_SRC_ALPHA 0x0302 350848b8605Smrg#define GL_ONE_MINUS_SRC_ALPHA 0x0303 351848b8605Smrg#define GL_DST_ALPHA 0x0304 352848b8605Smrg#define GL_ONE_MINUS_DST_ALPHA 0x0305 353848b8605Smrg#define GL_DST_COLOR 0x0306 354848b8605Smrg#define GL_ONE_MINUS_DST_COLOR 0x0307 355848b8605Smrg#define GL_SRC_ALPHA_SATURATE 0x0308 356848b8605Smrg 357848b8605Smrg/* Render Mode */ 358848b8605Smrg#define GL_FEEDBACK 0x1C01 359848b8605Smrg#define GL_RENDER 0x1C00 360848b8605Smrg#define GL_SELECT 0x1C02 361848b8605Smrg 362848b8605Smrg/* Feedback */ 363848b8605Smrg#define GL_2D 0x0600 364848b8605Smrg#define GL_3D 0x0601 365848b8605Smrg#define GL_3D_COLOR 0x0602 366848b8605Smrg#define GL_3D_COLOR_TEXTURE 0x0603 367848b8605Smrg#define GL_4D_COLOR_TEXTURE 0x0604 368848b8605Smrg#define GL_POINT_TOKEN 0x0701 369848b8605Smrg#define GL_LINE_TOKEN 0x0702 370848b8605Smrg#define GL_LINE_RESET_TOKEN 0x0707 371848b8605Smrg#define GL_POLYGON_TOKEN 0x0703 372848b8605Smrg#define GL_BITMAP_TOKEN 0x0704 373848b8605Smrg#define GL_DRAW_PIXEL_TOKEN 0x0705 374848b8605Smrg#define GL_COPY_PIXEL_TOKEN 0x0706 375848b8605Smrg#define GL_PASS_THROUGH_TOKEN 0x0700 376848b8605Smrg#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 377848b8605Smrg#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 378848b8605Smrg#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 379848b8605Smrg 380848b8605Smrg/* Selection */ 381848b8605Smrg#define GL_SELECTION_BUFFER_POINTER 0x0DF3 382848b8605Smrg#define GL_SELECTION_BUFFER_SIZE 0x0DF4 383848b8605Smrg 384848b8605Smrg/* Fog */ 385848b8605Smrg#define GL_FOG 0x0B60 386848b8605Smrg#define GL_FOG_MODE 0x0B65 387848b8605Smrg#define GL_FOG_DENSITY 0x0B62 388848b8605Smrg#define GL_FOG_COLOR 0x0B66 389848b8605Smrg#define GL_FOG_INDEX 0x0B61 390848b8605Smrg#define GL_FOG_START 0x0B63 391848b8605Smrg#define GL_FOG_END 0x0B64 392848b8605Smrg#define GL_LINEAR 0x2601 393848b8605Smrg#define GL_EXP 0x0800 394848b8605Smrg#define GL_EXP2 0x0801 395848b8605Smrg 396848b8605Smrg/* Logic Ops */ 397848b8605Smrg#define GL_LOGIC_OP 0x0BF1 398848b8605Smrg#define GL_INDEX_LOGIC_OP 0x0BF1 399848b8605Smrg#define GL_COLOR_LOGIC_OP 0x0BF2 400848b8605Smrg#define GL_LOGIC_OP_MODE 0x0BF0 401848b8605Smrg#define GL_CLEAR 0x1500 402848b8605Smrg#define GL_SET 0x150F 403848b8605Smrg#define GL_COPY 0x1503 404848b8605Smrg#define GL_COPY_INVERTED 0x150C 405848b8605Smrg#define GL_NOOP 0x1505 406848b8605Smrg#define GL_INVERT 0x150A 407848b8605Smrg#define GL_AND 0x1501 408848b8605Smrg#define GL_NAND 0x150E 409848b8605Smrg#define GL_OR 0x1507 410848b8605Smrg#define GL_NOR 0x1508 411848b8605Smrg#define GL_XOR 0x1506 412848b8605Smrg#define GL_EQUIV 0x1509 413848b8605Smrg#define GL_AND_REVERSE 0x1502 414848b8605Smrg#define GL_AND_INVERTED 0x1504 415848b8605Smrg#define GL_OR_REVERSE 0x150B 416848b8605Smrg#define GL_OR_INVERTED 0x150D 417848b8605Smrg 418848b8605Smrg/* Stencil */ 419848b8605Smrg#define GL_STENCIL_BITS 0x0D57 420848b8605Smrg#define GL_STENCIL_TEST 0x0B90 421848b8605Smrg#define GL_STENCIL_CLEAR_VALUE 0x0B91 422848b8605Smrg#define GL_STENCIL_FUNC 0x0B92 423848b8605Smrg#define GL_STENCIL_VALUE_MASK 0x0B93 424848b8605Smrg#define GL_STENCIL_FAIL 0x0B94 425848b8605Smrg#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 426848b8605Smrg#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 427848b8605Smrg#define GL_STENCIL_REF 0x0B97 428848b8605Smrg#define GL_STENCIL_WRITEMASK 0x0B98 429848b8605Smrg#define GL_STENCIL_INDEX 0x1901 430848b8605Smrg#define GL_KEEP 0x1E00 431848b8605Smrg#define GL_REPLACE 0x1E01 432848b8605Smrg#define GL_INCR 0x1E02 433848b8605Smrg#define GL_DECR 0x1E03 434848b8605Smrg 435848b8605Smrg/* Buffers, Pixel Drawing/Reading */ 436848b8605Smrg#define GL_NONE 0 437848b8605Smrg#define GL_LEFT 0x0406 438848b8605Smrg#define GL_RIGHT 0x0407 439848b8605Smrg/*GL_FRONT 0x0404 */ 440848b8605Smrg/*GL_BACK 0x0405 */ 441848b8605Smrg/*GL_FRONT_AND_BACK 0x0408 */ 442848b8605Smrg#define GL_FRONT_LEFT 0x0400 443848b8605Smrg#define GL_FRONT_RIGHT 0x0401 444848b8605Smrg#define GL_BACK_LEFT 0x0402 445848b8605Smrg#define GL_BACK_RIGHT 0x0403 446848b8605Smrg#define GL_AUX0 0x0409 447848b8605Smrg#define GL_AUX1 0x040A 448848b8605Smrg#define GL_AUX2 0x040B 449848b8605Smrg#define GL_AUX3 0x040C 450848b8605Smrg#define GL_COLOR_INDEX 0x1900 451848b8605Smrg#define GL_RED 0x1903 452848b8605Smrg#define GL_GREEN 0x1904 453848b8605Smrg#define GL_BLUE 0x1905 454848b8605Smrg#define GL_ALPHA 0x1906 455848b8605Smrg#define GL_LUMINANCE 0x1909 456848b8605Smrg#define GL_LUMINANCE_ALPHA 0x190A 457848b8605Smrg#define GL_ALPHA_BITS 0x0D55 458848b8605Smrg#define GL_RED_BITS 0x0D52 459848b8605Smrg#define GL_GREEN_BITS 0x0D53 460848b8605Smrg#define GL_BLUE_BITS 0x0D54 461848b8605Smrg#define GL_INDEX_BITS 0x0D51 462848b8605Smrg#define GL_SUBPIXEL_BITS 0x0D50 463848b8605Smrg#define GL_AUX_BUFFERS 0x0C00 464848b8605Smrg#define GL_READ_BUFFER 0x0C02 465848b8605Smrg#define GL_DRAW_BUFFER 0x0C01 466848b8605Smrg#define GL_DOUBLEBUFFER 0x0C32 467848b8605Smrg#define GL_STEREO 0x0C33 468848b8605Smrg#define GL_BITMAP 0x1A00 469848b8605Smrg#define GL_COLOR 0x1800 470848b8605Smrg#define GL_DEPTH 0x1801 471848b8605Smrg#define GL_STENCIL 0x1802 472848b8605Smrg#define GL_DITHER 0x0BD0 473848b8605Smrg#define GL_RGB 0x1907 474848b8605Smrg#define GL_RGBA 0x1908 475848b8605Smrg 476848b8605Smrg/* Implementation limits */ 477848b8605Smrg#define GL_MAX_LIST_NESTING 0x0B31 478848b8605Smrg#define GL_MAX_EVAL_ORDER 0x0D30 479848b8605Smrg#define GL_MAX_LIGHTS 0x0D31 480848b8605Smrg#define GL_MAX_CLIP_PLANES 0x0D32 481848b8605Smrg#define GL_MAX_TEXTURE_SIZE 0x0D33 482848b8605Smrg#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 483848b8605Smrg#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 484848b8605Smrg#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 485848b8605Smrg#define GL_MAX_NAME_STACK_DEPTH 0x0D37 486848b8605Smrg#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 487848b8605Smrg#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 488848b8605Smrg#define GL_MAX_VIEWPORT_DIMS 0x0D3A 489848b8605Smrg#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B 490848b8605Smrg 491848b8605Smrg/* Gets */ 492848b8605Smrg#define GL_ATTRIB_STACK_DEPTH 0x0BB0 493848b8605Smrg#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 494848b8605Smrg#define GL_COLOR_CLEAR_VALUE 0x0C22 495848b8605Smrg#define GL_COLOR_WRITEMASK 0x0C23 496848b8605Smrg#define GL_CURRENT_INDEX 0x0B01 497848b8605Smrg#define GL_CURRENT_COLOR 0x0B00 498848b8605Smrg#define GL_CURRENT_NORMAL 0x0B02 499848b8605Smrg#define GL_CURRENT_RASTER_COLOR 0x0B04 500848b8605Smrg#define GL_CURRENT_RASTER_DISTANCE 0x0B09 501848b8605Smrg#define GL_CURRENT_RASTER_INDEX 0x0B05 502848b8605Smrg#define GL_CURRENT_RASTER_POSITION 0x0B07 503848b8605Smrg#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 504848b8605Smrg#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 505848b8605Smrg#define GL_CURRENT_TEXTURE_COORDS 0x0B03 506848b8605Smrg#define GL_INDEX_CLEAR_VALUE 0x0C20 507848b8605Smrg#define GL_INDEX_MODE 0x0C30 508848b8605Smrg#define GL_INDEX_WRITEMASK 0x0C21 509848b8605Smrg#define GL_MODELVIEW_MATRIX 0x0BA6 510848b8605Smrg#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 511848b8605Smrg#define GL_NAME_STACK_DEPTH 0x0D70 512848b8605Smrg#define GL_PROJECTION_MATRIX 0x0BA7 513848b8605Smrg#define GL_PROJECTION_STACK_DEPTH 0x0BA4 514848b8605Smrg#define GL_RENDER_MODE 0x0C40 515848b8605Smrg#define GL_RGBA_MODE 0x0C31 516848b8605Smrg#define GL_TEXTURE_MATRIX 0x0BA8 517848b8605Smrg#define GL_TEXTURE_STACK_DEPTH 0x0BA5 518848b8605Smrg#define GL_VIEWPORT 0x0BA2 519848b8605Smrg 520848b8605Smrg/* Evaluators */ 521848b8605Smrg#define GL_AUTO_NORMAL 0x0D80 522848b8605Smrg#define GL_MAP1_COLOR_4 0x0D90 523848b8605Smrg#define GL_MAP1_INDEX 0x0D91 524848b8605Smrg#define GL_MAP1_NORMAL 0x0D92 525848b8605Smrg#define GL_MAP1_TEXTURE_COORD_1 0x0D93 526848b8605Smrg#define GL_MAP1_TEXTURE_COORD_2 0x0D94 527848b8605Smrg#define GL_MAP1_TEXTURE_COORD_3 0x0D95 528848b8605Smrg#define GL_MAP1_TEXTURE_COORD_4 0x0D96 529848b8605Smrg#define GL_MAP1_VERTEX_3 0x0D97 530848b8605Smrg#define GL_MAP1_VERTEX_4 0x0D98 531848b8605Smrg#define GL_MAP2_COLOR_4 0x0DB0 532848b8605Smrg#define GL_MAP2_INDEX 0x0DB1 533848b8605Smrg#define GL_MAP2_NORMAL 0x0DB2 534848b8605Smrg#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 535848b8605Smrg#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 536848b8605Smrg#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 537848b8605Smrg#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 538848b8605Smrg#define GL_MAP2_VERTEX_3 0x0DB7 539848b8605Smrg#define GL_MAP2_VERTEX_4 0x0DB8 540848b8605Smrg#define GL_MAP1_GRID_DOMAIN 0x0DD0 541848b8605Smrg#define GL_MAP1_GRID_SEGMENTS 0x0DD1 542848b8605Smrg#define GL_MAP2_GRID_DOMAIN 0x0DD2 543848b8605Smrg#define GL_MAP2_GRID_SEGMENTS 0x0DD3 544848b8605Smrg#define GL_COEFF 0x0A00 545848b8605Smrg#define GL_ORDER 0x0A01 546848b8605Smrg#define GL_DOMAIN 0x0A02 547848b8605Smrg 548848b8605Smrg/* Hints */ 549848b8605Smrg#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 550848b8605Smrg#define GL_POINT_SMOOTH_HINT 0x0C51 551848b8605Smrg#define GL_LINE_SMOOTH_HINT 0x0C52 552848b8605Smrg#define GL_POLYGON_SMOOTH_HINT 0x0C53 553848b8605Smrg#define GL_FOG_HINT 0x0C54 554848b8605Smrg#define GL_DONT_CARE 0x1100 555848b8605Smrg#define GL_FASTEST 0x1101 556848b8605Smrg#define GL_NICEST 0x1102 557848b8605Smrg 558848b8605Smrg/* Scissor box */ 559848b8605Smrg#define GL_SCISSOR_BOX 0x0C10 560848b8605Smrg#define GL_SCISSOR_TEST 0x0C11 561848b8605Smrg 562848b8605Smrg/* Pixel Mode / Transfer */ 563848b8605Smrg#define GL_MAP_COLOR 0x0D10 564848b8605Smrg#define GL_MAP_STENCIL 0x0D11 565848b8605Smrg#define GL_INDEX_SHIFT 0x0D12 566848b8605Smrg#define GL_INDEX_OFFSET 0x0D13 567848b8605Smrg#define GL_RED_SCALE 0x0D14 568848b8605Smrg#define GL_RED_BIAS 0x0D15 569848b8605Smrg#define GL_GREEN_SCALE 0x0D18 570848b8605Smrg#define GL_GREEN_BIAS 0x0D19 571848b8605Smrg#define GL_BLUE_SCALE 0x0D1A 572848b8605Smrg#define GL_BLUE_BIAS 0x0D1B 573848b8605Smrg#define GL_ALPHA_SCALE 0x0D1C 574848b8605Smrg#define GL_ALPHA_BIAS 0x0D1D 575848b8605Smrg#define GL_DEPTH_SCALE 0x0D1E 576848b8605Smrg#define GL_DEPTH_BIAS 0x0D1F 577848b8605Smrg#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 578848b8605Smrg#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 579848b8605Smrg#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 580848b8605Smrg#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 581848b8605Smrg#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 582848b8605Smrg#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 583848b8605Smrg#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 584848b8605Smrg#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 585848b8605Smrg#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 586848b8605Smrg#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 587848b8605Smrg#define GL_PIXEL_MAP_S_TO_S 0x0C71 588848b8605Smrg#define GL_PIXEL_MAP_I_TO_I 0x0C70 589848b8605Smrg#define GL_PIXEL_MAP_I_TO_R 0x0C72 590848b8605Smrg#define GL_PIXEL_MAP_I_TO_G 0x0C73 591848b8605Smrg#define GL_PIXEL_MAP_I_TO_B 0x0C74 592848b8605Smrg#define GL_PIXEL_MAP_I_TO_A 0x0C75 593848b8605Smrg#define GL_PIXEL_MAP_R_TO_R 0x0C76 594848b8605Smrg#define GL_PIXEL_MAP_G_TO_G 0x0C77 595848b8605Smrg#define GL_PIXEL_MAP_B_TO_B 0x0C78 596848b8605Smrg#define GL_PIXEL_MAP_A_TO_A 0x0C79 597848b8605Smrg#define GL_PACK_ALIGNMENT 0x0D05 598848b8605Smrg#define GL_PACK_LSB_FIRST 0x0D01 599848b8605Smrg#define GL_PACK_ROW_LENGTH 0x0D02 600848b8605Smrg#define GL_PACK_SKIP_PIXELS 0x0D04 601848b8605Smrg#define GL_PACK_SKIP_ROWS 0x0D03 602848b8605Smrg#define GL_PACK_SWAP_BYTES 0x0D00 603848b8605Smrg#define GL_UNPACK_ALIGNMENT 0x0CF5 604848b8605Smrg#define GL_UNPACK_LSB_FIRST 0x0CF1 605848b8605Smrg#define GL_UNPACK_ROW_LENGTH 0x0CF2 606848b8605Smrg#define GL_UNPACK_SKIP_PIXELS 0x0CF4 607848b8605Smrg#define GL_UNPACK_SKIP_ROWS 0x0CF3 608848b8605Smrg#define GL_UNPACK_SWAP_BYTES 0x0CF0 609848b8605Smrg#define GL_ZOOM_X 0x0D16 610848b8605Smrg#define GL_ZOOM_Y 0x0D17 611848b8605Smrg 612848b8605Smrg/* Texture mapping */ 613848b8605Smrg#define GL_TEXTURE_ENV 0x2300 614848b8605Smrg#define GL_TEXTURE_ENV_MODE 0x2200 615848b8605Smrg#define GL_TEXTURE_1D 0x0DE0 616848b8605Smrg#define GL_TEXTURE_2D 0x0DE1 617848b8605Smrg#define GL_TEXTURE_WRAP_S 0x2802 618848b8605Smrg#define GL_TEXTURE_WRAP_T 0x2803 619848b8605Smrg#define GL_TEXTURE_MAG_FILTER 0x2800 620848b8605Smrg#define GL_TEXTURE_MIN_FILTER 0x2801 621848b8605Smrg#define GL_TEXTURE_ENV_COLOR 0x2201 622848b8605Smrg#define GL_TEXTURE_GEN_S 0x0C60 623848b8605Smrg#define GL_TEXTURE_GEN_T 0x0C61 624848b8605Smrg#define GL_TEXTURE_GEN_R 0x0C62 625848b8605Smrg#define GL_TEXTURE_GEN_Q 0x0C63 626848b8605Smrg#define GL_TEXTURE_GEN_MODE 0x2500 627848b8605Smrg#define GL_TEXTURE_BORDER_COLOR 0x1004 628848b8605Smrg#define GL_TEXTURE_WIDTH 0x1000 629848b8605Smrg#define GL_TEXTURE_HEIGHT 0x1001 630848b8605Smrg#define GL_TEXTURE_BORDER 0x1005 631848b8605Smrg#define GL_TEXTURE_COMPONENTS 0x1003 632848b8605Smrg#define GL_TEXTURE_RED_SIZE 0x805C 633848b8605Smrg#define GL_TEXTURE_GREEN_SIZE 0x805D 634848b8605Smrg#define GL_TEXTURE_BLUE_SIZE 0x805E 635848b8605Smrg#define GL_TEXTURE_ALPHA_SIZE 0x805F 636848b8605Smrg#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 637848b8605Smrg#define GL_TEXTURE_INTENSITY_SIZE 0x8061 638848b8605Smrg#define GL_NEAREST_MIPMAP_NEAREST 0x2700 639848b8605Smrg#define GL_NEAREST_MIPMAP_LINEAR 0x2702 640848b8605Smrg#define GL_LINEAR_MIPMAP_NEAREST 0x2701 641848b8605Smrg#define GL_LINEAR_MIPMAP_LINEAR 0x2703 642848b8605Smrg#define GL_OBJECT_LINEAR 0x2401 643848b8605Smrg#define GL_OBJECT_PLANE 0x2501 644848b8605Smrg#define GL_EYE_LINEAR 0x2400 645848b8605Smrg#define GL_EYE_PLANE 0x2502 646848b8605Smrg#define GL_SPHERE_MAP 0x2402 647848b8605Smrg#define GL_DECAL 0x2101 648848b8605Smrg#define GL_MODULATE 0x2100 649848b8605Smrg#define GL_NEAREST 0x2600 650848b8605Smrg#define GL_REPEAT 0x2901 651848b8605Smrg#define GL_CLAMP 0x2900 652848b8605Smrg#define GL_S 0x2000 653848b8605Smrg#define GL_T 0x2001 654848b8605Smrg#define GL_R 0x2002 655848b8605Smrg#define GL_Q 0x2003 656848b8605Smrg 657848b8605Smrg/* Utility */ 658848b8605Smrg#define GL_VENDOR 0x1F00 659848b8605Smrg#define GL_RENDERER 0x1F01 660848b8605Smrg#define GL_VERSION 0x1F02 661848b8605Smrg#define GL_EXTENSIONS 0x1F03 662848b8605Smrg 663848b8605Smrg/* Errors */ 664848b8605Smrg#define GL_NO_ERROR 0 665848b8605Smrg#define GL_INVALID_ENUM 0x0500 666848b8605Smrg#define GL_INVALID_VALUE 0x0501 667848b8605Smrg#define GL_INVALID_OPERATION 0x0502 668848b8605Smrg#define GL_STACK_OVERFLOW 0x0503 669848b8605Smrg#define GL_STACK_UNDERFLOW 0x0504 670848b8605Smrg#define GL_OUT_OF_MEMORY 0x0505 671848b8605Smrg 672848b8605Smrg/* glPush/PopAttrib bits */ 673848b8605Smrg#define GL_CURRENT_BIT 0x00000001 674848b8605Smrg#define GL_POINT_BIT 0x00000002 675848b8605Smrg#define GL_LINE_BIT 0x00000004 676848b8605Smrg#define GL_POLYGON_BIT 0x00000008 677848b8605Smrg#define GL_POLYGON_STIPPLE_BIT 0x00000010 678848b8605Smrg#define GL_PIXEL_MODE_BIT 0x00000020 679848b8605Smrg#define GL_LIGHTING_BIT 0x00000040 680848b8605Smrg#define GL_FOG_BIT 0x00000080 681848b8605Smrg#define GL_DEPTH_BUFFER_BIT 0x00000100 682848b8605Smrg#define GL_ACCUM_BUFFER_BIT 0x00000200 683848b8605Smrg#define GL_STENCIL_BUFFER_BIT 0x00000400 684848b8605Smrg#define GL_VIEWPORT_BIT 0x00000800 685848b8605Smrg#define GL_TRANSFORM_BIT 0x00001000 686848b8605Smrg#define GL_ENABLE_BIT 0x00002000 687848b8605Smrg#define GL_COLOR_BUFFER_BIT 0x00004000 688848b8605Smrg#define GL_HINT_BIT 0x00008000 689848b8605Smrg#define GL_EVAL_BIT 0x00010000 690848b8605Smrg#define GL_LIST_BIT 0x00020000 691848b8605Smrg#define GL_TEXTURE_BIT 0x00040000 692848b8605Smrg#define GL_SCISSOR_BIT 0x00080000 693848b8605Smrg#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF 694848b8605Smrg 695848b8605Smrg 696848b8605Smrg/* OpenGL 1.1 */ 697848b8605Smrg#define GL_PROXY_TEXTURE_1D 0x8063 698848b8605Smrg#define GL_PROXY_TEXTURE_2D 0x8064 699848b8605Smrg#define GL_TEXTURE_PRIORITY 0x8066 700848b8605Smrg#define GL_TEXTURE_RESIDENT 0x8067 701848b8605Smrg#define GL_TEXTURE_BINDING_1D 0x8068 702848b8605Smrg#define GL_TEXTURE_BINDING_2D 0x8069 703848b8605Smrg#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 704848b8605Smrg#define GL_ALPHA4 0x803B 705848b8605Smrg#define GL_ALPHA8 0x803C 706848b8605Smrg#define GL_ALPHA12 0x803D 707848b8605Smrg#define GL_ALPHA16 0x803E 708848b8605Smrg#define GL_LUMINANCE4 0x803F 709848b8605Smrg#define GL_LUMINANCE8 0x8040 710848b8605Smrg#define GL_LUMINANCE12 0x8041 711848b8605Smrg#define GL_LUMINANCE16 0x8042 712848b8605Smrg#define GL_LUMINANCE4_ALPHA4 0x8043 713848b8605Smrg#define GL_LUMINANCE6_ALPHA2 0x8044 714848b8605Smrg#define GL_LUMINANCE8_ALPHA8 0x8045 715848b8605Smrg#define GL_LUMINANCE12_ALPHA4 0x8046 716848b8605Smrg#define GL_LUMINANCE12_ALPHA12 0x8047 717848b8605Smrg#define GL_LUMINANCE16_ALPHA16 0x8048 718848b8605Smrg#define GL_INTENSITY 0x8049 719848b8605Smrg#define GL_INTENSITY4 0x804A 720848b8605Smrg#define GL_INTENSITY8 0x804B 721848b8605Smrg#define GL_INTENSITY12 0x804C 722848b8605Smrg#define GL_INTENSITY16 0x804D 723848b8605Smrg#define GL_R3_G3_B2 0x2A10 724848b8605Smrg#define GL_RGB4 0x804F 725848b8605Smrg#define GL_RGB5 0x8050 726848b8605Smrg#define GL_RGB8 0x8051 727848b8605Smrg#define GL_RGB10 0x8052 728848b8605Smrg#define GL_RGB12 0x8053 729848b8605Smrg#define GL_RGB16 0x8054 730848b8605Smrg#define GL_RGBA2 0x8055 731848b8605Smrg#define GL_RGBA4 0x8056 732848b8605Smrg#define GL_RGB5_A1 0x8057 733848b8605Smrg#define GL_RGBA8 0x8058 734848b8605Smrg#define GL_RGB10_A2 0x8059 735848b8605Smrg#define GL_RGBA12 0x805A 736848b8605Smrg#define GL_RGBA16 0x805B 737848b8605Smrg#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 738848b8605Smrg#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 739848b8605Smrg#define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFFF 740848b8605Smrg#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF 741848b8605Smrg 742848b8605Smrg 743848b8605Smrg 744848b8605Smrg/* 745848b8605Smrg * Miscellaneous 746848b8605Smrg */ 747848b8605Smrg 748848b8605SmrgGLAPI void GLAPIENTRY glClearIndex( GLfloat c ); 749848b8605Smrg 750848b8605SmrgGLAPI void GLAPIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ); 751848b8605Smrg 752848b8605SmrgGLAPI void GLAPIENTRY glClear( GLbitfield mask ); 753848b8605Smrg 754848b8605SmrgGLAPI void GLAPIENTRY glIndexMask( GLuint mask ); 755848b8605Smrg 756848b8605SmrgGLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha ); 757848b8605Smrg 758848b8605SmrgGLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref ); 759848b8605Smrg 760848b8605SmrgGLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor ); 761848b8605Smrg 762848b8605SmrgGLAPI void GLAPIENTRY glLogicOp( GLenum opcode ); 763848b8605Smrg 764848b8605SmrgGLAPI void GLAPIENTRY glCullFace( GLenum mode ); 765848b8605Smrg 766848b8605SmrgGLAPI void GLAPIENTRY glFrontFace( GLenum mode ); 767848b8605Smrg 768848b8605SmrgGLAPI void GLAPIENTRY glPointSize( GLfloat size ); 769848b8605Smrg 770848b8605SmrgGLAPI void GLAPIENTRY glLineWidth( GLfloat width ); 771848b8605Smrg 772848b8605SmrgGLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern ); 773848b8605Smrg 774848b8605SmrgGLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode ); 775848b8605Smrg 776848b8605SmrgGLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units ); 777848b8605Smrg 778848b8605SmrgGLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask ); 779848b8605Smrg 780848b8605SmrgGLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask ); 781848b8605Smrg 782848b8605SmrgGLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag ); 783848b8605Smrg 784848b8605SmrgGLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag ); 785848b8605Smrg 786848b8605SmrgGLAPI void GLAPIENTRY glScissor( GLint x, GLint y, GLsizei width, GLsizei height); 787848b8605Smrg 788848b8605SmrgGLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation ); 789848b8605Smrg 790848b8605SmrgGLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation ); 791848b8605Smrg 792848b8605SmrgGLAPI void GLAPIENTRY glDrawBuffer( GLenum mode ); 793848b8605Smrg 794848b8605SmrgGLAPI void GLAPIENTRY glReadBuffer( GLenum mode ); 795848b8605Smrg 796848b8605SmrgGLAPI void GLAPIENTRY glEnable( GLenum cap ); 797848b8605Smrg 798848b8605SmrgGLAPI void GLAPIENTRY glDisable( GLenum cap ); 799848b8605Smrg 800848b8605SmrgGLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap ); 801848b8605Smrg 802848b8605Smrg 803848b8605SmrgGLAPI void GLAPIENTRY glEnableClientState( GLenum cap ); /* 1.1 */ 804848b8605Smrg 805848b8605SmrgGLAPI void GLAPIENTRY glDisableClientState( GLenum cap ); /* 1.1 */ 806848b8605Smrg 807848b8605Smrg 808848b8605SmrgGLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params ); 809848b8605Smrg 810848b8605SmrgGLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params ); 811848b8605Smrg 812848b8605SmrgGLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params ); 813848b8605Smrg 814848b8605SmrgGLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params ); 815848b8605Smrg 816848b8605Smrg 817848b8605SmrgGLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask ); 818848b8605Smrg 819848b8605SmrgGLAPI void GLAPIENTRY glPopAttrib( void ); 820848b8605Smrg 821848b8605Smrg 822848b8605SmrgGLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask ); /* 1.1 */ 823848b8605Smrg 824848b8605SmrgGLAPI void GLAPIENTRY glPopClientAttrib( void ); /* 1.1 */ 825848b8605Smrg 826848b8605Smrg 827848b8605SmrgGLAPI GLint GLAPIENTRY glRenderMode( GLenum mode ); 828848b8605Smrg 829848b8605SmrgGLAPI GLenum GLAPIENTRY glGetError( void ); 830848b8605Smrg 831848b8605SmrgGLAPI const GLubyte * GLAPIENTRY glGetString( GLenum name ); 832848b8605Smrg 833848b8605SmrgGLAPI void GLAPIENTRY glFinish( void ); 834848b8605Smrg 835848b8605SmrgGLAPI void GLAPIENTRY glFlush( void ); 836848b8605Smrg 837848b8605SmrgGLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode ); 838848b8605Smrg 839848b8605Smrg 840848b8605Smrg/* 841848b8605Smrg * Depth Buffer 842848b8605Smrg */ 843848b8605Smrg 844848b8605SmrgGLAPI void GLAPIENTRY glClearDepth( GLclampd depth ); 845848b8605Smrg 846848b8605SmrgGLAPI void GLAPIENTRY glDepthFunc( GLenum func ); 847848b8605Smrg 848848b8605SmrgGLAPI void GLAPIENTRY glDepthMask( GLboolean flag ); 849848b8605Smrg 850848b8605SmrgGLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val ); 851848b8605Smrg 852848b8605Smrg 853848b8605Smrg/* 854848b8605Smrg * Accumulation Buffer 855848b8605Smrg */ 856848b8605Smrg 857848b8605SmrgGLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ); 858848b8605Smrg 859848b8605SmrgGLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value ); 860848b8605Smrg 861848b8605Smrg 862848b8605Smrg/* 863848b8605Smrg * Transformation 864848b8605Smrg */ 865848b8605Smrg 866848b8605SmrgGLAPI void GLAPIENTRY glMatrixMode( GLenum mode ); 867848b8605Smrg 868848b8605SmrgGLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right, 869848b8605Smrg GLdouble bottom, GLdouble top, 870848b8605Smrg GLdouble near_val, GLdouble far_val ); 871848b8605Smrg 872848b8605SmrgGLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right, 873848b8605Smrg GLdouble bottom, GLdouble top, 874848b8605Smrg GLdouble near_val, GLdouble far_val ); 875848b8605Smrg 876848b8605SmrgGLAPI void GLAPIENTRY glViewport( GLint x, GLint y, 877848b8605Smrg GLsizei width, GLsizei height ); 878848b8605Smrg 879848b8605SmrgGLAPI void GLAPIENTRY glPushMatrix( void ); 880848b8605Smrg 881848b8605SmrgGLAPI void GLAPIENTRY glPopMatrix( void ); 882848b8605Smrg 883848b8605SmrgGLAPI void GLAPIENTRY glLoadIdentity( void ); 884848b8605Smrg 885848b8605SmrgGLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m ); 886848b8605SmrgGLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m ); 887848b8605Smrg 888848b8605SmrgGLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m ); 889848b8605SmrgGLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m ); 890848b8605Smrg 891848b8605SmrgGLAPI void GLAPIENTRY glRotated( GLdouble angle, 892848b8605Smrg GLdouble x, GLdouble y, GLdouble z ); 893848b8605SmrgGLAPI void GLAPIENTRY glRotatef( GLfloat angle, 894848b8605Smrg GLfloat x, GLfloat y, GLfloat z ); 895848b8605Smrg 896848b8605SmrgGLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z ); 897848b8605SmrgGLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z ); 898848b8605Smrg 899848b8605SmrgGLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z ); 900848b8605SmrgGLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z ); 901848b8605Smrg 902848b8605Smrg 903848b8605Smrg/* 904848b8605Smrg * Display Lists 905848b8605Smrg */ 906848b8605Smrg 907848b8605SmrgGLAPI GLboolean GLAPIENTRY glIsList( GLuint list ); 908848b8605Smrg 909848b8605SmrgGLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range ); 910848b8605Smrg 911848b8605SmrgGLAPI GLuint GLAPIENTRY glGenLists( GLsizei range ); 912848b8605Smrg 913848b8605SmrgGLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode ); 914848b8605Smrg 915848b8605SmrgGLAPI void GLAPIENTRY glEndList( void ); 916848b8605Smrg 917848b8605SmrgGLAPI void GLAPIENTRY glCallList( GLuint list ); 918848b8605Smrg 919848b8605SmrgGLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type, 920848b8605Smrg const GLvoid *lists ); 921848b8605Smrg 922848b8605SmrgGLAPI void GLAPIENTRY glListBase( GLuint base ); 923848b8605Smrg 924848b8605Smrg 925848b8605Smrg/* 926848b8605Smrg * Drawing Functions 927848b8605Smrg */ 928848b8605Smrg 929848b8605SmrgGLAPI void GLAPIENTRY glBegin( GLenum mode ); 930848b8605Smrg 931848b8605SmrgGLAPI void GLAPIENTRY glEnd( void ); 932848b8605Smrg 933848b8605Smrg 934848b8605SmrgGLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y ); 935848b8605SmrgGLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y ); 936848b8605SmrgGLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y ); 937848b8605SmrgGLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y ); 938848b8605Smrg 939848b8605SmrgGLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z ); 940848b8605SmrgGLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z ); 941848b8605SmrgGLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z ); 942848b8605SmrgGLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z ); 943848b8605Smrg 944848b8605SmrgGLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ); 945848b8605SmrgGLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); 946848b8605SmrgGLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w ); 947848b8605SmrgGLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w ); 948848b8605Smrg 949848b8605SmrgGLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v ); 950848b8605SmrgGLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v ); 951848b8605SmrgGLAPI void GLAPIENTRY glVertex2iv( const GLint *v ); 952848b8605SmrgGLAPI void GLAPIENTRY glVertex2sv( const GLshort *v ); 953848b8605Smrg 954848b8605SmrgGLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v ); 955848b8605SmrgGLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v ); 956848b8605SmrgGLAPI void GLAPIENTRY glVertex3iv( const GLint *v ); 957848b8605SmrgGLAPI void GLAPIENTRY glVertex3sv( const GLshort *v ); 958848b8605Smrg 959848b8605SmrgGLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v ); 960848b8605SmrgGLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v ); 961848b8605SmrgGLAPI void GLAPIENTRY glVertex4iv( const GLint *v ); 962848b8605SmrgGLAPI void GLAPIENTRY glVertex4sv( const GLshort *v ); 963848b8605Smrg 964848b8605Smrg 965848b8605SmrgGLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz ); 966848b8605SmrgGLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz ); 967848b8605SmrgGLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz ); 968848b8605SmrgGLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz ); 969848b8605SmrgGLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz ); 970848b8605Smrg 971848b8605SmrgGLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v ); 972848b8605SmrgGLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v ); 973848b8605SmrgGLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v ); 974848b8605SmrgGLAPI void GLAPIENTRY glNormal3iv( const GLint *v ); 975848b8605SmrgGLAPI void GLAPIENTRY glNormal3sv( const GLshort *v ); 976848b8605Smrg 977848b8605Smrg 978848b8605SmrgGLAPI void GLAPIENTRY glIndexd( GLdouble c ); 979848b8605SmrgGLAPI void GLAPIENTRY glIndexf( GLfloat c ); 980848b8605SmrgGLAPI void GLAPIENTRY glIndexi( GLint c ); 981848b8605SmrgGLAPI void GLAPIENTRY glIndexs( GLshort c ); 982848b8605SmrgGLAPI void GLAPIENTRY glIndexub( GLubyte c ); /* 1.1 */ 983848b8605Smrg 984848b8605SmrgGLAPI void GLAPIENTRY glIndexdv( const GLdouble *c ); 985848b8605SmrgGLAPI void GLAPIENTRY glIndexfv( const GLfloat *c ); 986848b8605SmrgGLAPI void GLAPIENTRY glIndexiv( const GLint *c ); 987848b8605SmrgGLAPI void GLAPIENTRY glIndexsv( const GLshort *c ); 988848b8605SmrgGLAPI void GLAPIENTRY glIndexubv( const GLubyte *c ); /* 1.1 */ 989848b8605Smrg 990848b8605SmrgGLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue ); 991848b8605SmrgGLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue ); 992848b8605SmrgGLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue ); 993848b8605SmrgGLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue ); 994848b8605SmrgGLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue ); 995848b8605SmrgGLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue ); 996848b8605SmrgGLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue ); 997848b8605SmrgGLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue ); 998848b8605Smrg 999848b8605SmrgGLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green, 1000848b8605Smrg GLbyte blue, GLbyte alpha ); 1001848b8605SmrgGLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green, 1002848b8605Smrg GLdouble blue, GLdouble alpha ); 1003848b8605SmrgGLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green, 1004848b8605Smrg GLfloat blue, GLfloat alpha ); 1005848b8605SmrgGLAPI void GLAPIENTRY glColor4i( GLint red, GLint green, 1006848b8605Smrg GLint blue, GLint alpha ); 1007848b8605SmrgGLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green, 1008848b8605Smrg GLshort blue, GLshort alpha ); 1009848b8605SmrgGLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green, 1010848b8605Smrg GLubyte blue, GLubyte alpha ); 1011848b8605SmrgGLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green, 1012848b8605Smrg GLuint blue, GLuint alpha ); 1013848b8605SmrgGLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green, 1014848b8605Smrg GLushort blue, GLushort alpha ); 1015848b8605Smrg 1016848b8605Smrg 1017848b8605SmrgGLAPI void GLAPIENTRY glColor3bv( const GLbyte *v ); 1018848b8605SmrgGLAPI void GLAPIENTRY glColor3dv( const GLdouble *v ); 1019848b8605SmrgGLAPI void GLAPIENTRY glColor3fv( const GLfloat *v ); 1020848b8605SmrgGLAPI void GLAPIENTRY glColor3iv( const GLint *v ); 1021848b8605SmrgGLAPI void GLAPIENTRY glColor3sv( const GLshort *v ); 1022848b8605SmrgGLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v ); 1023848b8605SmrgGLAPI void GLAPIENTRY glColor3uiv( const GLuint *v ); 1024848b8605SmrgGLAPI void GLAPIENTRY glColor3usv( const GLushort *v ); 1025848b8605Smrg 1026848b8605SmrgGLAPI void GLAPIENTRY glColor4bv( const GLbyte *v ); 1027848b8605SmrgGLAPI void GLAPIENTRY glColor4dv( const GLdouble *v ); 1028848b8605SmrgGLAPI void GLAPIENTRY glColor4fv( const GLfloat *v ); 1029848b8605SmrgGLAPI void GLAPIENTRY glColor4iv( const GLint *v ); 1030848b8605SmrgGLAPI void GLAPIENTRY glColor4sv( const GLshort *v ); 1031848b8605SmrgGLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v ); 1032848b8605SmrgGLAPI void GLAPIENTRY glColor4uiv( const GLuint *v ); 1033848b8605SmrgGLAPI void GLAPIENTRY glColor4usv( const GLushort *v ); 1034848b8605Smrg 1035848b8605Smrg 1036848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1d( GLdouble s ); 1037848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1f( GLfloat s ); 1038848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1i( GLint s ); 1039848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1s( GLshort s ); 1040848b8605Smrg 1041848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t ); 1042848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t ); 1043848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t ); 1044848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t ); 1045848b8605Smrg 1046848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r ); 1047848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r ); 1048848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r ); 1049848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r ); 1050848b8605Smrg 1051848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q ); 1052848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q ); 1053848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q ); 1054848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q ); 1055848b8605Smrg 1056848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v ); 1057848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v ); 1058848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v ); 1059848b8605SmrgGLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v ); 1060848b8605Smrg 1061848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v ); 1062848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v ); 1063848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v ); 1064848b8605SmrgGLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v ); 1065848b8605Smrg 1066848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v ); 1067848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v ); 1068848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v ); 1069848b8605SmrgGLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v ); 1070848b8605Smrg 1071848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v ); 1072848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v ); 1073848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v ); 1074848b8605SmrgGLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v ); 1075848b8605Smrg 1076848b8605Smrg 1077848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y ); 1078848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y ); 1079848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y ); 1080848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y ); 1081848b8605Smrg 1082848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z ); 1083848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z ); 1084848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z ); 1085848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z ); 1086848b8605Smrg 1087848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ); 1088848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); 1089848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w ); 1090848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w ); 1091848b8605Smrg 1092848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v ); 1093848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v ); 1094848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v ); 1095848b8605SmrgGLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v ); 1096848b8605Smrg 1097848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v ); 1098848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v ); 1099848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v ); 1100848b8605SmrgGLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v ); 1101848b8605Smrg 1102848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v ); 1103848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v ); 1104848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v ); 1105848b8605SmrgGLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v ); 1106848b8605Smrg 1107848b8605Smrg 1108848b8605SmrgGLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 ); 1109848b8605SmrgGLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ); 1110848b8605SmrgGLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 ); 1111848b8605SmrgGLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 ); 1112848b8605Smrg 1113848b8605Smrg 1114848b8605SmrgGLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 ); 1115848b8605SmrgGLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 ); 1116848b8605SmrgGLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 ); 1117848b8605SmrgGLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 ); 1118848b8605Smrg 1119848b8605Smrg 1120848b8605Smrg/* 1121848b8605Smrg * Vertex Arrays (1.1) 1122848b8605Smrg */ 1123848b8605Smrg 1124848b8605SmrgGLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type, 1125848b8605Smrg GLsizei stride, const GLvoid *ptr ); 1126848b8605Smrg 1127848b8605SmrgGLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride, 1128848b8605Smrg const GLvoid *ptr ); 1129848b8605Smrg 1130848b8605SmrgGLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type, 1131848b8605Smrg GLsizei stride, const GLvoid *ptr ); 1132848b8605Smrg 1133848b8605SmrgGLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride, 1134848b8605Smrg const GLvoid *ptr ); 1135848b8605Smrg 1136848b8605SmrgGLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type, 1137848b8605Smrg GLsizei stride, const GLvoid *ptr ); 1138848b8605Smrg 1139848b8605SmrgGLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr ); 1140848b8605Smrg 1141848b8605SmrgGLAPI void GLAPIENTRY glGetPointerv( GLenum pname, GLvoid **params ); 1142848b8605Smrg 1143848b8605SmrgGLAPI void GLAPIENTRY glArrayElement( GLint i ); 1144848b8605Smrg 1145848b8605SmrgGLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count ); 1146848b8605Smrg 1147848b8605SmrgGLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count, 1148848b8605Smrg GLenum type, const GLvoid *indices ); 1149848b8605Smrg 1150848b8605SmrgGLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride, 1151848b8605Smrg const GLvoid *pointer ); 1152848b8605Smrg 1153848b8605Smrg/* 1154848b8605Smrg * Lighting 1155848b8605Smrg */ 1156848b8605Smrg 1157848b8605SmrgGLAPI void GLAPIENTRY glShadeModel( GLenum mode ); 1158848b8605Smrg 1159848b8605SmrgGLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param ); 1160848b8605SmrgGLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param ); 1161848b8605SmrgGLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname, 1162848b8605Smrg const GLfloat *params ); 1163848b8605SmrgGLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname, 1164848b8605Smrg const GLint *params ); 1165848b8605Smrg 1166848b8605SmrgGLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname, 1167848b8605Smrg GLfloat *params ); 1168848b8605SmrgGLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname, 1169848b8605Smrg GLint *params ); 1170848b8605Smrg 1171848b8605SmrgGLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param ); 1172848b8605SmrgGLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param ); 1173848b8605SmrgGLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params ); 1174848b8605SmrgGLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params ); 1175848b8605Smrg 1176848b8605SmrgGLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param ); 1177848b8605SmrgGLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param ); 1178848b8605SmrgGLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params ); 1179848b8605SmrgGLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params ); 1180848b8605Smrg 1181848b8605SmrgGLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params ); 1182848b8605SmrgGLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params ); 1183848b8605Smrg 1184848b8605SmrgGLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode ); 1185848b8605Smrg 1186848b8605Smrg 1187848b8605Smrg/* 1188848b8605Smrg * Raster functions 1189848b8605Smrg */ 1190848b8605Smrg 1191848b8605SmrgGLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor ); 1192848b8605Smrg 1193848b8605SmrgGLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param ); 1194848b8605SmrgGLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param ); 1195848b8605Smrg 1196848b8605SmrgGLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param ); 1197848b8605SmrgGLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param ); 1198848b8605Smrg 1199848b8605SmrgGLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLsizei mapsize, 1200848b8605Smrg const GLfloat *values ); 1201848b8605SmrgGLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLsizei mapsize, 1202848b8605Smrg const GLuint *values ); 1203848b8605SmrgGLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLsizei mapsize, 1204848b8605Smrg const GLushort *values ); 1205848b8605Smrg 1206848b8605SmrgGLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values ); 1207848b8605SmrgGLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values ); 1208848b8605SmrgGLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values ); 1209848b8605Smrg 1210848b8605SmrgGLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height, 1211848b8605Smrg GLfloat xorig, GLfloat yorig, 1212848b8605Smrg GLfloat xmove, GLfloat ymove, 1213848b8605Smrg const GLubyte *bitmap ); 1214848b8605Smrg 1215848b8605SmrgGLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y, 1216848b8605Smrg GLsizei width, GLsizei height, 1217848b8605Smrg GLenum format, GLenum type, 1218848b8605Smrg GLvoid *pixels ); 1219848b8605Smrg 1220848b8605SmrgGLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height, 1221848b8605Smrg GLenum format, GLenum type, 1222848b8605Smrg const GLvoid *pixels ); 1223848b8605Smrg 1224848b8605SmrgGLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y, 1225848b8605Smrg GLsizei width, GLsizei height, 1226848b8605Smrg GLenum type ); 1227848b8605Smrg 1228848b8605Smrg/* 1229848b8605Smrg * Stenciling 1230848b8605Smrg */ 1231848b8605Smrg 1232848b8605SmrgGLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask ); 1233848b8605Smrg 1234848b8605SmrgGLAPI void GLAPIENTRY glStencilMask( GLuint mask ); 1235848b8605Smrg 1236848b8605SmrgGLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass ); 1237848b8605Smrg 1238848b8605SmrgGLAPI void GLAPIENTRY glClearStencil( GLint s ); 1239848b8605Smrg 1240848b8605Smrg 1241848b8605Smrg 1242848b8605Smrg/* 1243848b8605Smrg * Texture mapping 1244848b8605Smrg */ 1245848b8605Smrg 1246848b8605SmrgGLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param ); 1247848b8605SmrgGLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param ); 1248848b8605SmrgGLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param ); 1249848b8605Smrg 1250848b8605SmrgGLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params ); 1251848b8605SmrgGLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params ); 1252848b8605SmrgGLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params ); 1253848b8605Smrg 1254848b8605SmrgGLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params ); 1255848b8605SmrgGLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params ); 1256848b8605SmrgGLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params ); 1257848b8605Smrg 1258848b8605Smrg 1259848b8605SmrgGLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param ); 1260848b8605SmrgGLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param ); 1261848b8605Smrg 1262848b8605SmrgGLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params ); 1263848b8605SmrgGLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params ); 1264848b8605Smrg 1265848b8605SmrgGLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params ); 1266848b8605SmrgGLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params ); 1267848b8605Smrg 1268848b8605Smrg 1269848b8605SmrgGLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param ); 1270848b8605SmrgGLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param ); 1271848b8605Smrg 1272848b8605SmrgGLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname, 1273848b8605Smrg const GLfloat *params ); 1274848b8605SmrgGLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname, 1275848b8605Smrg const GLint *params ); 1276848b8605Smrg 1277848b8605SmrgGLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target, 1278848b8605Smrg GLenum pname, GLfloat *params); 1279848b8605SmrgGLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target, 1280848b8605Smrg GLenum pname, GLint *params ); 1281848b8605Smrg 1282848b8605SmrgGLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level, 1283848b8605Smrg GLenum pname, GLfloat *params ); 1284848b8605SmrgGLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level, 1285848b8605Smrg GLenum pname, GLint *params ); 1286848b8605Smrg 1287848b8605Smrg 1288848b8605SmrgGLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level, 1289848b8605Smrg GLint internalFormat, 1290848b8605Smrg GLsizei width, GLint border, 1291848b8605Smrg GLenum format, GLenum type, 1292848b8605Smrg const GLvoid *pixels ); 1293848b8605Smrg 1294848b8605SmrgGLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level, 1295848b8605Smrg GLint internalFormat, 1296848b8605Smrg GLsizei width, GLsizei height, 1297848b8605Smrg GLint border, GLenum format, GLenum type, 1298848b8605Smrg const GLvoid *pixels ); 1299848b8605Smrg 1300848b8605SmrgGLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level, 1301848b8605Smrg GLenum format, GLenum type, 1302848b8605Smrg GLvoid *pixels ); 1303848b8605Smrg 1304848b8605Smrg 1305848b8605Smrg/* 1.1 functions */ 1306848b8605Smrg 1307848b8605SmrgGLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); 1308848b8605Smrg 1309848b8605SmrgGLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); 1310848b8605Smrg 1311848b8605SmrgGLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture ); 1312848b8605Smrg 1313848b8605SmrgGLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n, 1314848b8605Smrg const GLuint *textures, 1315848b8605Smrg const GLclampf *priorities ); 1316848b8605Smrg 1317848b8605SmrgGLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n, 1318848b8605Smrg const GLuint *textures, 1319848b8605Smrg GLboolean *residences ); 1320848b8605Smrg 1321848b8605SmrgGLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture ); 1322848b8605Smrg 1323848b8605Smrg 1324848b8605SmrgGLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level, 1325848b8605Smrg GLint xoffset, 1326848b8605Smrg GLsizei width, GLenum format, 1327848b8605Smrg GLenum type, const GLvoid *pixels ); 1328848b8605Smrg 1329848b8605Smrg 1330848b8605SmrgGLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level, 1331848b8605Smrg GLint xoffset, GLint yoffset, 1332848b8605Smrg GLsizei width, GLsizei height, 1333848b8605Smrg GLenum format, GLenum type, 1334848b8605Smrg const GLvoid *pixels ); 1335848b8605Smrg 1336848b8605Smrg 1337848b8605SmrgGLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level, 1338848b8605Smrg GLenum internalformat, 1339848b8605Smrg GLint x, GLint y, 1340848b8605Smrg GLsizei width, GLint border ); 1341848b8605Smrg 1342848b8605Smrg 1343848b8605SmrgGLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level, 1344848b8605Smrg GLenum internalformat, 1345848b8605Smrg GLint x, GLint y, 1346848b8605Smrg GLsizei width, GLsizei height, 1347848b8605Smrg GLint border ); 1348848b8605Smrg 1349848b8605Smrg 1350848b8605SmrgGLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level, 1351848b8605Smrg GLint xoffset, GLint x, GLint y, 1352848b8605Smrg GLsizei width ); 1353848b8605Smrg 1354848b8605Smrg 1355848b8605SmrgGLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level, 1356848b8605Smrg GLint xoffset, GLint yoffset, 1357848b8605Smrg GLint x, GLint y, 1358848b8605Smrg GLsizei width, GLsizei height ); 1359848b8605Smrg 1360848b8605Smrg 1361848b8605Smrg/* 1362848b8605Smrg * Evaluators 1363848b8605Smrg */ 1364848b8605Smrg 1365848b8605SmrgGLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2, 1366848b8605Smrg GLint stride, 1367848b8605Smrg GLint order, const GLdouble *points ); 1368848b8605SmrgGLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2, 1369848b8605Smrg GLint stride, 1370848b8605Smrg GLint order, const GLfloat *points ); 1371848b8605Smrg 1372848b8605SmrgGLAPI void GLAPIENTRY glMap2d( GLenum target, 1373848b8605Smrg GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, 1374848b8605Smrg GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, 1375848b8605Smrg const GLdouble *points ); 1376848b8605SmrgGLAPI void GLAPIENTRY glMap2f( GLenum target, 1377848b8605Smrg GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, 1378848b8605Smrg GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, 1379848b8605Smrg const GLfloat *points ); 1380848b8605Smrg 1381848b8605SmrgGLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v ); 1382848b8605SmrgGLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v ); 1383848b8605SmrgGLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v ); 1384848b8605Smrg 1385848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u ); 1386848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u ); 1387848b8605Smrg 1388848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u ); 1389848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u ); 1390848b8605Smrg 1391848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v ); 1392848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v ); 1393848b8605Smrg 1394848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u ); 1395848b8605SmrgGLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u ); 1396848b8605Smrg 1397848b8605SmrgGLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 ); 1398848b8605SmrgGLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 ); 1399848b8605Smrg 1400848b8605SmrgGLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2, 1401848b8605Smrg GLint vn, GLdouble v1, GLdouble v2 ); 1402848b8605SmrgGLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2, 1403848b8605Smrg GLint vn, GLfloat v1, GLfloat v2 ); 1404848b8605Smrg 1405848b8605SmrgGLAPI void GLAPIENTRY glEvalPoint1( GLint i ); 1406848b8605Smrg 1407848b8605SmrgGLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j ); 1408848b8605Smrg 1409848b8605SmrgGLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 ); 1410848b8605Smrg 1411848b8605SmrgGLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ); 1412848b8605Smrg 1413848b8605Smrg 1414848b8605Smrg/* 1415848b8605Smrg * Fog 1416848b8605Smrg */ 1417848b8605Smrg 1418848b8605SmrgGLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param ); 1419848b8605Smrg 1420848b8605SmrgGLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param ); 1421848b8605Smrg 1422848b8605SmrgGLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params ); 1423848b8605Smrg 1424848b8605SmrgGLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params ); 1425848b8605Smrg 1426848b8605Smrg 1427848b8605Smrg/* 1428848b8605Smrg * Selection and Feedback 1429848b8605Smrg */ 1430848b8605Smrg 1431848b8605SmrgGLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer ); 1432848b8605Smrg 1433848b8605SmrgGLAPI void GLAPIENTRY glPassThrough( GLfloat token ); 1434848b8605Smrg 1435848b8605SmrgGLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer ); 1436848b8605Smrg 1437848b8605SmrgGLAPI void GLAPIENTRY glInitNames( void ); 1438848b8605Smrg 1439848b8605SmrgGLAPI void GLAPIENTRY glLoadName( GLuint name ); 1440848b8605Smrg 1441848b8605SmrgGLAPI void GLAPIENTRY glPushName( GLuint name ); 1442848b8605Smrg 1443848b8605SmrgGLAPI void GLAPIENTRY glPopName( void ); 1444848b8605Smrg 1445848b8605Smrg 1446848b8605Smrg 1447848b8605Smrg/* 1448848b8605Smrg * OpenGL 1.2 1449848b8605Smrg */ 1450848b8605Smrg 1451848b8605Smrg#define GL_RESCALE_NORMAL 0x803A 1452848b8605Smrg#define GL_CLAMP_TO_EDGE 0x812F 1453848b8605Smrg#define GL_MAX_ELEMENTS_VERTICES 0x80E8 1454848b8605Smrg#define GL_MAX_ELEMENTS_INDICES 0x80E9 1455848b8605Smrg#define GL_BGR 0x80E0 1456848b8605Smrg#define GL_BGRA 0x80E1 1457848b8605Smrg#define GL_UNSIGNED_BYTE_3_3_2 0x8032 1458848b8605Smrg#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 1459848b8605Smrg#define GL_UNSIGNED_SHORT_5_6_5 0x8363 1460848b8605Smrg#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 1461848b8605Smrg#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 1462848b8605Smrg#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 1463848b8605Smrg#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 1464848b8605Smrg#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 1465848b8605Smrg#define GL_UNSIGNED_INT_8_8_8_8 0x8035 1466848b8605Smrg#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 1467848b8605Smrg#define GL_UNSIGNED_INT_10_10_10_2 0x8036 1468848b8605Smrg#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 1469848b8605Smrg#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 1470848b8605Smrg#define GL_SINGLE_COLOR 0x81F9 1471848b8605Smrg#define GL_SEPARATE_SPECULAR_COLOR 0x81FA 1472848b8605Smrg#define GL_TEXTURE_MIN_LOD 0x813A 1473848b8605Smrg#define GL_TEXTURE_MAX_LOD 0x813B 1474848b8605Smrg#define GL_TEXTURE_BASE_LEVEL 0x813C 1475848b8605Smrg#define GL_TEXTURE_MAX_LEVEL 0x813D 1476848b8605Smrg#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 1477848b8605Smrg#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 1478848b8605Smrg#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 1479848b8605Smrg#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 1480848b8605Smrg#define GL_ALIASED_POINT_SIZE_RANGE 0x846D 1481848b8605Smrg#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E 1482848b8605Smrg#define GL_PACK_SKIP_IMAGES 0x806B 1483848b8605Smrg#define GL_PACK_IMAGE_HEIGHT 0x806C 1484848b8605Smrg#define GL_UNPACK_SKIP_IMAGES 0x806D 1485848b8605Smrg#define GL_UNPACK_IMAGE_HEIGHT 0x806E 1486848b8605Smrg#define GL_TEXTURE_3D 0x806F 1487848b8605Smrg#define GL_PROXY_TEXTURE_3D 0x8070 1488848b8605Smrg#define GL_TEXTURE_DEPTH 0x8071 1489848b8605Smrg#define GL_TEXTURE_WRAP_R 0x8072 1490848b8605Smrg#define GL_MAX_3D_TEXTURE_SIZE 0x8073 1491848b8605Smrg#define GL_TEXTURE_BINDING_3D 0x806A 1492848b8605Smrg 1493848b8605SmrgGLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start, 1494848b8605Smrg GLuint end, GLsizei count, GLenum type, const GLvoid *indices ); 1495848b8605Smrg 1496848b8605SmrgGLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level, 1497848b8605Smrg GLint internalFormat, 1498848b8605Smrg GLsizei width, GLsizei height, 1499848b8605Smrg GLsizei depth, GLint border, 1500848b8605Smrg GLenum format, GLenum type, 1501848b8605Smrg const GLvoid *pixels ); 1502848b8605Smrg 1503848b8605SmrgGLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level, 1504848b8605Smrg GLint xoffset, GLint yoffset, 1505848b8605Smrg GLint zoffset, GLsizei width, 1506848b8605Smrg GLsizei height, GLsizei depth, 1507848b8605Smrg GLenum format, 1508848b8605Smrg GLenum type, const GLvoid *pixels); 1509848b8605Smrg 1510848b8605SmrgGLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level, 1511848b8605Smrg GLint xoffset, GLint yoffset, 1512848b8605Smrg GLint zoffset, GLint x, 1513848b8605Smrg GLint y, GLsizei width, 1514848b8605Smrg GLsizei height ); 1515848b8605Smrg 1516848b8605Smrgtypedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); 1517848b8605Smrgtypedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 1518848b8605Smrgtypedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); 1519848b8605Smrgtypedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 1520848b8605Smrg 1521848b8605Smrg 1522848b8605Smrg/* 1523848b8605Smrg * GL_ARB_imaging 1524848b8605Smrg */ 1525848b8605Smrg 1526848b8605Smrg#define GL_CONSTANT_COLOR 0x8001 1527848b8605Smrg#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 1528848b8605Smrg#define GL_CONSTANT_ALPHA 0x8003 1529848b8605Smrg#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 1530848b8605Smrg#define GL_COLOR_TABLE 0x80D0 1531848b8605Smrg#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 1532848b8605Smrg#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 1533848b8605Smrg#define GL_PROXY_COLOR_TABLE 0x80D3 1534848b8605Smrg#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 1535848b8605Smrg#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 1536848b8605Smrg#define GL_COLOR_TABLE_SCALE 0x80D6 1537848b8605Smrg#define GL_COLOR_TABLE_BIAS 0x80D7 1538848b8605Smrg#define GL_COLOR_TABLE_FORMAT 0x80D8 1539848b8605Smrg#define GL_COLOR_TABLE_WIDTH 0x80D9 1540848b8605Smrg#define GL_COLOR_TABLE_RED_SIZE 0x80DA 1541848b8605Smrg#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB 1542848b8605Smrg#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC 1543848b8605Smrg#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD 1544848b8605Smrg#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE 1545848b8605Smrg#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF 1546848b8605Smrg#define GL_CONVOLUTION_1D 0x8010 1547848b8605Smrg#define GL_CONVOLUTION_2D 0x8011 1548848b8605Smrg#define GL_SEPARABLE_2D 0x8012 1549848b8605Smrg#define GL_CONVOLUTION_BORDER_MODE 0x8013 1550848b8605Smrg#define GL_CONVOLUTION_FILTER_SCALE 0x8014 1551848b8605Smrg#define GL_CONVOLUTION_FILTER_BIAS 0x8015 1552848b8605Smrg#define GL_REDUCE 0x8016 1553848b8605Smrg#define GL_CONVOLUTION_FORMAT 0x8017 1554848b8605Smrg#define GL_CONVOLUTION_WIDTH 0x8018 1555848b8605Smrg#define GL_CONVOLUTION_HEIGHT 0x8019 1556848b8605Smrg#define GL_MAX_CONVOLUTION_WIDTH 0x801A 1557848b8605Smrg#define GL_MAX_CONVOLUTION_HEIGHT 0x801B 1558848b8605Smrg#define GL_POST_CONVOLUTION_RED_SCALE 0x801C 1559848b8605Smrg#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D 1560848b8605Smrg#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E 1561848b8605Smrg#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F 1562848b8605Smrg#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 1563848b8605Smrg#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 1564848b8605Smrg#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 1565848b8605Smrg#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 1566848b8605Smrg#define GL_CONSTANT_BORDER 0x8151 1567848b8605Smrg#define GL_REPLICATE_BORDER 0x8153 1568848b8605Smrg#define GL_CONVOLUTION_BORDER_COLOR 0x8154 1569848b8605Smrg#define GL_COLOR_MATRIX 0x80B1 1570848b8605Smrg#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 1571848b8605Smrg#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 1572848b8605Smrg#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 1573848b8605Smrg#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 1574848b8605Smrg#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 1575848b8605Smrg#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 1576848b8605Smrg#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 1577848b8605Smrg#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 1578848b8605Smrg#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA 1579848b8605Smrg#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB 1580848b8605Smrg#define GL_HISTOGRAM 0x8024 1581848b8605Smrg#define GL_PROXY_HISTOGRAM 0x8025 1582848b8605Smrg#define GL_HISTOGRAM_WIDTH 0x8026 1583848b8605Smrg#define GL_HISTOGRAM_FORMAT 0x8027 1584848b8605Smrg#define GL_HISTOGRAM_RED_SIZE 0x8028 1585848b8605Smrg#define GL_HISTOGRAM_GREEN_SIZE 0x8029 1586848b8605Smrg#define GL_HISTOGRAM_BLUE_SIZE 0x802A 1587848b8605Smrg#define GL_HISTOGRAM_ALPHA_SIZE 0x802B 1588848b8605Smrg#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C 1589848b8605Smrg#define GL_HISTOGRAM_SINK 0x802D 1590848b8605Smrg#define GL_MINMAX 0x802E 1591848b8605Smrg#define GL_MINMAX_FORMAT 0x802F 1592848b8605Smrg#define GL_MINMAX_SINK 0x8030 1593848b8605Smrg#define GL_TABLE_TOO_LARGE 0x8031 1594848b8605Smrg#define GL_BLEND_EQUATION 0x8009 1595848b8605Smrg#define GL_MIN 0x8007 1596848b8605Smrg#define GL_MAX 0x8008 1597848b8605Smrg#define GL_FUNC_ADD 0x8006 1598848b8605Smrg#define GL_FUNC_SUBTRACT 0x800A 1599848b8605Smrg#define GL_FUNC_REVERSE_SUBTRACT 0x800B 1600848b8605Smrg#define GL_BLEND_COLOR 0x8005 1601848b8605Smrg 1602848b8605Smrg 1603848b8605SmrgGLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat, 1604848b8605Smrg GLsizei width, GLenum format, 1605848b8605Smrg GLenum type, const GLvoid *table ); 1606848b8605Smrg 1607848b8605SmrgGLAPI void GLAPIENTRY glColorSubTable( GLenum target, 1608848b8605Smrg GLsizei start, GLsizei count, 1609848b8605Smrg GLenum format, GLenum type, 1610848b8605Smrg const GLvoid *data ); 1611848b8605Smrg 1612848b8605SmrgGLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname, 1613848b8605Smrg const GLint *params); 1614848b8605Smrg 1615848b8605SmrgGLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname, 1616848b8605Smrg const GLfloat *params); 1617848b8605Smrg 1618848b8605SmrgGLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start, 1619848b8605Smrg GLint x, GLint y, GLsizei width ); 1620848b8605Smrg 1621848b8605SmrgGLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat, 1622848b8605Smrg GLint x, GLint y, GLsizei width ); 1623848b8605Smrg 1624848b8605SmrgGLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format, 1625848b8605Smrg GLenum type, GLvoid *table ); 1626848b8605Smrg 1627848b8605SmrgGLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname, 1628848b8605Smrg GLfloat *params ); 1629848b8605Smrg 1630848b8605SmrgGLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname, 1631848b8605Smrg GLint *params ); 1632848b8605Smrg 1633848b8605SmrgGLAPI void GLAPIENTRY glBlendEquation( GLenum mode ); 1634848b8605Smrg 1635848b8605SmrgGLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green, 1636848b8605Smrg GLclampf blue, GLclampf alpha ); 1637848b8605Smrg 1638848b8605SmrgGLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width, 1639848b8605Smrg GLenum internalformat, GLboolean sink ); 1640848b8605Smrg 1641848b8605SmrgGLAPI void GLAPIENTRY glResetHistogram( GLenum target ); 1642848b8605Smrg 1643848b8605SmrgGLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset, 1644848b8605Smrg GLenum format, GLenum type, 1645848b8605Smrg GLvoid *values ); 1646848b8605Smrg 1647848b8605SmrgGLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname, 1648848b8605Smrg GLfloat *params ); 1649848b8605Smrg 1650848b8605SmrgGLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname, 1651848b8605Smrg GLint *params ); 1652848b8605Smrg 1653848b8605SmrgGLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat, 1654848b8605Smrg GLboolean sink ); 1655848b8605Smrg 1656848b8605SmrgGLAPI void GLAPIENTRY glResetMinmax( GLenum target ); 1657848b8605Smrg 1658848b8605SmrgGLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset, 1659848b8605Smrg GLenum format, GLenum types, 1660848b8605Smrg GLvoid *values ); 1661848b8605Smrg 1662848b8605SmrgGLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname, 1663848b8605Smrg GLfloat *params ); 1664848b8605Smrg 1665848b8605SmrgGLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname, 1666848b8605Smrg GLint *params ); 1667848b8605Smrg 1668848b8605SmrgGLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target, 1669848b8605Smrg GLenum internalformat, GLsizei width, GLenum format, GLenum type, 1670848b8605Smrg const GLvoid *image ); 1671848b8605Smrg 1672848b8605SmrgGLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target, 1673848b8605Smrg GLenum internalformat, GLsizei width, GLsizei height, GLenum format, 1674848b8605Smrg GLenum type, const GLvoid *image ); 1675848b8605Smrg 1676848b8605SmrgGLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname, 1677848b8605Smrg GLfloat params ); 1678848b8605Smrg 1679848b8605SmrgGLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname, 1680848b8605Smrg const GLfloat *params ); 1681848b8605Smrg 1682848b8605SmrgGLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname, 1683848b8605Smrg GLint params ); 1684848b8605Smrg 1685848b8605SmrgGLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname, 1686848b8605Smrg const GLint *params ); 1687848b8605Smrg 1688848b8605SmrgGLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target, 1689848b8605Smrg GLenum internalformat, GLint x, GLint y, GLsizei width ); 1690848b8605Smrg 1691848b8605SmrgGLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target, 1692848b8605Smrg GLenum internalformat, GLint x, GLint y, GLsizei width, 1693848b8605Smrg GLsizei height); 1694848b8605Smrg 1695848b8605SmrgGLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format, 1696848b8605Smrg GLenum type, GLvoid *image ); 1697848b8605Smrg 1698848b8605SmrgGLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname, 1699848b8605Smrg GLfloat *params ); 1700848b8605Smrg 1701848b8605SmrgGLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname, 1702848b8605Smrg GLint *params ); 1703848b8605Smrg 1704848b8605SmrgGLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target, 1705848b8605Smrg GLenum internalformat, GLsizei width, GLsizei height, GLenum format, 1706848b8605Smrg GLenum type, const GLvoid *row, const GLvoid *column ); 1707848b8605Smrg 1708848b8605SmrgGLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format, 1709848b8605Smrg GLenum type, GLvoid *row, GLvoid *column, GLvoid *span ); 1710848b8605Smrg 1711848b8605Smrg 1712848b8605Smrg 1713848b8605Smrg 1714848b8605Smrg/* 1715848b8605Smrg * OpenGL 1.3 1716848b8605Smrg */ 1717848b8605Smrg 1718848b8605Smrg/* multitexture */ 1719848b8605Smrg#define GL_TEXTURE0 0x84C0 1720848b8605Smrg#define GL_TEXTURE1 0x84C1 1721848b8605Smrg#define GL_TEXTURE2 0x84C2 1722848b8605Smrg#define GL_TEXTURE3 0x84C3 1723848b8605Smrg#define GL_TEXTURE4 0x84C4 1724848b8605Smrg#define GL_TEXTURE5 0x84C5 1725848b8605Smrg#define GL_TEXTURE6 0x84C6 1726848b8605Smrg#define GL_TEXTURE7 0x84C7 1727848b8605Smrg#define GL_TEXTURE8 0x84C8 1728848b8605Smrg#define GL_TEXTURE9 0x84C9 1729848b8605Smrg#define GL_TEXTURE10 0x84CA 1730848b8605Smrg#define GL_TEXTURE11 0x84CB 1731848b8605Smrg#define GL_TEXTURE12 0x84CC 1732848b8605Smrg#define GL_TEXTURE13 0x84CD 1733848b8605Smrg#define GL_TEXTURE14 0x84CE 1734848b8605Smrg#define GL_TEXTURE15 0x84CF 1735848b8605Smrg#define GL_TEXTURE16 0x84D0 1736848b8605Smrg#define GL_TEXTURE17 0x84D1 1737848b8605Smrg#define GL_TEXTURE18 0x84D2 1738848b8605Smrg#define GL_TEXTURE19 0x84D3 1739848b8605Smrg#define GL_TEXTURE20 0x84D4 1740848b8605Smrg#define GL_TEXTURE21 0x84D5 1741848b8605Smrg#define GL_TEXTURE22 0x84D6 1742848b8605Smrg#define GL_TEXTURE23 0x84D7 1743848b8605Smrg#define GL_TEXTURE24 0x84D8 1744848b8605Smrg#define GL_TEXTURE25 0x84D9 1745848b8605Smrg#define GL_TEXTURE26 0x84DA 1746848b8605Smrg#define GL_TEXTURE27 0x84DB 1747848b8605Smrg#define GL_TEXTURE28 0x84DC 1748848b8605Smrg#define GL_TEXTURE29 0x84DD 1749848b8605Smrg#define GL_TEXTURE30 0x84DE 1750848b8605Smrg#define GL_TEXTURE31 0x84DF 1751848b8605Smrg#define GL_ACTIVE_TEXTURE 0x84E0 1752848b8605Smrg#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 1753848b8605Smrg#define GL_MAX_TEXTURE_UNITS 0x84E2 1754848b8605Smrg/* texture_cube_map */ 1755848b8605Smrg#define GL_NORMAL_MAP 0x8511 1756848b8605Smrg#define GL_REFLECTION_MAP 0x8512 1757848b8605Smrg#define GL_TEXTURE_CUBE_MAP 0x8513 1758848b8605Smrg#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 1759848b8605Smrg#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 1760848b8605Smrg#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 1761848b8605Smrg#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 1762848b8605Smrg#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 1763848b8605Smrg#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 1764848b8605Smrg#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A 1765848b8605Smrg#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B 1766848b8605Smrg#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C 1767848b8605Smrg/* texture_compression */ 1768848b8605Smrg#define GL_COMPRESSED_ALPHA 0x84E9 1769848b8605Smrg#define GL_COMPRESSED_LUMINANCE 0x84EA 1770848b8605Smrg#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB 1771848b8605Smrg#define GL_COMPRESSED_INTENSITY 0x84EC 1772848b8605Smrg#define GL_COMPRESSED_RGB 0x84ED 1773848b8605Smrg#define GL_COMPRESSED_RGBA 0x84EE 1774848b8605Smrg#define GL_TEXTURE_COMPRESSION_HINT 0x84EF 1775848b8605Smrg#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 1776848b8605Smrg#define GL_TEXTURE_COMPRESSED 0x86A1 1777848b8605Smrg#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 1778848b8605Smrg#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 1779848b8605Smrg/* multisample */ 1780848b8605Smrg#define GL_MULTISAMPLE 0x809D 1781848b8605Smrg#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E 1782848b8605Smrg#define GL_SAMPLE_ALPHA_TO_ONE 0x809F 1783848b8605Smrg#define GL_SAMPLE_COVERAGE 0x80A0 1784848b8605Smrg#define GL_SAMPLE_BUFFERS 0x80A8 1785848b8605Smrg#define GL_SAMPLES 0x80A9 1786848b8605Smrg#define GL_SAMPLE_COVERAGE_VALUE 0x80AA 1787848b8605Smrg#define GL_SAMPLE_COVERAGE_INVERT 0x80AB 1788848b8605Smrg#define GL_MULTISAMPLE_BIT 0x20000000 1789848b8605Smrg/* transpose_matrix */ 1790848b8605Smrg#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 1791848b8605Smrg#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 1792848b8605Smrg#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 1793848b8605Smrg#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 1794848b8605Smrg/* texture_env_combine */ 1795848b8605Smrg#define GL_COMBINE 0x8570 1796848b8605Smrg#define GL_COMBINE_RGB 0x8571 1797848b8605Smrg#define GL_COMBINE_ALPHA 0x8572 1798848b8605Smrg#define GL_SOURCE0_RGB 0x8580 1799848b8605Smrg#define GL_SOURCE1_RGB 0x8581 1800848b8605Smrg#define GL_SOURCE2_RGB 0x8582 1801848b8605Smrg#define GL_SOURCE0_ALPHA 0x8588 1802848b8605Smrg#define GL_SOURCE1_ALPHA 0x8589 1803848b8605Smrg#define GL_SOURCE2_ALPHA 0x858A 1804848b8605Smrg#define GL_OPERAND0_RGB 0x8590 1805848b8605Smrg#define GL_OPERAND1_RGB 0x8591 1806848b8605Smrg#define GL_OPERAND2_RGB 0x8592 1807848b8605Smrg#define GL_OPERAND0_ALPHA 0x8598 1808848b8605Smrg#define GL_OPERAND1_ALPHA 0x8599 1809848b8605Smrg#define GL_OPERAND2_ALPHA 0x859A 1810848b8605Smrg#define GL_RGB_SCALE 0x8573 1811848b8605Smrg#define GL_ADD_SIGNED 0x8574 1812848b8605Smrg#define GL_INTERPOLATE 0x8575 1813848b8605Smrg#define GL_SUBTRACT 0x84E7 1814848b8605Smrg#define GL_CONSTANT 0x8576 1815848b8605Smrg#define GL_PRIMARY_COLOR 0x8577 1816848b8605Smrg#define GL_PREVIOUS 0x8578 1817848b8605Smrg/* texture_env_dot3 */ 1818848b8605Smrg#define GL_DOT3_RGB 0x86AE 1819848b8605Smrg#define GL_DOT3_RGBA 0x86AF 1820848b8605Smrg/* texture_border_clamp */ 1821848b8605Smrg#define GL_CLAMP_TO_BORDER 0x812D 1822848b8605Smrg 1823848b8605SmrgGLAPI void GLAPIENTRY glActiveTexture( GLenum texture ); 1824848b8605Smrg 1825848b8605SmrgGLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture ); 1826848b8605Smrg 1827848b8605SmrgGLAPI void GLAPIENTRY glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data ); 1828848b8605Smrg 1829848b8605SmrgGLAPI void GLAPIENTRY glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ); 1830848b8605Smrg 1831848b8605SmrgGLAPI void GLAPIENTRY glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data ); 1832848b8605Smrg 1833848b8605SmrgGLAPI void GLAPIENTRY glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data ); 1834848b8605Smrg 1835848b8605SmrgGLAPI void GLAPIENTRY glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ); 1836848b8605Smrg 1837848b8605SmrgGLAPI void GLAPIENTRY glCompressedTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data ); 1838848b8605Smrg 1839848b8605SmrgGLAPI void GLAPIENTRY glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img ); 1840848b8605Smrg 1841848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1d( GLenum target, GLdouble s ); 1842848b8605Smrg 1843848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1dv( GLenum target, const GLdouble *v ); 1844848b8605Smrg 1845848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1f( GLenum target, GLfloat s ); 1846848b8605Smrg 1847848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1fv( GLenum target, const GLfloat *v ); 1848848b8605Smrg 1849848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1i( GLenum target, GLint s ); 1850848b8605Smrg 1851848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1iv( GLenum target, const GLint *v ); 1852848b8605Smrg 1853848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1s( GLenum target, GLshort s ); 1854848b8605Smrg 1855848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1sv( GLenum target, const GLshort *v ); 1856848b8605Smrg 1857848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t ); 1858848b8605Smrg 1859848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2dv( GLenum target, const GLdouble *v ); 1860848b8605Smrg 1861848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t ); 1862848b8605Smrg 1863848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2fv( GLenum target, const GLfloat *v ); 1864848b8605Smrg 1865848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2i( GLenum target, GLint s, GLint t ); 1866848b8605Smrg 1867848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2iv( GLenum target, const GLint *v ); 1868848b8605Smrg 1869848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2s( GLenum target, GLshort s, GLshort t ); 1870848b8605Smrg 1871848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2sv( GLenum target, const GLshort *v ); 1872848b8605Smrg 1873848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r ); 1874848b8605Smrg 1875848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3dv( GLenum target, const GLdouble *v ); 1876848b8605Smrg 1877848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r ); 1878848b8605Smrg 1879848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3fv( GLenum target, const GLfloat *v ); 1880848b8605Smrg 1881848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r ); 1882848b8605Smrg 1883848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3iv( GLenum target, const GLint *v ); 1884848b8605Smrg 1885848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r ); 1886848b8605Smrg 1887848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3sv( GLenum target, const GLshort *v ); 1888848b8605Smrg 1889848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q ); 1890848b8605Smrg 1891848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4dv( GLenum target, const GLdouble *v ); 1892848b8605Smrg 1893848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ); 1894848b8605Smrg 1895848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4fv( GLenum target, const GLfloat *v ); 1896848b8605Smrg 1897848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q ); 1898848b8605Smrg 1899848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4iv( GLenum target, const GLint *v ); 1900848b8605Smrg 1901848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q ); 1902848b8605Smrg 1903848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4sv( GLenum target, const GLshort *v ); 1904848b8605Smrg 1905848b8605Smrg 1906848b8605SmrgGLAPI void GLAPIENTRY glLoadTransposeMatrixd( const GLdouble m[16] ); 1907848b8605Smrg 1908848b8605SmrgGLAPI void GLAPIENTRY glLoadTransposeMatrixf( const GLfloat m[16] ); 1909848b8605Smrg 1910848b8605SmrgGLAPI void GLAPIENTRY glMultTransposeMatrixd( const GLdouble m[16] ); 1911848b8605Smrg 1912848b8605SmrgGLAPI void GLAPIENTRY glMultTransposeMatrixf( const GLfloat m[16] ); 1913848b8605Smrg 1914848b8605SmrgGLAPI void GLAPIENTRY glSampleCoverage( GLclampf value, GLboolean invert ); 1915848b8605Smrg 1916848b8605Smrg 1917848b8605Smrgtypedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); 1918848b8605Smrgtypedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); 1919848b8605Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); 1920848b8605Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); 1921848b8605Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); 1922848b8605Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); 1923848b8605Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); 1924848b8605Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); 1925848b8605Smrgtypedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img); 1926848b8605Smrg 1927848b8605Smrg 1928848b8605Smrg 1929848b8605Smrg/* 1930848b8605Smrg * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1) 1931848b8605Smrg */ 1932848b8605Smrg#ifndef GL_ARB_multitexture 1933848b8605Smrg#define GL_ARB_multitexture 1 1934848b8605Smrg 1935848b8605Smrg#define GL_TEXTURE0_ARB 0x84C0 1936848b8605Smrg#define GL_TEXTURE1_ARB 0x84C1 1937848b8605Smrg#define GL_TEXTURE2_ARB 0x84C2 1938848b8605Smrg#define GL_TEXTURE3_ARB 0x84C3 1939848b8605Smrg#define GL_TEXTURE4_ARB 0x84C4 1940848b8605Smrg#define GL_TEXTURE5_ARB 0x84C5 1941848b8605Smrg#define GL_TEXTURE6_ARB 0x84C6 1942848b8605Smrg#define GL_TEXTURE7_ARB 0x84C7 1943848b8605Smrg#define GL_TEXTURE8_ARB 0x84C8 1944848b8605Smrg#define GL_TEXTURE9_ARB 0x84C9 1945848b8605Smrg#define GL_TEXTURE10_ARB 0x84CA 1946848b8605Smrg#define GL_TEXTURE11_ARB 0x84CB 1947848b8605Smrg#define GL_TEXTURE12_ARB 0x84CC 1948848b8605Smrg#define GL_TEXTURE13_ARB 0x84CD 1949848b8605Smrg#define GL_TEXTURE14_ARB 0x84CE 1950848b8605Smrg#define GL_TEXTURE15_ARB 0x84CF 1951848b8605Smrg#define GL_TEXTURE16_ARB 0x84D0 1952848b8605Smrg#define GL_TEXTURE17_ARB 0x84D1 1953848b8605Smrg#define GL_TEXTURE18_ARB 0x84D2 1954848b8605Smrg#define GL_TEXTURE19_ARB 0x84D3 1955848b8605Smrg#define GL_TEXTURE20_ARB 0x84D4 1956848b8605Smrg#define GL_TEXTURE21_ARB 0x84D5 1957848b8605Smrg#define GL_TEXTURE22_ARB 0x84D6 1958848b8605Smrg#define GL_TEXTURE23_ARB 0x84D7 1959848b8605Smrg#define GL_TEXTURE24_ARB 0x84D8 1960848b8605Smrg#define GL_TEXTURE25_ARB 0x84D9 1961848b8605Smrg#define GL_TEXTURE26_ARB 0x84DA 1962848b8605Smrg#define GL_TEXTURE27_ARB 0x84DB 1963848b8605Smrg#define GL_TEXTURE28_ARB 0x84DC 1964848b8605Smrg#define GL_TEXTURE29_ARB 0x84DD 1965848b8605Smrg#define GL_TEXTURE30_ARB 0x84DE 1966848b8605Smrg#define GL_TEXTURE31_ARB 0x84DF 1967848b8605Smrg#define GL_ACTIVE_TEXTURE_ARB 0x84E0 1968848b8605Smrg#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 1969848b8605Smrg#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 1970848b8605Smrg 1971848b8605SmrgGLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture); 1972848b8605SmrgGLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture); 1973848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s); 1974848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v); 1975848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s); 1976848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v); 1977848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s); 1978848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v); 1979848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s); 1980848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v); 1981848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t); 1982848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v); 1983848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t); 1984848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v); 1985848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t); 1986848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v); 1987848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t); 1988848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v); 1989848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r); 1990848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v); 1991848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r); 1992848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v); 1993848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r); 1994848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v); 1995848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r); 1996848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v); 1997848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); 1998848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v); 1999848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); 2000848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v); 2001848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q); 2002848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v); 2003848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); 2004848b8605SmrgGLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v); 2005848b8605Smrg 2006848b8605Smrgtypedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); 2007848b8605Smrgtypedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); 2008848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); 2009848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); 2010848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); 2011848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); 2012848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); 2013848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); 2014848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); 2015848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); 2016848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); 2017848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); 2018848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); 2019848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); 2020848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); 2021848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); 2022848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); 2023848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); 2024848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); 2025848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); 2026848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); 2027848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); 2028848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); 2029848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); 2030848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); 2031848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); 2032848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); 2033848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); 2034848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); 2035848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); 2036848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); 2037848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); 2038848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); 2039848b8605Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); 2040848b8605Smrg 2041848b8605Smrg#endif /* GL_ARB_multitexture */ 2042848b8605Smrg 2043848b8605Smrg 2044848b8605Smrg 2045848b8605Smrg/* 2046848b8605Smrg * Define this token if you want "old-style" header file behaviour (extensions 2047848b8605Smrg * defined in gl.h). Otherwise, extensions will be included from glext.h. 2048848b8605Smrg */ 2049848b8605Smrg#if defined(GL_GLEXT_LEGACY) 2050848b8605Smrg 2051848b8605Smrg/* All extensions that used to be here are now found in glext.h */ 2052848b8605Smrg 2053848b8605Smrg#else /* GL_GLEXT_LEGACY */ 2054848b8605Smrg 2055848b8605Smrg#include <GL/glext.h> 2056848b8605Smrg 2057848b8605Smrg#endif /* GL_GLEXT_LEGACY */ 2058848b8605Smrg 2059848b8605Smrg 2060848b8605Smrg 2061848b8605Smrg/* 2062848b8605Smrg * ???. GL_MESA_packed_depth_stencil 2063848b8605Smrg * XXX obsolete 2064848b8605Smrg */ 2065848b8605Smrg#ifndef GL_MESA_packed_depth_stencil 2066848b8605Smrg#define GL_MESA_packed_depth_stencil 1 2067848b8605Smrg 2068848b8605Smrg#define GL_DEPTH_STENCIL_MESA 0x8750 2069848b8605Smrg#define GL_UNSIGNED_INT_24_8_MESA 0x8751 2070848b8605Smrg#define GL_UNSIGNED_INT_8_24_REV_MESA 0x8752 2071848b8605Smrg#define GL_UNSIGNED_SHORT_15_1_MESA 0x8753 2072848b8605Smrg#define GL_UNSIGNED_SHORT_1_15_REV_MESA 0x8754 2073848b8605Smrg 2074848b8605Smrg#endif /* GL_MESA_packed_depth_stencil */ 2075848b8605Smrg 2076848b8605Smrg 2077848b8605Smrg#ifndef GL_ATI_blend_equation_separate 2078848b8605Smrg#define GL_ATI_blend_equation_separate 1 2079848b8605Smrg 2080848b8605Smrg#define GL_ALPHA_BLEND_EQUATION_ATI 0x883D 2081848b8605Smrg 2082848b8605SmrgGLAPI void GLAPIENTRY glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA ); 2083848b8605Smrgtypedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA); 2084848b8605Smrg 2085848b8605Smrg#endif /* GL_ATI_blend_equation_separate */ 2086848b8605Smrg 2087848b8605Smrg 2088848b8605Smrg/* GL_OES_EGL_image */ 2089b8e80941Smrg#if !defined(GL_OES_EGL_image) && !defined(GL_EXT_EGL_image_storage) 2090848b8605Smrgtypedef void* GLeglImageOES; 2091848b8605Smrg#endif 2092848b8605Smrg 2093848b8605Smrg#ifndef GL_OES_EGL_image 2094848b8605Smrg#define GL_OES_EGL_image 1 2095848b8605Smrg#ifdef GL_GLEXT_PROTOTYPES 2096848b8605SmrgGLAPI void APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image); 2097848b8605SmrgGLAPI void APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image); 2098848b8605Smrg#endif 2099848b8605Smrgtypedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image); 2100848b8605Smrgtypedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image); 2101848b8605Smrg#endif 2102848b8605Smrg 2103848b8605Smrg 2104848b8605Smrg/** 2105848b8605Smrg ** NOTE!!!!! If you add new functions to this file, or update 2106848b8605Smrg ** glext.h be sure to regenerate the gl_mangle.h file. See comments 2107848b8605Smrg ** in that file for details. 2108848b8605Smrg **/ 2109848b8605Smrg 2110848b8605Smrg 2111848b8605Smrg#ifdef __cplusplus 2112848b8605Smrg} 2113848b8605Smrg#endif 2114848b8605Smrg 2115848b8605Smrg#endif /* __gl_h_ */ 2116