17117f1b4Smrg/*
27117f1b4Smrg * Mesa 3-D graphics library
37117f1b4Smrg *
4c1f859d4Smrg * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
54a49301eSmrg * Copyright (C) 2009  VMware, Inc.  All Rights Reserved.
67117f1b4Smrg *
77117f1b4Smrg * Permission is hereby granted, free of charge, to any person obtaining a
87117f1b4Smrg * copy of this software and associated documentation files (the "Software"),
97117f1b4Smrg * to deal in the Software without restriction, including without limitation
107117f1b4Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
117117f1b4Smrg * and/or sell copies of the Software, and to permit persons to whom the
127117f1b4Smrg * Software is furnished to do so, subject to the following conditions:
137117f1b4Smrg *
147117f1b4Smrg * The above copyright notice and this permission notice shall be included
157117f1b4Smrg * in all copies or substantial portions of the Software.
167117f1b4Smrg *
177117f1b4Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
187117f1b4Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
197117f1b4Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
20af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE.
247117f1b4Smrg */
257117f1b4Smrg
267117f1b4Smrg
277117f1b4Smrg#ifndef __gl_h_
287117f1b4Smrg#define __gl_h_
297117f1b4Smrg
307117f1b4Smrg/**********************************************************************
31af69d88dSmrg * Begin system-specific stuff.
327117f1b4Smrg */
337117f1b4Smrg
347117f1b4Smrg#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__)
357117f1b4Smrg#define __WIN32__
367117f1b4Smrg#endif
377117f1b4Smrg
38af69d88dSmrg#if defined(__WIN32__) && !defined(__CYGWIN__)
397117f1b4Smrg#  if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
407117f1b4Smrg#    define GLAPI __declspec(dllexport)
417ec681f3Smrg#  else
427117f1b4Smrg#    define GLAPI extern
4301e04c3fSmrg#  endif
444a49301eSmrg#  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 */
4501e04c3fSmrg#    define GLAPIENTRY
464a49301eSmrg#  else
474a49301eSmrg#    define GLAPIENTRY __stdcall
484a49301eSmrg#  endif
497117f1b4Smrg#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
507117f1b4Smrg#  define GLAPI extern
517117f1b4Smrg#  define GLAPIENTRY __stdcall
523464ebd5Sriastradh#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
537117f1b4Smrg#  define GLAPI __attribute__((visibility("default")))
547117f1b4Smrg#  define GLAPIENTRY
557117f1b4Smrg#endif /* WIN32 && !CYGWIN */
567117f1b4Smrg
577117f1b4Smrg/*
587117f1b4Smrg * WINDOWS: Include windows.h here to define APIENTRY.
597117f1b4Smrg * It is also useful when applications include this file by
607117f1b4Smrg * including only glut.h, since glut.h depends on windows.h.
617117f1b4Smrg * Applications needing to include windows.h with parms other
627117f1b4Smrg * than "WIN32_LEAN_AND_MEAN" may include windows.h before
637117f1b4Smrg * glut.h or gl.h.
647117f1b4Smrg */
657117f1b4Smrg#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
66cdc920a0Smrg#ifndef WIN32_LEAN_AND_MEAN
677117f1b4Smrg#define WIN32_LEAN_AND_MEAN 1
68cdc920a0Smrg#endif
697117f1b4Smrg#include <windows.h>
707117f1b4Smrg#endif
717117f1b4Smrg
727117f1b4Smrg#ifndef GLAPI
737117f1b4Smrg#define GLAPI extern
747117f1b4Smrg#endif
757117f1b4Smrg
767117f1b4Smrg#ifndef GLAPIENTRY
777117f1b4Smrg#define GLAPIENTRY
787117f1b4Smrg#endif
797117f1b4Smrg
807117f1b4Smrg#ifndef APIENTRY
817117f1b4Smrg#define APIENTRY GLAPIENTRY
827117f1b4Smrg#endif
837117f1b4Smrg
847117f1b4Smrg/* "P" suffix to be used for a pointer to a function */
857117f1b4Smrg#ifndef APIENTRYP
867117f1b4Smrg#define APIENTRYP APIENTRY *
877117f1b4Smrg#endif
887117f1b4Smrg
897117f1b4Smrg#ifndef GLAPIENTRYP
907117f1b4Smrg#define GLAPIENTRYP GLAPIENTRY *
917117f1b4Smrg#endif
927117f1b4Smrg
937117f1b4Smrg/*
947117f1b4Smrg * End system-specific stuff.
957117f1b4Smrg **********************************************************************/
967117f1b4Smrg
977117f1b4Smrg
987117f1b4Smrg
997117f1b4Smrg#ifdef __cplusplus
1007117f1b4Smrgextern "C" {
1017117f1b4Smrg#endif
1027117f1b4Smrg
1037117f1b4Smrg
1047117f1b4Smrg
1057117f1b4Smrg#define GL_VERSION_1_1   1
1067117f1b4Smrg#define GL_VERSION_1_2   1
1077117f1b4Smrg#define GL_VERSION_1_3   1
1087117f1b4Smrg#define GL_ARB_imaging   1
1097117f1b4Smrg
1107117f1b4Smrg
1117117f1b4Smrg/*
1127117f1b4Smrg * Datatypes
1137117f1b4Smrg */
1147117f1b4Smrgtypedef unsigned int	GLenum;
1157117f1b4Smrgtypedef unsigned char	GLboolean;
1167117f1b4Smrgtypedef unsigned int	GLbitfield;
1177117f1b4Smrgtypedef void		GLvoid;
1187117f1b4Smrgtypedef signed char	GLbyte;		/* 1-byte signed */
1197117f1b4Smrgtypedef short		GLshort;	/* 2-byte signed */
1207117f1b4Smrgtypedef int		GLint;		/* 4-byte signed */
1217117f1b4Smrgtypedef unsigned char	GLubyte;	/* 1-byte unsigned */
1227117f1b4Smrgtypedef unsigned short	GLushort;	/* 2-byte unsigned */
1237117f1b4Smrgtypedef unsigned int	GLuint;		/* 4-byte unsigned */
1247117f1b4Smrgtypedef int		GLsizei;	/* 4-byte signed */
1257117f1b4Smrgtypedef float		GLfloat;	/* single precision float */
1267117f1b4Smrgtypedef float		GLclampf;	/* single precision float in [0,1] */
1277117f1b4Smrgtypedef double		GLdouble;	/* double precision float */
1287117f1b4Smrgtypedef double		GLclampd;	/* double precision float in [0,1] */
1297117f1b4Smrg
1307117f1b4Smrg
1317117f1b4Smrg
1327117f1b4Smrg/*
1337117f1b4Smrg * Constants
1347117f1b4Smrg */
1357117f1b4Smrg
1367117f1b4Smrg/* Boolean values */
137af69d88dSmrg#define GL_FALSE				0
138af69d88dSmrg#define GL_TRUE					1
1397117f1b4Smrg
1407117f1b4Smrg/* Data types */
1417117f1b4Smrg#define GL_BYTE					0x1400
1427117f1b4Smrg#define GL_UNSIGNED_BYTE			0x1401
1437117f1b4Smrg#define GL_SHORT				0x1402
1447117f1b4Smrg#define GL_UNSIGNED_SHORT			0x1403
1457117f1b4Smrg#define GL_INT					0x1404
1467117f1b4Smrg#define GL_UNSIGNED_INT				0x1405
1477117f1b4Smrg#define GL_FLOAT				0x1406
1487117f1b4Smrg#define GL_2_BYTES				0x1407
1497117f1b4Smrg#define GL_3_BYTES				0x1408
1507117f1b4Smrg#define GL_4_BYTES				0x1409
1517117f1b4Smrg#define GL_DOUBLE				0x140A
1527117f1b4Smrg
1537117f1b4Smrg/* Primitives */
1547117f1b4Smrg#define GL_POINTS				0x0000
1557117f1b4Smrg#define GL_LINES				0x0001
1567117f1b4Smrg#define GL_LINE_LOOP				0x0002
1577117f1b4Smrg#define GL_LINE_STRIP				0x0003
1587117f1b4Smrg#define GL_TRIANGLES				0x0004
1597117f1b4Smrg#define GL_TRIANGLE_STRIP			0x0005
1607117f1b4Smrg#define GL_TRIANGLE_FAN				0x0006
1617117f1b4Smrg#define GL_QUADS				0x0007
1627117f1b4Smrg#define GL_QUAD_STRIP				0x0008
1637117f1b4Smrg#define GL_POLYGON				0x0009
1647117f1b4Smrg
1657117f1b4Smrg/* Vertex Arrays */
1667117f1b4Smrg#define GL_VERTEX_ARRAY				0x8074
1677117f1b4Smrg#define GL_NORMAL_ARRAY				0x8075
1687117f1b4Smrg#define GL_COLOR_ARRAY				0x8076
1697117f1b4Smrg#define GL_INDEX_ARRAY				0x8077
1707117f1b4Smrg#define GL_TEXTURE_COORD_ARRAY			0x8078
1717117f1b4Smrg#define GL_EDGE_FLAG_ARRAY			0x8079
1727117f1b4Smrg#define GL_VERTEX_ARRAY_SIZE			0x807A
1737117f1b4Smrg#define GL_VERTEX_ARRAY_TYPE			0x807B
1747117f1b4Smrg#define GL_VERTEX_ARRAY_STRIDE			0x807C
1757117f1b4Smrg#define GL_NORMAL_ARRAY_TYPE			0x807E
1767117f1b4Smrg#define GL_NORMAL_ARRAY_STRIDE			0x807F
1777117f1b4Smrg#define GL_COLOR_ARRAY_SIZE			0x8081
1787117f1b4Smrg#define GL_COLOR_ARRAY_TYPE			0x8082
1797117f1b4Smrg#define GL_COLOR_ARRAY_STRIDE			0x8083
1807117f1b4Smrg#define GL_INDEX_ARRAY_TYPE			0x8085
1817117f1b4Smrg#define GL_INDEX_ARRAY_STRIDE			0x8086
1827117f1b4Smrg#define GL_TEXTURE_COORD_ARRAY_SIZE		0x8088
1837117f1b4Smrg#define GL_TEXTURE_COORD_ARRAY_TYPE		0x8089
1847117f1b4Smrg#define GL_TEXTURE_COORD_ARRAY_STRIDE		0x808A
1857117f1b4Smrg#define GL_EDGE_FLAG_ARRAY_STRIDE		0x808C
1867117f1b4Smrg#define GL_VERTEX_ARRAY_POINTER			0x808E
1877117f1b4Smrg#define GL_NORMAL_ARRAY_POINTER			0x808F
1887117f1b4Smrg#define GL_COLOR_ARRAY_POINTER			0x8090
1897117f1b4Smrg#define GL_INDEX_ARRAY_POINTER			0x8091
1907117f1b4Smrg#define GL_TEXTURE_COORD_ARRAY_POINTER		0x8092
1917117f1b4Smrg#define GL_EDGE_FLAG_ARRAY_POINTER		0x8093
1927117f1b4Smrg#define GL_V2F					0x2A20
1937117f1b4Smrg#define GL_V3F					0x2A21
1947117f1b4Smrg#define GL_C4UB_V2F				0x2A22
1957117f1b4Smrg#define GL_C4UB_V3F				0x2A23
1967117f1b4Smrg#define GL_C3F_V3F				0x2A24
1977117f1b4Smrg#define GL_N3F_V3F				0x2A25
1987117f1b4Smrg#define GL_C4F_N3F_V3F				0x2A26
1997117f1b4Smrg#define GL_T2F_V3F				0x2A27
2007117f1b4Smrg#define GL_T4F_V4F				0x2A28
2017117f1b4Smrg#define GL_T2F_C4UB_V3F				0x2A29
2027117f1b4Smrg#define GL_T2F_C3F_V3F				0x2A2A
2037117f1b4Smrg#define GL_T2F_N3F_V3F				0x2A2B
2047117f1b4Smrg#define GL_T2F_C4F_N3F_V3F			0x2A2C
2057117f1b4Smrg#define GL_T4F_C4F_N3F_V4F			0x2A2D
2067117f1b4Smrg
2077117f1b4Smrg/* Matrix Mode */
2087117f1b4Smrg#define GL_MATRIX_MODE				0x0BA0
2097117f1b4Smrg#define GL_MODELVIEW				0x1700
2107117f1b4Smrg#define GL_PROJECTION				0x1701
2117117f1b4Smrg#define GL_TEXTURE				0x1702
2127117f1b4Smrg
2137117f1b4Smrg/* Points */
2147117f1b4Smrg#define GL_POINT_SMOOTH				0x0B10
2157117f1b4Smrg#define GL_POINT_SIZE				0x0B11
2167117f1b4Smrg#define GL_POINT_SIZE_GRANULARITY 		0x0B13
2177117f1b4Smrg#define GL_POINT_SIZE_RANGE			0x0B12
2187117f1b4Smrg
2197117f1b4Smrg/* Lines */
2207117f1b4Smrg#define GL_LINE_SMOOTH				0x0B20
2217117f1b4Smrg#define GL_LINE_STIPPLE				0x0B24
2227117f1b4Smrg#define GL_LINE_STIPPLE_PATTERN			0x0B25
2237117f1b4Smrg#define GL_LINE_STIPPLE_REPEAT			0x0B26
2247117f1b4Smrg#define GL_LINE_WIDTH				0x0B21
2257117f1b4Smrg#define GL_LINE_WIDTH_GRANULARITY		0x0B23
2267117f1b4Smrg#define GL_LINE_WIDTH_RANGE			0x0B22
2277117f1b4Smrg
2287117f1b4Smrg/* Polygons */
2297117f1b4Smrg#define GL_POINT				0x1B00
2307117f1b4Smrg#define GL_LINE					0x1B01
2317117f1b4Smrg#define GL_FILL					0x1B02
2327117f1b4Smrg#define GL_CW					0x0900
2337117f1b4Smrg#define GL_CCW					0x0901
2347117f1b4Smrg#define GL_FRONT				0x0404
2357117f1b4Smrg#define GL_BACK					0x0405
2367117f1b4Smrg#define GL_POLYGON_MODE				0x0B40
2377117f1b4Smrg#define GL_POLYGON_SMOOTH			0x0B41
2387117f1b4Smrg#define GL_POLYGON_STIPPLE			0x0B42
2397117f1b4Smrg#define GL_EDGE_FLAG				0x0B43
2407117f1b4Smrg#define GL_CULL_FACE				0x0B44
2417117f1b4Smrg#define GL_CULL_FACE_MODE			0x0B45
2427117f1b4Smrg#define GL_FRONT_FACE				0x0B46
2437117f1b4Smrg#define GL_POLYGON_OFFSET_FACTOR		0x8038
2447117f1b4Smrg#define GL_POLYGON_OFFSET_UNITS			0x2A00
2457117f1b4Smrg#define GL_POLYGON_OFFSET_POINT			0x2A01
2467117f1b4Smrg#define GL_POLYGON_OFFSET_LINE			0x2A02
2477117f1b4Smrg#define GL_POLYGON_OFFSET_FILL			0x8037
2487117f1b4Smrg
2497117f1b4Smrg/* Display Lists */
2507117f1b4Smrg#define GL_COMPILE				0x1300
2517117f1b4Smrg#define GL_COMPILE_AND_EXECUTE			0x1301
2527117f1b4Smrg#define GL_LIST_BASE				0x0B32
2537117f1b4Smrg#define GL_LIST_INDEX				0x0B33
2547117f1b4Smrg#define GL_LIST_MODE				0x0B30
2557117f1b4Smrg
2567117f1b4Smrg/* Depth buffer */
2577117f1b4Smrg#define GL_NEVER				0x0200
2587117f1b4Smrg#define GL_LESS					0x0201
2597117f1b4Smrg#define GL_EQUAL				0x0202
2607117f1b4Smrg#define GL_LEQUAL				0x0203
2617117f1b4Smrg#define GL_GREATER				0x0204
2627117f1b4Smrg#define GL_NOTEQUAL				0x0205
2637117f1b4Smrg#define GL_GEQUAL				0x0206
2647117f1b4Smrg#define GL_ALWAYS				0x0207
2657117f1b4Smrg#define GL_DEPTH_TEST				0x0B71
2667117f1b4Smrg#define GL_DEPTH_BITS				0x0D56
2677117f1b4Smrg#define GL_DEPTH_CLEAR_VALUE			0x0B73
2687117f1b4Smrg#define GL_DEPTH_FUNC				0x0B74
2697117f1b4Smrg#define GL_DEPTH_RANGE				0x0B70
2707117f1b4Smrg#define GL_DEPTH_WRITEMASK			0x0B72
2717117f1b4Smrg#define GL_DEPTH_COMPONENT			0x1902
2727117f1b4Smrg
2737117f1b4Smrg/* Lighting */
2747117f1b4Smrg#define GL_LIGHTING				0x0B50
2757117f1b4Smrg#define GL_LIGHT0				0x4000
2767117f1b4Smrg#define GL_LIGHT1				0x4001
2777117f1b4Smrg#define GL_LIGHT2				0x4002
2787117f1b4Smrg#define GL_LIGHT3				0x4003
2797117f1b4Smrg#define GL_LIGHT4				0x4004
2807117f1b4Smrg#define GL_LIGHT5				0x4005
2817117f1b4Smrg#define GL_LIGHT6				0x4006
2827117f1b4Smrg#define GL_LIGHT7				0x4007
2837117f1b4Smrg#define GL_SPOT_EXPONENT			0x1205
2847117f1b4Smrg#define GL_SPOT_CUTOFF				0x1206
2857117f1b4Smrg#define GL_CONSTANT_ATTENUATION			0x1207
2867117f1b4Smrg#define GL_LINEAR_ATTENUATION			0x1208
2877117f1b4Smrg#define GL_QUADRATIC_ATTENUATION		0x1209
2887117f1b4Smrg#define GL_AMBIENT				0x1200
2897117f1b4Smrg#define GL_DIFFUSE				0x1201
2907117f1b4Smrg#define GL_SPECULAR				0x1202
2917117f1b4Smrg#define GL_SHININESS				0x1601
2927117f1b4Smrg#define GL_EMISSION				0x1600
2937117f1b4Smrg#define GL_POSITION				0x1203
2947117f1b4Smrg#define GL_SPOT_DIRECTION			0x1204
2957117f1b4Smrg#define GL_AMBIENT_AND_DIFFUSE			0x1602
2967117f1b4Smrg#define GL_COLOR_INDEXES			0x1603
2977117f1b4Smrg#define GL_LIGHT_MODEL_TWO_SIDE			0x0B52
2987117f1b4Smrg#define GL_LIGHT_MODEL_LOCAL_VIEWER		0x0B51
2997117f1b4Smrg#define GL_LIGHT_MODEL_AMBIENT			0x0B53
3007117f1b4Smrg#define GL_FRONT_AND_BACK			0x0408
3017117f1b4Smrg#define GL_SHADE_MODEL				0x0B54
3027117f1b4Smrg#define GL_FLAT					0x1D00
3037117f1b4Smrg#define GL_SMOOTH				0x1D01
3047117f1b4Smrg#define GL_COLOR_MATERIAL			0x0B57
3057117f1b4Smrg#define GL_COLOR_MATERIAL_FACE			0x0B55
3067117f1b4Smrg#define GL_COLOR_MATERIAL_PARAMETER		0x0B56
3077117f1b4Smrg#define GL_NORMALIZE				0x0BA1
3087117f1b4Smrg
3097117f1b4Smrg/* User clipping planes */
3107117f1b4Smrg#define GL_CLIP_PLANE0				0x3000
3117117f1b4Smrg#define GL_CLIP_PLANE1				0x3001
3127117f1b4Smrg#define GL_CLIP_PLANE2				0x3002
3137117f1b4Smrg#define GL_CLIP_PLANE3				0x3003
3147117f1b4Smrg#define GL_CLIP_PLANE4				0x3004
3157117f1b4Smrg#define GL_CLIP_PLANE5				0x3005
3167117f1b4Smrg
3177117f1b4Smrg/* Accumulation buffer */
3187117f1b4Smrg#define GL_ACCUM_RED_BITS			0x0D58
3197117f1b4Smrg#define GL_ACCUM_GREEN_BITS			0x0D59
3207117f1b4Smrg#define GL_ACCUM_BLUE_BITS			0x0D5A
3217117f1b4Smrg#define GL_ACCUM_ALPHA_BITS			0x0D5B
3227117f1b4Smrg#define GL_ACCUM_CLEAR_VALUE			0x0B80
3237117f1b4Smrg#define GL_ACCUM				0x0100
3247117f1b4Smrg#define GL_ADD					0x0104
3257117f1b4Smrg#define GL_LOAD					0x0101
3267117f1b4Smrg#define GL_MULT					0x0103
3277117f1b4Smrg#define GL_RETURN				0x0102
3287117f1b4Smrg
3297117f1b4Smrg/* Alpha testing */
3307117f1b4Smrg#define GL_ALPHA_TEST				0x0BC0
3317117f1b4Smrg#define GL_ALPHA_TEST_REF			0x0BC2
3327117f1b4Smrg#define GL_ALPHA_TEST_FUNC			0x0BC1
3337117f1b4Smrg
3347117f1b4Smrg/* Blending */
3357117f1b4Smrg#define GL_BLEND				0x0BE2
3367117f1b4Smrg#define GL_BLEND_SRC				0x0BE1
3377117f1b4Smrg#define GL_BLEND_DST				0x0BE0
338af69d88dSmrg#define GL_ZERO					0
339af69d88dSmrg#define GL_ONE					1
3407117f1b4Smrg#define GL_SRC_COLOR				0x0300
3417117f1b4Smrg#define GL_ONE_MINUS_SRC_COLOR			0x0301
3427117f1b4Smrg#define GL_SRC_ALPHA				0x0302
3437117f1b4Smrg#define GL_ONE_MINUS_SRC_ALPHA			0x0303
3447117f1b4Smrg#define GL_DST_ALPHA				0x0304
3457117f1b4Smrg#define GL_ONE_MINUS_DST_ALPHA			0x0305
3467117f1b4Smrg#define GL_DST_COLOR				0x0306
3477117f1b4Smrg#define GL_ONE_MINUS_DST_COLOR			0x0307
3487117f1b4Smrg#define GL_SRC_ALPHA_SATURATE			0x0308
3497117f1b4Smrg
3507117f1b4Smrg/* Render Mode */
3517117f1b4Smrg#define GL_FEEDBACK				0x1C01
3527117f1b4Smrg#define GL_RENDER				0x1C00
3537117f1b4Smrg#define GL_SELECT				0x1C02
3547117f1b4Smrg
3557117f1b4Smrg/* Feedback */
3567117f1b4Smrg#define GL_2D					0x0600
3577117f1b4Smrg#define GL_3D					0x0601
3587117f1b4Smrg#define GL_3D_COLOR				0x0602
3597117f1b4Smrg#define GL_3D_COLOR_TEXTURE			0x0603
3607117f1b4Smrg#define GL_4D_COLOR_TEXTURE			0x0604
3617117f1b4Smrg#define GL_POINT_TOKEN				0x0701
3627117f1b4Smrg#define GL_LINE_TOKEN				0x0702
3637117f1b4Smrg#define GL_LINE_RESET_TOKEN			0x0707
3647117f1b4Smrg#define GL_POLYGON_TOKEN			0x0703
3657117f1b4Smrg#define GL_BITMAP_TOKEN				0x0704
3667117f1b4Smrg#define GL_DRAW_PIXEL_TOKEN			0x0705
3677117f1b4Smrg#define GL_COPY_PIXEL_TOKEN			0x0706
3687117f1b4Smrg#define GL_PASS_THROUGH_TOKEN			0x0700
3697117f1b4Smrg#define GL_FEEDBACK_BUFFER_POINTER		0x0DF0
3707117f1b4Smrg#define GL_FEEDBACK_BUFFER_SIZE			0x0DF1
3717117f1b4Smrg#define GL_FEEDBACK_BUFFER_TYPE			0x0DF2
3727117f1b4Smrg
3737117f1b4Smrg/* Selection */
3747117f1b4Smrg#define GL_SELECTION_BUFFER_POINTER		0x0DF3
3757117f1b4Smrg#define GL_SELECTION_BUFFER_SIZE		0x0DF4
3767117f1b4Smrg
3777117f1b4Smrg/* Fog */
3787117f1b4Smrg#define GL_FOG					0x0B60
3797117f1b4Smrg#define GL_FOG_MODE				0x0B65
3807117f1b4Smrg#define GL_FOG_DENSITY				0x0B62
3817117f1b4Smrg#define GL_FOG_COLOR				0x0B66
3827117f1b4Smrg#define GL_FOG_INDEX				0x0B61
3837117f1b4Smrg#define GL_FOG_START				0x0B63
3847117f1b4Smrg#define GL_FOG_END				0x0B64
3857117f1b4Smrg#define GL_LINEAR				0x2601
3867117f1b4Smrg#define GL_EXP					0x0800
3877117f1b4Smrg#define GL_EXP2					0x0801
3887117f1b4Smrg
3897117f1b4Smrg/* Logic Ops */
3907117f1b4Smrg#define GL_LOGIC_OP				0x0BF1
3917117f1b4Smrg#define GL_INDEX_LOGIC_OP			0x0BF1
3927117f1b4Smrg#define GL_COLOR_LOGIC_OP			0x0BF2
3937117f1b4Smrg#define GL_LOGIC_OP_MODE			0x0BF0
3947117f1b4Smrg#define GL_CLEAR				0x1500
3957117f1b4Smrg#define GL_SET					0x150F
3967117f1b4Smrg#define GL_COPY					0x1503
3977117f1b4Smrg#define GL_COPY_INVERTED			0x150C
3987117f1b4Smrg#define GL_NOOP					0x1505
3997117f1b4Smrg#define GL_INVERT				0x150A
4007117f1b4Smrg#define GL_AND					0x1501
4017117f1b4Smrg#define GL_NAND					0x150E
4027117f1b4Smrg#define GL_OR					0x1507
4037117f1b4Smrg#define GL_NOR					0x1508
4047117f1b4Smrg#define GL_XOR					0x1506
4057117f1b4Smrg#define GL_EQUIV				0x1509
4067117f1b4Smrg#define GL_AND_REVERSE				0x1502
4077117f1b4Smrg#define GL_AND_INVERTED				0x1504
4087117f1b4Smrg#define GL_OR_REVERSE				0x150B
4097117f1b4Smrg#define GL_OR_INVERTED				0x150D
4107117f1b4Smrg
4117117f1b4Smrg/* Stencil */
4127117f1b4Smrg#define GL_STENCIL_BITS				0x0D57
4137117f1b4Smrg#define GL_STENCIL_TEST				0x0B90
4147117f1b4Smrg#define GL_STENCIL_CLEAR_VALUE			0x0B91
4157117f1b4Smrg#define GL_STENCIL_FUNC				0x0B92
4167117f1b4Smrg#define GL_STENCIL_VALUE_MASK			0x0B93
4177117f1b4Smrg#define GL_STENCIL_FAIL				0x0B94
4187117f1b4Smrg#define GL_STENCIL_PASS_DEPTH_FAIL		0x0B95
4197117f1b4Smrg#define GL_STENCIL_PASS_DEPTH_PASS		0x0B96
4207117f1b4Smrg#define GL_STENCIL_REF				0x0B97
4217117f1b4Smrg#define GL_STENCIL_WRITEMASK			0x0B98
4227117f1b4Smrg#define GL_STENCIL_INDEX			0x1901
4237117f1b4Smrg#define GL_KEEP					0x1E00
4247117f1b4Smrg#define GL_REPLACE				0x1E01
4257117f1b4Smrg#define GL_INCR					0x1E02
4267117f1b4Smrg#define GL_DECR					0x1E03
4277117f1b4Smrg
4287117f1b4Smrg/* Buffers, Pixel Drawing/Reading */
429af69d88dSmrg#define GL_NONE					0
4307117f1b4Smrg#define GL_LEFT					0x0406
4317117f1b4Smrg#define GL_RIGHT				0x0407
4327117f1b4Smrg/*GL_FRONT					0x0404 */
4337117f1b4Smrg/*GL_BACK					0x0405 */
4347117f1b4Smrg/*GL_FRONT_AND_BACK				0x0408 */
4357117f1b4Smrg#define GL_FRONT_LEFT				0x0400
4367117f1b4Smrg#define GL_FRONT_RIGHT				0x0401
4377117f1b4Smrg#define GL_BACK_LEFT				0x0402
4387117f1b4Smrg#define GL_BACK_RIGHT				0x0403
4397117f1b4Smrg#define GL_AUX0					0x0409
4407117f1b4Smrg#define GL_AUX1					0x040A
4417117f1b4Smrg#define GL_AUX2					0x040B
4427117f1b4Smrg#define GL_AUX3					0x040C
4437117f1b4Smrg#define GL_COLOR_INDEX				0x1900
4447117f1b4Smrg#define GL_RED					0x1903
4457117f1b4Smrg#define GL_GREEN				0x1904
4467117f1b4Smrg#define GL_BLUE					0x1905
4477117f1b4Smrg#define GL_ALPHA				0x1906
4487117f1b4Smrg#define GL_LUMINANCE				0x1909
4497117f1b4Smrg#define GL_LUMINANCE_ALPHA			0x190A
4507117f1b4Smrg#define GL_ALPHA_BITS				0x0D55
4517117f1b4Smrg#define GL_RED_BITS				0x0D52
4527117f1b4Smrg#define GL_GREEN_BITS				0x0D53
4537117f1b4Smrg#define GL_BLUE_BITS				0x0D54
4547117f1b4Smrg#define GL_INDEX_BITS				0x0D51
4557117f1b4Smrg#define GL_SUBPIXEL_BITS			0x0D50
4567117f1b4Smrg#define GL_AUX_BUFFERS				0x0C00
4577117f1b4Smrg#define GL_READ_BUFFER				0x0C02
4587117f1b4Smrg#define GL_DRAW_BUFFER				0x0C01
4597117f1b4Smrg#define GL_DOUBLEBUFFER				0x0C32
4607117f1b4Smrg#define GL_STEREO				0x0C33
4617117f1b4Smrg#define GL_BITMAP				0x1A00
4627117f1b4Smrg#define GL_COLOR				0x1800
4637117f1b4Smrg#define GL_DEPTH				0x1801
4647117f1b4Smrg#define GL_STENCIL				0x1802
4657117f1b4Smrg#define GL_DITHER				0x0BD0
4667117f1b4Smrg#define GL_RGB					0x1907
4677117f1b4Smrg#define GL_RGBA					0x1908
4687117f1b4Smrg
4697117f1b4Smrg/* Implementation limits */
4707117f1b4Smrg#define GL_MAX_LIST_NESTING			0x0B31
4717117f1b4Smrg#define GL_MAX_EVAL_ORDER			0x0D30
4727117f1b4Smrg#define GL_MAX_LIGHTS				0x0D31
4737117f1b4Smrg#define GL_MAX_CLIP_PLANES			0x0D32
4747117f1b4Smrg#define GL_MAX_TEXTURE_SIZE			0x0D33
4757117f1b4Smrg#define GL_MAX_PIXEL_MAP_TABLE			0x0D34
4767117f1b4Smrg#define GL_MAX_ATTRIB_STACK_DEPTH		0x0D35
4777117f1b4Smrg#define GL_MAX_MODELVIEW_STACK_DEPTH		0x0D36
4787117f1b4Smrg#define GL_MAX_NAME_STACK_DEPTH			0x0D37
4797117f1b4Smrg#define GL_MAX_PROJECTION_STACK_DEPTH		0x0D38
4807117f1b4Smrg#define GL_MAX_TEXTURE_STACK_DEPTH		0x0D39
4817117f1b4Smrg#define GL_MAX_VIEWPORT_DIMS			0x0D3A
4827117f1b4Smrg#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH	0x0D3B
4837117f1b4Smrg
4847117f1b4Smrg/* Gets */
4857117f1b4Smrg#define GL_ATTRIB_STACK_DEPTH			0x0BB0
4867117f1b4Smrg#define GL_CLIENT_ATTRIB_STACK_DEPTH		0x0BB1
4877117f1b4Smrg#define GL_COLOR_CLEAR_VALUE			0x0C22
4887117f1b4Smrg#define GL_COLOR_WRITEMASK			0x0C23
4897117f1b4Smrg#define GL_CURRENT_INDEX			0x0B01
4907117f1b4Smrg#define GL_CURRENT_COLOR			0x0B00
4917117f1b4Smrg#define GL_CURRENT_NORMAL			0x0B02
4927117f1b4Smrg#define GL_CURRENT_RASTER_COLOR			0x0B04
4937117f1b4Smrg#define GL_CURRENT_RASTER_DISTANCE		0x0B09
4947117f1b4Smrg#define GL_CURRENT_RASTER_INDEX			0x0B05
4957117f1b4Smrg#define GL_CURRENT_RASTER_POSITION		0x0B07
4967117f1b4Smrg#define GL_CURRENT_RASTER_TEXTURE_COORDS	0x0B06
4977117f1b4Smrg#define GL_CURRENT_RASTER_POSITION_VALID	0x0B08
4987117f1b4Smrg#define GL_CURRENT_TEXTURE_COORDS		0x0B03
4997117f1b4Smrg#define GL_INDEX_CLEAR_VALUE			0x0C20
5007117f1b4Smrg#define GL_INDEX_MODE				0x0C30
5017117f1b4Smrg#define GL_INDEX_WRITEMASK			0x0C21
5027117f1b4Smrg#define GL_MODELVIEW_MATRIX			0x0BA6
5037117f1b4Smrg#define GL_MODELVIEW_STACK_DEPTH		0x0BA3
5047117f1b4Smrg#define GL_NAME_STACK_DEPTH			0x0D70
5057117f1b4Smrg#define GL_PROJECTION_MATRIX			0x0BA7
5067117f1b4Smrg#define GL_PROJECTION_STACK_DEPTH		0x0BA4
5077117f1b4Smrg#define GL_RENDER_MODE				0x0C40
5087117f1b4Smrg#define GL_RGBA_MODE				0x0C31
5097117f1b4Smrg#define GL_TEXTURE_MATRIX			0x0BA8
5107117f1b4Smrg#define GL_TEXTURE_STACK_DEPTH			0x0BA5
5117117f1b4Smrg#define GL_VIEWPORT				0x0BA2
5127117f1b4Smrg
5137117f1b4Smrg/* Evaluators */
5147117f1b4Smrg#define GL_AUTO_NORMAL				0x0D80
5157117f1b4Smrg#define GL_MAP1_COLOR_4				0x0D90
5167117f1b4Smrg#define GL_MAP1_INDEX				0x0D91
5177117f1b4Smrg#define GL_MAP1_NORMAL				0x0D92
5187117f1b4Smrg#define GL_MAP1_TEXTURE_COORD_1			0x0D93
5197117f1b4Smrg#define GL_MAP1_TEXTURE_COORD_2			0x0D94
5207117f1b4Smrg#define GL_MAP1_TEXTURE_COORD_3			0x0D95
5217117f1b4Smrg#define GL_MAP1_TEXTURE_COORD_4			0x0D96
5227117f1b4Smrg#define GL_MAP1_VERTEX_3			0x0D97
5237117f1b4Smrg#define GL_MAP1_VERTEX_4			0x0D98
5247117f1b4Smrg#define GL_MAP2_COLOR_4				0x0DB0
5257117f1b4Smrg#define GL_MAP2_INDEX				0x0DB1
5267117f1b4Smrg#define GL_MAP2_NORMAL				0x0DB2
5277117f1b4Smrg#define GL_MAP2_TEXTURE_COORD_1			0x0DB3
5287117f1b4Smrg#define GL_MAP2_TEXTURE_COORD_2			0x0DB4
5297117f1b4Smrg#define GL_MAP2_TEXTURE_COORD_3			0x0DB5
5307117f1b4Smrg#define GL_MAP2_TEXTURE_COORD_4			0x0DB6
5317117f1b4Smrg#define GL_MAP2_VERTEX_3			0x0DB7
5327117f1b4Smrg#define GL_MAP2_VERTEX_4			0x0DB8
5337117f1b4Smrg#define GL_MAP1_GRID_DOMAIN			0x0DD0
5347117f1b4Smrg#define GL_MAP1_GRID_SEGMENTS			0x0DD1
5357117f1b4Smrg#define GL_MAP2_GRID_DOMAIN			0x0DD2
5367117f1b4Smrg#define GL_MAP2_GRID_SEGMENTS			0x0DD3
5377117f1b4Smrg#define GL_COEFF				0x0A00
5387117f1b4Smrg#define GL_ORDER				0x0A01
5397117f1b4Smrg#define GL_DOMAIN				0x0A02
5407117f1b4Smrg
5417117f1b4Smrg/* Hints */
5427117f1b4Smrg#define GL_PERSPECTIVE_CORRECTION_HINT		0x0C50
5437117f1b4Smrg#define GL_POINT_SMOOTH_HINT			0x0C51
5447117f1b4Smrg#define GL_LINE_SMOOTH_HINT			0x0C52
5457117f1b4Smrg#define GL_POLYGON_SMOOTH_HINT			0x0C53
5467117f1b4Smrg#define GL_FOG_HINT				0x0C54
5477117f1b4Smrg#define GL_DONT_CARE				0x1100
5487117f1b4Smrg#define GL_FASTEST				0x1101
5497117f1b4Smrg#define GL_NICEST				0x1102
5507117f1b4Smrg
5517117f1b4Smrg/* Scissor box */
5527117f1b4Smrg#define GL_SCISSOR_BOX				0x0C10
5537117f1b4Smrg#define GL_SCISSOR_TEST				0x0C11
5547117f1b4Smrg
5557117f1b4Smrg/* Pixel Mode / Transfer */
5567117f1b4Smrg#define GL_MAP_COLOR				0x0D10
5577117f1b4Smrg#define GL_MAP_STENCIL				0x0D11
5587117f1b4Smrg#define GL_INDEX_SHIFT				0x0D12
5597117f1b4Smrg#define GL_INDEX_OFFSET				0x0D13
5607117f1b4Smrg#define GL_RED_SCALE				0x0D14
5617117f1b4Smrg#define GL_RED_BIAS				0x0D15
5627117f1b4Smrg#define GL_GREEN_SCALE				0x0D18
5637117f1b4Smrg#define GL_GREEN_BIAS				0x0D19
5647117f1b4Smrg#define GL_BLUE_SCALE				0x0D1A
5657117f1b4Smrg#define GL_BLUE_BIAS				0x0D1B
5667117f1b4Smrg#define GL_ALPHA_SCALE				0x0D1C
5677117f1b4Smrg#define GL_ALPHA_BIAS				0x0D1D
5687117f1b4Smrg#define GL_DEPTH_SCALE				0x0D1E
5697117f1b4Smrg#define GL_DEPTH_BIAS				0x0D1F
5707117f1b4Smrg#define GL_PIXEL_MAP_S_TO_S_SIZE		0x0CB1
5717117f1b4Smrg#define GL_PIXEL_MAP_I_TO_I_SIZE		0x0CB0
5727117f1b4Smrg#define GL_PIXEL_MAP_I_TO_R_SIZE		0x0CB2
5737117f1b4Smrg#define GL_PIXEL_MAP_I_TO_G_SIZE		0x0CB3
5747117f1b4Smrg#define GL_PIXEL_MAP_I_TO_B_SIZE		0x0CB4
5757117f1b4Smrg#define GL_PIXEL_MAP_I_TO_A_SIZE		0x0CB5
5767117f1b4Smrg#define GL_PIXEL_MAP_R_TO_R_SIZE		0x0CB6
5777117f1b4Smrg#define GL_PIXEL_MAP_G_TO_G_SIZE		0x0CB7
5787117f1b4Smrg#define GL_PIXEL_MAP_B_TO_B_SIZE		0x0CB8
5797117f1b4Smrg#define GL_PIXEL_MAP_A_TO_A_SIZE		0x0CB9
5807117f1b4Smrg#define GL_PIXEL_MAP_S_TO_S			0x0C71
5817117f1b4Smrg#define GL_PIXEL_MAP_I_TO_I			0x0C70
5827117f1b4Smrg#define GL_PIXEL_MAP_I_TO_R			0x0C72
5837117f1b4Smrg#define GL_PIXEL_MAP_I_TO_G			0x0C73
5847117f1b4Smrg#define GL_PIXEL_MAP_I_TO_B			0x0C74
5857117f1b4Smrg#define GL_PIXEL_MAP_I_TO_A			0x0C75
5867117f1b4Smrg#define GL_PIXEL_MAP_R_TO_R			0x0C76
5877117f1b4Smrg#define GL_PIXEL_MAP_G_TO_G			0x0C77
5887117f1b4Smrg#define GL_PIXEL_MAP_B_TO_B			0x0C78
5897117f1b4Smrg#define GL_PIXEL_MAP_A_TO_A			0x0C79
5907117f1b4Smrg#define GL_PACK_ALIGNMENT			0x0D05
5917117f1b4Smrg#define GL_PACK_LSB_FIRST			0x0D01
5927117f1b4Smrg#define GL_PACK_ROW_LENGTH			0x0D02
5937117f1b4Smrg#define GL_PACK_SKIP_PIXELS			0x0D04
5947117f1b4Smrg#define GL_PACK_SKIP_ROWS			0x0D03
5957117f1b4Smrg#define GL_PACK_SWAP_BYTES			0x0D00
5967117f1b4Smrg#define GL_UNPACK_ALIGNMENT			0x0CF5
5977117f1b4Smrg#define GL_UNPACK_LSB_FIRST			0x0CF1
5987117f1b4Smrg#define GL_UNPACK_ROW_LENGTH			0x0CF2
5997117f1b4Smrg#define GL_UNPACK_SKIP_PIXELS			0x0CF4
6007117f1b4Smrg#define GL_UNPACK_SKIP_ROWS			0x0CF3
6017117f1b4Smrg#define GL_UNPACK_SWAP_BYTES			0x0CF0
6027117f1b4Smrg#define GL_ZOOM_X				0x0D16
6037117f1b4Smrg#define GL_ZOOM_Y				0x0D17
6047117f1b4Smrg
6057117f1b4Smrg/* Texture mapping */
6067117f1b4Smrg#define GL_TEXTURE_ENV				0x2300
6077117f1b4Smrg#define GL_TEXTURE_ENV_MODE			0x2200
6087117f1b4Smrg#define GL_TEXTURE_1D				0x0DE0
6097117f1b4Smrg#define GL_TEXTURE_2D				0x0DE1
6107117f1b4Smrg#define GL_TEXTURE_WRAP_S			0x2802
6117117f1b4Smrg#define GL_TEXTURE_WRAP_T			0x2803
6127117f1b4Smrg#define GL_TEXTURE_MAG_FILTER			0x2800
6137117f1b4Smrg#define GL_TEXTURE_MIN_FILTER			0x2801
6147117f1b4Smrg#define GL_TEXTURE_ENV_COLOR			0x2201
6157117f1b4Smrg#define GL_TEXTURE_GEN_S			0x0C60
6167117f1b4Smrg#define GL_TEXTURE_GEN_T			0x0C61
6173464ebd5Sriastradh#define GL_TEXTURE_GEN_R			0x0C62
6183464ebd5Sriastradh#define GL_TEXTURE_GEN_Q			0x0C63
6197117f1b4Smrg#define GL_TEXTURE_GEN_MODE			0x2500
6207117f1b4Smrg#define GL_TEXTURE_BORDER_COLOR			0x1004
6217117f1b4Smrg#define GL_TEXTURE_WIDTH			0x1000
6227117f1b4Smrg#define GL_TEXTURE_HEIGHT			0x1001
6237117f1b4Smrg#define GL_TEXTURE_BORDER			0x1005
6247117f1b4Smrg#define GL_TEXTURE_COMPONENTS			0x1003
6257117f1b4Smrg#define GL_TEXTURE_RED_SIZE			0x805C
6267117f1b4Smrg#define GL_TEXTURE_GREEN_SIZE			0x805D
6277117f1b4Smrg#define GL_TEXTURE_BLUE_SIZE			0x805E
6287117f1b4Smrg#define GL_TEXTURE_ALPHA_SIZE			0x805F
6297117f1b4Smrg#define GL_TEXTURE_LUMINANCE_SIZE		0x8060
6307117f1b4Smrg#define GL_TEXTURE_INTENSITY_SIZE		0x8061
6317117f1b4Smrg#define GL_NEAREST_MIPMAP_NEAREST		0x2700
6327117f1b4Smrg#define GL_NEAREST_MIPMAP_LINEAR		0x2702
6337117f1b4Smrg#define GL_LINEAR_MIPMAP_NEAREST		0x2701
6347117f1b4Smrg#define GL_LINEAR_MIPMAP_LINEAR			0x2703
6357117f1b4Smrg#define GL_OBJECT_LINEAR			0x2401
6367117f1b4Smrg#define GL_OBJECT_PLANE				0x2501
6377117f1b4Smrg#define GL_EYE_LINEAR				0x2400
6387117f1b4Smrg#define GL_EYE_PLANE				0x2502
6397117f1b4Smrg#define GL_SPHERE_MAP				0x2402
6407117f1b4Smrg#define GL_DECAL				0x2101
6417117f1b4Smrg#define GL_MODULATE				0x2100
6427117f1b4Smrg#define GL_NEAREST				0x2600
6437117f1b4Smrg#define GL_REPEAT				0x2901
6447117f1b4Smrg#define GL_CLAMP				0x2900
6457117f1b4Smrg#define GL_S					0x2000
6467117f1b4Smrg#define GL_T					0x2001
6477117f1b4Smrg#define GL_R					0x2002
6487117f1b4Smrg#define GL_Q					0x2003
6497117f1b4Smrg
6507117f1b4Smrg/* Utility */
6517117f1b4Smrg#define GL_VENDOR				0x1F00
6527117f1b4Smrg#define GL_RENDERER				0x1F01
6537117f1b4Smrg#define GL_VERSION				0x1F02
6547117f1b4Smrg#define GL_EXTENSIONS				0x1F03
6557117f1b4Smrg
6567117f1b4Smrg/* Errors */
657af69d88dSmrg#define GL_NO_ERROR 				0
6587117f1b4Smrg#define GL_INVALID_ENUM				0x0500
6597117f1b4Smrg#define GL_INVALID_VALUE			0x0501
6607117f1b4Smrg#define GL_INVALID_OPERATION			0x0502
6617117f1b4Smrg#define GL_STACK_OVERFLOW			0x0503
6627117f1b4Smrg#define GL_STACK_UNDERFLOW			0x0504
6637117f1b4Smrg#define GL_OUT_OF_MEMORY			0x0505
6647117f1b4Smrg
6657117f1b4Smrg/* glPush/PopAttrib bits */
6667117f1b4Smrg#define GL_CURRENT_BIT				0x00000001
6677117f1b4Smrg#define GL_POINT_BIT				0x00000002
6687117f1b4Smrg#define GL_LINE_BIT				0x00000004
6697117f1b4Smrg#define GL_POLYGON_BIT				0x00000008
6707117f1b4Smrg#define GL_POLYGON_STIPPLE_BIT			0x00000010
6717117f1b4Smrg#define GL_PIXEL_MODE_BIT			0x00000020
6727117f1b4Smrg#define GL_LIGHTING_BIT				0x00000040
6737117f1b4Smrg#define GL_FOG_BIT				0x00000080
6747117f1b4Smrg#define GL_DEPTH_BUFFER_BIT			0x00000100
6757117f1b4Smrg#define GL_ACCUM_BUFFER_BIT			0x00000200
6767117f1b4Smrg#define GL_STENCIL_BUFFER_BIT			0x00000400
6777117f1b4Smrg#define GL_VIEWPORT_BIT				0x00000800
6787117f1b4Smrg#define GL_TRANSFORM_BIT			0x00001000
6797117f1b4Smrg#define GL_ENABLE_BIT				0x00002000
6807117f1b4Smrg#define GL_COLOR_BUFFER_BIT			0x00004000
6817117f1b4Smrg#define GL_HINT_BIT				0x00008000
6827117f1b4Smrg#define GL_EVAL_BIT				0x00010000
6837117f1b4Smrg#define GL_LIST_BIT				0x00020000
6847117f1b4Smrg#define GL_TEXTURE_BIT				0x00040000
6857117f1b4Smrg#define GL_SCISSOR_BIT				0x00080000
686af69d88dSmrg#define GL_ALL_ATTRIB_BITS			0xFFFFFFFF
6877117f1b4Smrg
6887117f1b4Smrg
6897117f1b4Smrg/* OpenGL 1.1 */
6907117f1b4Smrg#define GL_PROXY_TEXTURE_1D			0x8063
6917117f1b4Smrg#define GL_PROXY_TEXTURE_2D			0x8064
6927117f1b4Smrg#define GL_TEXTURE_PRIORITY			0x8066
6937117f1b4Smrg#define GL_TEXTURE_RESIDENT			0x8067
6947117f1b4Smrg#define GL_TEXTURE_BINDING_1D			0x8068
6957117f1b4Smrg#define GL_TEXTURE_BINDING_2D			0x8069
6967117f1b4Smrg#define GL_TEXTURE_INTERNAL_FORMAT		0x1003
6977117f1b4Smrg#define GL_ALPHA4				0x803B
6987117f1b4Smrg#define GL_ALPHA8				0x803C
6997117f1b4Smrg#define GL_ALPHA12				0x803D
7007117f1b4Smrg#define GL_ALPHA16				0x803E
7017117f1b4Smrg#define GL_LUMINANCE4				0x803F
7027117f1b4Smrg#define GL_LUMINANCE8				0x8040
7037117f1b4Smrg#define GL_LUMINANCE12				0x8041
7047117f1b4Smrg#define GL_LUMINANCE16				0x8042
7057117f1b4Smrg#define GL_LUMINANCE4_ALPHA4			0x8043
7067117f1b4Smrg#define GL_LUMINANCE6_ALPHA2			0x8044
7077117f1b4Smrg#define GL_LUMINANCE8_ALPHA8			0x8045
7087117f1b4Smrg#define GL_LUMINANCE12_ALPHA4			0x8046
7097117f1b4Smrg#define GL_LUMINANCE12_ALPHA12			0x8047
7107117f1b4Smrg#define GL_LUMINANCE16_ALPHA16			0x8048
7117117f1b4Smrg#define GL_INTENSITY				0x8049
7127117f1b4Smrg#define GL_INTENSITY4				0x804A
7137117f1b4Smrg#define GL_INTENSITY8				0x804B
7147117f1b4Smrg#define GL_INTENSITY12				0x804C
7157117f1b4Smrg#define GL_INTENSITY16				0x804D
7167117f1b4Smrg#define GL_R3_G3_B2				0x2A10
7177117f1b4Smrg#define GL_RGB4					0x804F
7187117f1b4Smrg#define GL_RGB5					0x8050
7197117f1b4Smrg#define GL_RGB8					0x8051
7207117f1b4Smrg#define GL_RGB10				0x8052
7217117f1b4Smrg#define GL_RGB12				0x8053
7227117f1b4Smrg#define GL_RGB16				0x8054
7237117f1b4Smrg#define GL_RGBA2				0x8055
7247117f1b4Smrg#define GL_RGBA4				0x8056
7257117f1b4Smrg#define GL_RGB5_A1				0x8057
7267117f1b4Smrg#define GL_RGBA8				0x8058
7277117f1b4Smrg#define GL_RGB10_A2				0x8059
7287117f1b4Smrg#define GL_RGBA12				0x805A
7297117f1b4Smrg#define GL_RGBA16				0x805B
7307117f1b4Smrg#define GL_CLIENT_PIXEL_STORE_BIT		0x00000001
7317117f1b4Smrg#define GL_CLIENT_VERTEX_ARRAY_BIT		0x00000002
7327117f1b4Smrg#define GL_ALL_CLIENT_ATTRIB_BITS 		0xFFFFFFFF
7337117f1b4Smrg#define GL_CLIENT_ALL_ATTRIB_BITS 		0xFFFFFFFF
7347117f1b4Smrg
7357117f1b4Smrg
7367117f1b4Smrg
7377117f1b4Smrg/*
7387117f1b4Smrg * Miscellaneous
7397117f1b4Smrg */
7407117f1b4Smrg
7417117f1b4SmrgGLAPI void GLAPIENTRY glClearIndex( GLfloat c );
7427117f1b4Smrg
7437117f1b4SmrgGLAPI void GLAPIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
7447117f1b4Smrg
7457117f1b4SmrgGLAPI void GLAPIENTRY glClear( GLbitfield mask );
7467117f1b4Smrg
7477117f1b4SmrgGLAPI void GLAPIENTRY glIndexMask( GLuint mask );
7487117f1b4Smrg
7497117f1b4SmrgGLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha );
7507117f1b4Smrg
7517117f1b4SmrgGLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref );
7527117f1b4Smrg
7537117f1b4SmrgGLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor );
7547117f1b4Smrg
7557117f1b4SmrgGLAPI void GLAPIENTRY glLogicOp( GLenum opcode );
7567117f1b4Smrg
7577117f1b4SmrgGLAPI void GLAPIENTRY glCullFace( GLenum mode );
7587117f1b4Smrg
7597117f1b4SmrgGLAPI void GLAPIENTRY glFrontFace( GLenum mode );
7607117f1b4Smrg
7617117f1b4SmrgGLAPI void GLAPIENTRY glPointSize( GLfloat size );
7627117f1b4Smrg
7637117f1b4SmrgGLAPI void GLAPIENTRY glLineWidth( GLfloat width );
7647117f1b4Smrg
7657117f1b4SmrgGLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern );
7667117f1b4Smrg
7677117f1b4SmrgGLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode );
7687117f1b4Smrg
7697117f1b4SmrgGLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units );
7707117f1b4Smrg
7717117f1b4SmrgGLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask );
7727117f1b4Smrg
7737117f1b4SmrgGLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask );
7747117f1b4Smrg
7757117f1b4SmrgGLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag );
7767117f1b4Smrg
7777117f1b4SmrgGLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag );
7787117f1b4Smrg
7797117f1b4SmrgGLAPI void GLAPIENTRY glScissor( GLint x, GLint y, GLsizei width, GLsizei height);
7807117f1b4Smrg
7817117f1b4SmrgGLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation );
7827117f1b4Smrg
7837117f1b4SmrgGLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation );
7847117f1b4Smrg
7857117f1b4SmrgGLAPI void GLAPIENTRY glDrawBuffer( GLenum mode );
7867117f1b4Smrg
7877117f1b4SmrgGLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
7887117f1b4Smrg
7897117f1b4SmrgGLAPI void GLAPIENTRY glEnable( GLenum cap );
7907117f1b4Smrg
7917117f1b4SmrgGLAPI void GLAPIENTRY glDisable( GLenum cap );
7927117f1b4Smrg
7937117f1b4SmrgGLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap );
7947117f1b4Smrg
7957117f1b4Smrg
7967117f1b4SmrgGLAPI void GLAPIENTRY glEnableClientState( GLenum cap );  /* 1.1 */
7977117f1b4Smrg
7987117f1b4SmrgGLAPI void GLAPIENTRY glDisableClientState( GLenum cap );  /* 1.1 */
7997117f1b4Smrg
8007117f1b4Smrg
8017117f1b4SmrgGLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params );
8027117f1b4Smrg
8037117f1b4SmrgGLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params );
8047117f1b4Smrg
8057117f1b4SmrgGLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params );
8067117f1b4Smrg
8077117f1b4SmrgGLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params );
8087117f1b4Smrg
8097117f1b4Smrg
8107117f1b4SmrgGLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask );
8117117f1b4Smrg
8127117f1b4SmrgGLAPI void GLAPIENTRY glPopAttrib( void );
8137117f1b4Smrg
8147117f1b4Smrg
8157117f1b4SmrgGLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask );  /* 1.1 */
8167117f1b4Smrg
8177117f1b4SmrgGLAPI void GLAPIENTRY glPopClientAttrib( void );  /* 1.1 */
8187117f1b4Smrg
8197117f1b4Smrg
8207117f1b4SmrgGLAPI GLint GLAPIENTRY glRenderMode( GLenum mode );
8217117f1b4Smrg
8227117f1b4SmrgGLAPI GLenum GLAPIENTRY glGetError( void );
8237117f1b4Smrg
8247117f1b4SmrgGLAPI const GLubyte * GLAPIENTRY glGetString( GLenum name );
8257117f1b4Smrg
8267117f1b4SmrgGLAPI void GLAPIENTRY glFinish( void );
8277117f1b4Smrg
8287117f1b4SmrgGLAPI void GLAPIENTRY glFlush( void );
8297117f1b4Smrg
8307117f1b4SmrgGLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode );
8317117f1b4Smrg
8327117f1b4Smrg
8337117f1b4Smrg/*
8347117f1b4Smrg * Depth Buffer
8357117f1b4Smrg */
8367117f1b4Smrg
8377117f1b4SmrgGLAPI void GLAPIENTRY glClearDepth( GLclampd depth );
8387117f1b4Smrg
8397117f1b4SmrgGLAPI void GLAPIENTRY glDepthFunc( GLenum func );
8407117f1b4Smrg
8417117f1b4SmrgGLAPI void GLAPIENTRY glDepthMask( GLboolean flag );
8427117f1b4Smrg
8437117f1b4SmrgGLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val );
8447117f1b4Smrg
8457117f1b4Smrg
8467117f1b4Smrg/*
8477117f1b4Smrg * Accumulation Buffer
8487117f1b4Smrg */
8497117f1b4Smrg
8507117f1b4SmrgGLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
8517117f1b4Smrg
8527117f1b4SmrgGLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value );
8537117f1b4Smrg
8547117f1b4Smrg
8557117f1b4Smrg/*
8567117f1b4Smrg * Transformation
8577117f1b4Smrg */
8587117f1b4Smrg
8597117f1b4SmrgGLAPI void GLAPIENTRY glMatrixMode( GLenum mode );
8607117f1b4Smrg
8617117f1b4SmrgGLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right,
8627117f1b4Smrg                                 GLdouble bottom, GLdouble top,
8637117f1b4Smrg                                 GLdouble near_val, GLdouble far_val );
8647117f1b4Smrg
8657117f1b4SmrgGLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right,
8667117f1b4Smrg                                   GLdouble bottom, GLdouble top,
8677117f1b4Smrg                                   GLdouble near_val, GLdouble far_val );
8687117f1b4Smrg
8697117f1b4SmrgGLAPI void GLAPIENTRY glViewport( GLint x, GLint y,
8707117f1b4Smrg                                    GLsizei width, GLsizei height );
8717117f1b4Smrg
8727117f1b4SmrgGLAPI void GLAPIENTRY glPushMatrix( void );
8737117f1b4Smrg
8747117f1b4SmrgGLAPI void GLAPIENTRY glPopMatrix( void );
8757117f1b4Smrg
8767117f1b4SmrgGLAPI void GLAPIENTRY glLoadIdentity( void );
8777117f1b4Smrg
8787117f1b4SmrgGLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m );
8797117f1b4SmrgGLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m );
8807117f1b4Smrg
8817117f1b4SmrgGLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m );
8827117f1b4SmrgGLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m );
8837117f1b4Smrg
8847117f1b4SmrgGLAPI void GLAPIENTRY glRotated( GLdouble angle,
8857117f1b4Smrg                                   GLdouble x, GLdouble y, GLdouble z );
8867117f1b4SmrgGLAPI void GLAPIENTRY glRotatef( GLfloat angle,
8877117f1b4Smrg                                   GLfloat x, GLfloat y, GLfloat z );
8887117f1b4Smrg
8897117f1b4SmrgGLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z );
8907117f1b4SmrgGLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z );
8917117f1b4Smrg
8927117f1b4SmrgGLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z );
8937117f1b4SmrgGLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z );
8947117f1b4Smrg
8957117f1b4Smrg
8967117f1b4Smrg/*
8977117f1b4Smrg * Display Lists
8987117f1b4Smrg */
8997117f1b4Smrg
9007117f1b4SmrgGLAPI GLboolean GLAPIENTRY glIsList( GLuint list );
9017117f1b4Smrg
9027117f1b4SmrgGLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range );
9037117f1b4Smrg
9047117f1b4SmrgGLAPI GLuint GLAPIENTRY glGenLists( GLsizei range );
9057117f1b4Smrg
9067117f1b4SmrgGLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode );
9077117f1b4Smrg
9087117f1b4SmrgGLAPI void GLAPIENTRY glEndList( void );
9097117f1b4Smrg
9107117f1b4SmrgGLAPI void GLAPIENTRY glCallList( GLuint list );
9117117f1b4Smrg
9127117f1b4SmrgGLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type,
9137117f1b4Smrg                                     const GLvoid *lists );
9147117f1b4Smrg
9157117f1b4SmrgGLAPI void GLAPIENTRY glListBase( GLuint base );
9167117f1b4Smrg
9177117f1b4Smrg
9187117f1b4Smrg/*
9197117f1b4Smrg * Drawing Functions
9207117f1b4Smrg */
9217117f1b4Smrg
9227117f1b4SmrgGLAPI void GLAPIENTRY glBegin( GLenum mode );
9237117f1b4Smrg
9247117f1b4SmrgGLAPI void GLAPIENTRY glEnd( void );
9257117f1b4Smrg
9267117f1b4Smrg
9277117f1b4SmrgGLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y );
9287117f1b4SmrgGLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y );
9297117f1b4SmrgGLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y );
9307117f1b4SmrgGLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y );
9317117f1b4Smrg
9327117f1b4SmrgGLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z );
9337117f1b4SmrgGLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z );
9347117f1b4SmrgGLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z );
9357117f1b4SmrgGLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z );
9367117f1b4Smrg
9377117f1b4SmrgGLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
9387117f1b4SmrgGLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
9397117f1b4SmrgGLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w );
9407117f1b4SmrgGLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
9417117f1b4Smrg
9427117f1b4SmrgGLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v );
9437117f1b4SmrgGLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v );
9447117f1b4SmrgGLAPI void GLAPIENTRY glVertex2iv( const GLint *v );
9457117f1b4SmrgGLAPI void GLAPIENTRY glVertex2sv( const GLshort *v );
9467117f1b4Smrg
9477117f1b4SmrgGLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v );
9487117f1b4SmrgGLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v );
9497117f1b4SmrgGLAPI void GLAPIENTRY glVertex3iv( const GLint *v );
9507117f1b4SmrgGLAPI void GLAPIENTRY glVertex3sv( const GLshort *v );
9517117f1b4Smrg
9527117f1b4SmrgGLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v );
9537117f1b4SmrgGLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v );
9547117f1b4SmrgGLAPI void GLAPIENTRY glVertex4iv( const GLint *v );
9557117f1b4SmrgGLAPI void GLAPIENTRY glVertex4sv( const GLshort *v );
9567117f1b4Smrg
9577117f1b4Smrg
9587117f1b4SmrgGLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
9597117f1b4SmrgGLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
9607117f1b4SmrgGLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
9617117f1b4SmrgGLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz );
9627117f1b4SmrgGLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz );
9637117f1b4Smrg
9647117f1b4SmrgGLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v );
9657117f1b4SmrgGLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v );
9667117f1b4SmrgGLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v );
9677117f1b4SmrgGLAPI void GLAPIENTRY glNormal3iv( const GLint *v );
9687117f1b4SmrgGLAPI void GLAPIENTRY glNormal3sv( const GLshort *v );
9697117f1b4Smrg
9707117f1b4Smrg
9717117f1b4SmrgGLAPI void GLAPIENTRY glIndexd( GLdouble c );
9727117f1b4SmrgGLAPI void GLAPIENTRY glIndexf( GLfloat c );
9737117f1b4SmrgGLAPI void GLAPIENTRY glIndexi( GLint c );
9747117f1b4SmrgGLAPI void GLAPIENTRY glIndexs( GLshort c );
9757117f1b4SmrgGLAPI void GLAPIENTRY glIndexub( GLubyte c );  /* 1.1 */
9767117f1b4Smrg
9777117f1b4SmrgGLAPI void GLAPIENTRY glIndexdv( const GLdouble *c );
9787117f1b4SmrgGLAPI void GLAPIENTRY glIndexfv( const GLfloat *c );
9797117f1b4SmrgGLAPI void GLAPIENTRY glIndexiv( const GLint *c );
9807117f1b4SmrgGLAPI void GLAPIENTRY glIndexsv( const GLshort *c );
9817117f1b4SmrgGLAPI void GLAPIENTRY glIndexubv( const GLubyte *c );  /* 1.1 */
9827117f1b4Smrg
9837117f1b4SmrgGLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue );
9847117f1b4SmrgGLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue );
9857117f1b4SmrgGLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue );
9867117f1b4SmrgGLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue );
9877117f1b4SmrgGLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue );
9887117f1b4SmrgGLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
9897117f1b4SmrgGLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue );
9907117f1b4SmrgGLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue );
9917117f1b4Smrg
9927117f1b4SmrgGLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green,
9937117f1b4Smrg                                   GLbyte blue, GLbyte alpha );
9947117f1b4SmrgGLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green,
9957117f1b4Smrg                                   GLdouble blue, GLdouble alpha );
9967117f1b4SmrgGLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green,
9977117f1b4Smrg                                   GLfloat blue, GLfloat alpha );
9987117f1b4SmrgGLAPI void GLAPIENTRY glColor4i( GLint red, GLint green,
9997117f1b4Smrg                                   GLint blue, GLint alpha );
10007117f1b4SmrgGLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green,
10017117f1b4Smrg                                   GLshort blue, GLshort alpha );
10027117f1b4SmrgGLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green,
10037117f1b4Smrg                                    GLubyte blue, GLubyte alpha );
10047117f1b4SmrgGLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green,
10057117f1b4Smrg                                    GLuint blue, GLuint alpha );
10067117f1b4SmrgGLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green,
10077117f1b4Smrg                                    GLushort blue, GLushort alpha );
10087117f1b4Smrg
10097117f1b4Smrg
10107117f1b4SmrgGLAPI void GLAPIENTRY glColor3bv( const GLbyte *v );
10117117f1b4SmrgGLAPI void GLAPIENTRY glColor3dv( const GLdouble *v );
10127117f1b4SmrgGLAPI void GLAPIENTRY glColor3fv( const GLfloat *v );
10137117f1b4SmrgGLAPI void GLAPIENTRY glColor3iv( const GLint *v );
10147117f1b4SmrgGLAPI void GLAPIENTRY glColor3sv( const GLshort *v );
10157117f1b4SmrgGLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v );
10167117f1b4SmrgGLAPI void GLAPIENTRY glColor3uiv( const GLuint *v );
10177117f1b4SmrgGLAPI void GLAPIENTRY glColor3usv( const GLushort *v );
10187117f1b4Smrg
10197117f1b4SmrgGLAPI void GLAPIENTRY glColor4bv( const GLbyte *v );
10207117f1b4SmrgGLAPI void GLAPIENTRY glColor4dv( const GLdouble *v );
10217117f1b4SmrgGLAPI void GLAPIENTRY glColor4fv( const GLfloat *v );
10227117f1b4SmrgGLAPI void GLAPIENTRY glColor4iv( const GLint *v );
10237117f1b4SmrgGLAPI void GLAPIENTRY glColor4sv( const GLshort *v );
10247117f1b4SmrgGLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v );
10257117f1b4SmrgGLAPI void GLAPIENTRY glColor4uiv( const GLuint *v );
10267117f1b4SmrgGLAPI void GLAPIENTRY glColor4usv( const GLushort *v );
10277117f1b4Smrg
10287117f1b4Smrg
10297117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1d( GLdouble s );
10307117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1f( GLfloat s );
10317117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1i( GLint s );
10327117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1s( GLshort s );
10337117f1b4Smrg
10347117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t );
10357117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t );
10367117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t );
10377117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t );
10387117f1b4Smrg
10397117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
10407117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
10417117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r );
10427117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r );
10437117f1b4Smrg
10447117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
10457117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
10467117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
10477117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
10487117f1b4Smrg
10497117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v );
10507117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v );
10517117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v );
10527117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v );
10537117f1b4Smrg
10547117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v );
10557117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v );
10567117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v );
10577117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v );
10587117f1b4Smrg
10597117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v );
10607117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v );
10617117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v );
10627117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v );
10637117f1b4Smrg
10647117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v );
10657117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v );
10667117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v );
10677117f1b4SmrgGLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v );
10687117f1b4Smrg
10697117f1b4Smrg
10707117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y );
10717117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y );
10727117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y );
10737117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y );
10747117f1b4Smrg
10757117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
10767117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
10777117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z );
10787117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z );
10797117f1b4Smrg
10807117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
10817117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
10827117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
10837117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
10847117f1b4Smrg
10857117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v );
10867117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v );
10877117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v );
10887117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v );
10897117f1b4Smrg
10907117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v );
10917117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v );
10927117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v );
10937117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v );
10947117f1b4Smrg
10957117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v );
10967117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v );
10977117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v );
10987117f1b4SmrgGLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v );
10997117f1b4Smrg
11007117f1b4Smrg
11017117f1b4SmrgGLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
11027117f1b4SmrgGLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
11037117f1b4SmrgGLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
11047117f1b4SmrgGLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
11057117f1b4Smrg
11067117f1b4Smrg
11077117f1b4SmrgGLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 );
11087117f1b4SmrgGLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 );
11097117f1b4SmrgGLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 );
11107117f1b4SmrgGLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 );
11117117f1b4Smrg
11127117f1b4Smrg
11137117f1b4Smrg/*
11147117f1b4Smrg * Vertex Arrays  (1.1)
11157117f1b4Smrg */
11167117f1b4Smrg
11177117f1b4SmrgGLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
11187117f1b4Smrg                                       GLsizei stride, const GLvoid *ptr );
11197117f1b4Smrg
11207117f1b4SmrgGLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride,
11217117f1b4Smrg                                       const GLvoid *ptr );
11227117f1b4Smrg
11237117f1b4SmrgGLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type,
11247117f1b4Smrg                                      GLsizei stride, const GLvoid *ptr );
11257117f1b4Smrg
11267117f1b4SmrgGLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride,
11277117f1b4Smrg                                      const GLvoid *ptr );
11287117f1b4Smrg
11297117f1b4SmrgGLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type,
11307117f1b4Smrg                                         GLsizei stride, const GLvoid *ptr );
11317117f1b4Smrg
11327117f1b4SmrgGLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
11337117f1b4Smrg
11347117f1b4SmrgGLAPI void GLAPIENTRY glGetPointerv( GLenum pname, GLvoid **params );
11357117f1b4Smrg
11367117f1b4SmrgGLAPI void GLAPIENTRY glArrayElement( GLint i );
11377117f1b4Smrg
11387117f1b4SmrgGLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count );
11397117f1b4Smrg
11407117f1b4SmrgGLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count,
11417117f1b4Smrg                                      GLenum type, const GLvoid *indices );
11427117f1b4Smrg
11437117f1b4SmrgGLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride,
11447117f1b4Smrg                                           const GLvoid *pointer );
11457117f1b4Smrg
11467117f1b4Smrg/*
11477117f1b4Smrg * Lighting
11487117f1b4Smrg */
11497117f1b4Smrg
11507117f1b4SmrgGLAPI void GLAPIENTRY glShadeModel( GLenum mode );
11517117f1b4Smrg
11527117f1b4SmrgGLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
11537117f1b4SmrgGLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param );
11547117f1b4SmrgGLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname,
11557117f1b4Smrg                                 const GLfloat *params );
11567117f1b4SmrgGLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname,
11577117f1b4Smrg                                 const GLint *params );
11587117f1b4Smrg
11597117f1b4SmrgGLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname,
11607117f1b4Smrg                                    GLfloat *params );
11617117f1b4SmrgGLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname,
11627117f1b4Smrg                                    GLint *params );
11637117f1b4Smrg
11647117f1b4SmrgGLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param );
11657117f1b4SmrgGLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param );
11667117f1b4SmrgGLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params );
11677117f1b4SmrgGLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params );
11687117f1b4Smrg
11697117f1b4SmrgGLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param );
11707117f1b4SmrgGLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param );
11717117f1b4SmrgGLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
11727117f1b4SmrgGLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params );
11737117f1b4Smrg
11747117f1b4SmrgGLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
11757117f1b4SmrgGLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
11767117f1b4Smrg
11777117f1b4SmrgGLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode );
11787117f1b4Smrg
11797117f1b4Smrg
11807117f1b4Smrg/*
11817117f1b4Smrg * Raster functions
11827117f1b4Smrg */
11837117f1b4Smrg
11847117f1b4SmrgGLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor );
11857117f1b4Smrg
11867117f1b4SmrgGLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param );
11877117f1b4SmrgGLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param );
11887117f1b4Smrg
11897117f1b4SmrgGLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param );
11907117f1b4SmrgGLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param );
11917117f1b4Smrg
11927117f1b4SmrgGLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLsizei mapsize,
11937117f1b4Smrg                                    const GLfloat *values );
11947117f1b4SmrgGLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLsizei mapsize,
11957117f1b4Smrg                                     const GLuint *values );
11967117f1b4SmrgGLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLsizei mapsize,
11977117f1b4Smrg                                     const GLushort *values );
11987117f1b4Smrg
11997117f1b4SmrgGLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values );
12007117f1b4SmrgGLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values );
12017117f1b4SmrgGLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values );
12027117f1b4Smrg
12037117f1b4SmrgGLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height,
12047117f1b4Smrg                                GLfloat xorig, GLfloat yorig,
12057117f1b4Smrg                                GLfloat xmove, GLfloat ymove,
12067117f1b4Smrg                                const GLubyte *bitmap );
12077117f1b4Smrg
12087117f1b4SmrgGLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y,
12097117f1b4Smrg                                    GLsizei width, GLsizei height,
12107117f1b4Smrg                                    GLenum format, GLenum type,
12117117f1b4Smrg                                    GLvoid *pixels );
12127117f1b4Smrg
12137117f1b4SmrgGLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height,
12147117f1b4Smrg                                    GLenum format, GLenum type,
12157117f1b4Smrg                                    const GLvoid *pixels );
12167117f1b4Smrg
12177117f1b4SmrgGLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y,
12187117f1b4Smrg                                    GLsizei width, GLsizei height,
12197117f1b4Smrg                                    GLenum type );
12207117f1b4Smrg
12217117f1b4Smrg/*
12227117f1b4Smrg * Stenciling
12237117f1b4Smrg */
12247117f1b4Smrg
12257117f1b4SmrgGLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask );
12267117f1b4Smrg
12277117f1b4SmrgGLAPI void GLAPIENTRY glStencilMask( GLuint mask );
12287117f1b4Smrg
12297117f1b4SmrgGLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
12307117f1b4Smrg
12317117f1b4SmrgGLAPI void GLAPIENTRY glClearStencil( GLint s );
12327117f1b4Smrg
12337117f1b4Smrg
12347117f1b4Smrg
12357117f1b4Smrg/*
12367117f1b4Smrg * Texture mapping
12377117f1b4Smrg */
12387117f1b4Smrg
12397117f1b4SmrgGLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param );
12407117f1b4SmrgGLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param );
12417117f1b4SmrgGLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param );
12427117f1b4Smrg
12437117f1b4SmrgGLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
12447117f1b4SmrgGLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
12457117f1b4SmrgGLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
12467117f1b4Smrg
12477117f1b4SmrgGLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
12487117f1b4SmrgGLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
12497117f1b4SmrgGLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
12507117f1b4Smrg
12517117f1b4Smrg
12527117f1b4SmrgGLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param );
12537117f1b4SmrgGLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param );
12547117f1b4Smrg
12557117f1b4SmrgGLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
12567117f1b4SmrgGLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params );
12577117f1b4Smrg
12587117f1b4SmrgGLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
12597117f1b4SmrgGLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
12607117f1b4Smrg
12617117f1b4Smrg
12627117f1b4SmrgGLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param );
12637117f1b4SmrgGLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param );
12647117f1b4Smrg
12657117f1b4SmrgGLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname,
12667117f1b4Smrg                                          const GLfloat *params );
12677117f1b4SmrgGLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname,
12687117f1b4Smrg                                          const GLint *params );
12697117f1b4Smrg
12707117f1b4SmrgGLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target,
12717117f1b4Smrg                                           GLenum pname, GLfloat *params);
12727117f1b4SmrgGLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target,
12737117f1b4Smrg                                           GLenum pname, GLint *params );
12747117f1b4Smrg
12757117f1b4SmrgGLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level,
12767117f1b4Smrg                                                GLenum pname, GLfloat *params );
12777117f1b4SmrgGLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level,
12787117f1b4Smrg                                                GLenum pname, GLint *params );
12797117f1b4Smrg
12807117f1b4Smrg
12817117f1b4SmrgGLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level,
12827117f1b4Smrg                                    GLint internalFormat,
12837117f1b4Smrg                                    GLsizei width, GLint border,
12847117f1b4Smrg                                    GLenum format, GLenum type,
12857117f1b4Smrg                                    const GLvoid *pixels );
12867117f1b4Smrg
12877117f1b4SmrgGLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level,
12887117f1b4Smrg                                    GLint internalFormat,
12897117f1b4Smrg                                    GLsizei width, GLsizei height,
12907117f1b4Smrg                                    GLint border, GLenum format, GLenum type,
12917117f1b4Smrg                                    const GLvoid *pixels );
12927117f1b4Smrg
12937117f1b4SmrgGLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level,
12947117f1b4Smrg                                     GLenum format, GLenum type,
12957117f1b4Smrg                                     GLvoid *pixels );
12967117f1b4Smrg
12977117f1b4Smrg
12987117f1b4Smrg/* 1.1 functions */
12997117f1b4Smrg
13007117f1b4SmrgGLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures );
13017117f1b4Smrg
13027117f1b4SmrgGLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
13037117f1b4Smrg
13047117f1b4SmrgGLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture );
13057117f1b4Smrg
13067117f1b4SmrgGLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n,
13077117f1b4Smrg                                            const GLuint *textures,
13087117f1b4Smrg                                            const GLclampf *priorities );
13097117f1b4Smrg
13107117f1b4SmrgGLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n,
13117117f1b4Smrg                                                  const GLuint *textures,
13127117f1b4Smrg                                                  GLboolean *residences );
13137117f1b4Smrg
13147117f1b4SmrgGLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture );
13157117f1b4Smrg
13167117f1b4Smrg
13177117f1b4SmrgGLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level,
13187117f1b4Smrg                                       GLint xoffset,
13197117f1b4Smrg                                       GLsizei width, GLenum format,
13207117f1b4Smrg                                       GLenum type, const GLvoid *pixels );
13217117f1b4Smrg
13227117f1b4Smrg
13237117f1b4SmrgGLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level,
13247117f1b4Smrg                                       GLint xoffset, GLint yoffset,
13257117f1b4Smrg                                       GLsizei width, GLsizei height,
13267117f1b4Smrg                                       GLenum format, GLenum type,
13277117f1b4Smrg                                       const GLvoid *pixels );
13287117f1b4Smrg
13297117f1b4Smrg
13307117f1b4SmrgGLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level,
13317117f1b4Smrg                                        GLenum internalformat,
13327117f1b4Smrg                                        GLint x, GLint y,
13337117f1b4Smrg                                        GLsizei width, GLint border );
13347117f1b4Smrg
13357117f1b4Smrg
13367117f1b4SmrgGLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level,
13377117f1b4Smrg                                        GLenum internalformat,
13387117f1b4Smrg                                        GLint x, GLint y,
13397117f1b4Smrg                                        GLsizei width, GLsizei height,
13407117f1b4Smrg                                        GLint border );
13417117f1b4Smrg
13427117f1b4Smrg
13437117f1b4SmrgGLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level,
13447117f1b4Smrg                                           GLint xoffset, GLint x, GLint y,
13457117f1b4Smrg                                           GLsizei width );
13467117f1b4Smrg
13477117f1b4Smrg
13487117f1b4SmrgGLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level,
13497117f1b4Smrg                                           GLint xoffset, GLint yoffset,
13507117f1b4Smrg                                           GLint x, GLint y,
13517117f1b4Smrg                                           GLsizei width, GLsizei height );
13527117f1b4Smrg
13537117f1b4Smrg
13547117f1b4Smrg/*
13557117f1b4Smrg * Evaluators
13567117f1b4Smrg */
13577117f1b4Smrg
13587117f1b4SmrgGLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2,
13597117f1b4Smrg                               GLint stride,
13607117f1b4Smrg                               GLint order, const GLdouble *points );
13617117f1b4SmrgGLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2,
13627117f1b4Smrg                               GLint stride,
13637117f1b4Smrg                               GLint order, const GLfloat *points );
13647117f1b4Smrg
13657117f1b4SmrgGLAPI void GLAPIENTRY glMap2d( GLenum target,
13667117f1b4Smrg		     GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
13677117f1b4Smrg		     GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
13687117f1b4Smrg		     const GLdouble *points );
13697117f1b4SmrgGLAPI void GLAPIENTRY glMap2f( GLenum target,
13707117f1b4Smrg		     GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
13717117f1b4Smrg		     GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
13727117f1b4Smrg		     const GLfloat *points );
13737117f1b4Smrg
13747117f1b4SmrgGLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v );
13757117f1b4SmrgGLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v );
13767117f1b4SmrgGLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v );
13777117f1b4Smrg
13787117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u );
13797117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u );
13807117f1b4Smrg
13817117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u );
13827117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u );
13837117f1b4Smrg
13847117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v );
13857117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v );
13867117f1b4Smrg
13877117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u );
13887117f1b4SmrgGLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u );
13897117f1b4Smrg
13907117f1b4SmrgGLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
13917117f1b4SmrgGLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
13927117f1b4Smrg
13937117f1b4SmrgGLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
13947117f1b4Smrg                                   GLint vn, GLdouble v1, GLdouble v2 );
13957117f1b4SmrgGLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
13967117f1b4Smrg                                   GLint vn, GLfloat v1, GLfloat v2 );
13977117f1b4Smrg
13987117f1b4SmrgGLAPI void GLAPIENTRY glEvalPoint1( GLint i );
13997117f1b4Smrg
14007117f1b4SmrgGLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j );
14017117f1b4Smrg
14027117f1b4SmrgGLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
14037117f1b4Smrg
14047117f1b4SmrgGLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
14057117f1b4Smrg
14067117f1b4Smrg
14077117f1b4Smrg/*
14087117f1b4Smrg * Fog
14097117f1b4Smrg */
14107117f1b4Smrg
14117117f1b4SmrgGLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param );
14127117f1b4Smrg
14137117f1b4SmrgGLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param );
14147117f1b4Smrg
14157117f1b4SmrgGLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params );
14167117f1b4Smrg
14177117f1b4SmrgGLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params );
14187117f1b4Smrg
14197117f1b4Smrg
14207117f1b4Smrg/*
14217117f1b4Smrg * Selection and Feedback
14227117f1b4Smrg */
14237117f1b4Smrg
14247117f1b4SmrgGLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
14257117f1b4Smrg
14267117f1b4SmrgGLAPI void GLAPIENTRY glPassThrough( GLfloat token );
14277117f1b4Smrg
14287117f1b4SmrgGLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer );
14297117f1b4Smrg
14307117f1b4SmrgGLAPI void GLAPIENTRY glInitNames( void );
14317117f1b4Smrg
14327117f1b4SmrgGLAPI void GLAPIENTRY glLoadName( GLuint name );
14337117f1b4Smrg
14347117f1b4SmrgGLAPI void GLAPIENTRY glPushName( GLuint name );
14357117f1b4Smrg
14367117f1b4SmrgGLAPI void GLAPIENTRY glPopName( void );
14377117f1b4Smrg
14387117f1b4Smrg
14397117f1b4Smrg
14407117f1b4Smrg/*
14417117f1b4Smrg * OpenGL 1.2
14427117f1b4Smrg */
14437117f1b4Smrg
14447117f1b4Smrg#define GL_RESCALE_NORMAL			0x803A
14457117f1b4Smrg#define GL_CLAMP_TO_EDGE			0x812F
14467117f1b4Smrg#define GL_MAX_ELEMENTS_VERTICES		0x80E8
14477117f1b4Smrg#define GL_MAX_ELEMENTS_INDICES			0x80E9
14487117f1b4Smrg#define GL_BGR					0x80E0
14497117f1b4Smrg#define GL_BGRA					0x80E1
14507117f1b4Smrg#define GL_UNSIGNED_BYTE_3_3_2			0x8032
14517117f1b4Smrg#define GL_UNSIGNED_BYTE_2_3_3_REV		0x8362
14527117f1b4Smrg#define GL_UNSIGNED_SHORT_5_6_5			0x8363
14537117f1b4Smrg#define GL_UNSIGNED_SHORT_5_6_5_REV		0x8364
14547117f1b4Smrg#define GL_UNSIGNED_SHORT_4_4_4_4		0x8033
14557117f1b4Smrg#define GL_UNSIGNED_SHORT_4_4_4_4_REV		0x8365
14567117f1b4Smrg#define GL_UNSIGNED_SHORT_5_5_5_1		0x8034
14577117f1b4Smrg#define GL_UNSIGNED_SHORT_1_5_5_5_REV		0x8366
14587117f1b4Smrg#define GL_UNSIGNED_INT_8_8_8_8			0x8035
14597117f1b4Smrg#define GL_UNSIGNED_INT_8_8_8_8_REV		0x8367
14607117f1b4Smrg#define GL_UNSIGNED_INT_10_10_10_2		0x8036
14617117f1b4Smrg#define GL_UNSIGNED_INT_2_10_10_10_REV		0x8368
14627117f1b4Smrg#define GL_LIGHT_MODEL_COLOR_CONTROL		0x81F8
14637117f1b4Smrg#define GL_SINGLE_COLOR				0x81F9
14647117f1b4Smrg#define GL_SEPARATE_SPECULAR_COLOR		0x81FA
14657117f1b4Smrg#define GL_TEXTURE_MIN_LOD			0x813A
14667117f1b4Smrg#define GL_TEXTURE_MAX_LOD			0x813B
14677117f1b4Smrg#define GL_TEXTURE_BASE_LEVEL			0x813C
14687117f1b4Smrg#define GL_TEXTURE_MAX_LEVEL			0x813D
14697117f1b4Smrg#define GL_SMOOTH_POINT_SIZE_RANGE		0x0B12
14707117f1b4Smrg#define GL_SMOOTH_POINT_SIZE_GRANULARITY	0x0B13
14717117f1b4Smrg#define GL_SMOOTH_LINE_WIDTH_RANGE		0x0B22
14727117f1b4Smrg#define GL_SMOOTH_LINE_WIDTH_GRANULARITY	0x0B23
14737117f1b4Smrg#define GL_ALIASED_POINT_SIZE_RANGE		0x846D
14747117f1b4Smrg#define GL_ALIASED_LINE_WIDTH_RANGE		0x846E
14757117f1b4Smrg#define GL_PACK_SKIP_IMAGES			0x806B
14767117f1b4Smrg#define GL_PACK_IMAGE_HEIGHT			0x806C
14777117f1b4Smrg#define GL_UNPACK_SKIP_IMAGES			0x806D
14787117f1b4Smrg#define GL_UNPACK_IMAGE_HEIGHT			0x806E
14797117f1b4Smrg#define GL_TEXTURE_3D				0x806F
14807117f1b4Smrg#define GL_PROXY_TEXTURE_3D			0x8070
14817117f1b4Smrg#define GL_TEXTURE_DEPTH			0x8071
14827117f1b4Smrg#define GL_TEXTURE_WRAP_R			0x8072
14837117f1b4Smrg#define GL_MAX_3D_TEXTURE_SIZE			0x8073
14847117f1b4Smrg#define GL_TEXTURE_BINDING_3D			0x806A
14857117f1b4Smrg
14867117f1b4SmrgGLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start,
14877117f1b4Smrg	GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
14887117f1b4Smrg
14897117f1b4SmrgGLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level,
14907117f1b4Smrg                                      GLint internalFormat,
14917117f1b4Smrg                                      GLsizei width, GLsizei height,
14927117f1b4Smrg                                      GLsizei depth, GLint border,
14937117f1b4Smrg                                      GLenum format, GLenum type,
14947117f1b4Smrg                                      const GLvoid *pixels );
14957117f1b4Smrg
14967117f1b4SmrgGLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level,
14977117f1b4Smrg                                         GLint xoffset, GLint yoffset,
14987117f1b4Smrg                                         GLint zoffset, GLsizei width,
14997117f1b4Smrg                                         GLsizei height, GLsizei depth,
15007117f1b4Smrg                                         GLenum format,
15017117f1b4Smrg                                         GLenum type, const GLvoid *pixels);
15027117f1b4Smrg
15037117f1b4SmrgGLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level,
15047117f1b4Smrg                                             GLint xoffset, GLint yoffset,
15057117f1b4Smrg                                             GLint zoffset, GLint x,
15067117f1b4Smrg                                             GLint y, GLsizei width,
15077117f1b4Smrg                                             GLsizei height );
15087117f1b4Smrg
15097117f1b4Smrgtypedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
15107117f1b4Smrgtypedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
15117117f1b4Smrgtypedef 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);
15127117f1b4Smrgtypedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
15137117f1b4Smrg
15147117f1b4Smrg
15157117f1b4Smrg/*
15167117f1b4Smrg * GL_ARB_imaging
15177117f1b4Smrg */
15187117f1b4Smrg
15197117f1b4Smrg#define GL_CONSTANT_COLOR			0x8001
15207117f1b4Smrg#define GL_ONE_MINUS_CONSTANT_COLOR		0x8002
15217117f1b4Smrg#define GL_CONSTANT_ALPHA			0x8003
15227117f1b4Smrg#define GL_ONE_MINUS_CONSTANT_ALPHA		0x8004
15237117f1b4Smrg#define GL_COLOR_TABLE				0x80D0
15247117f1b4Smrg#define GL_POST_CONVOLUTION_COLOR_TABLE		0x80D1
15257117f1b4Smrg#define GL_POST_COLOR_MATRIX_COLOR_TABLE	0x80D2
15267117f1b4Smrg#define GL_PROXY_COLOR_TABLE			0x80D3
15277117f1b4Smrg#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE	0x80D4
15287117f1b4Smrg#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE	0x80D5
15297117f1b4Smrg#define GL_COLOR_TABLE_SCALE			0x80D6
15307117f1b4Smrg#define GL_COLOR_TABLE_BIAS			0x80D7
15317117f1b4Smrg#define GL_COLOR_TABLE_FORMAT			0x80D8
15327117f1b4Smrg#define GL_COLOR_TABLE_WIDTH			0x80D9
15337117f1b4Smrg#define GL_COLOR_TABLE_RED_SIZE			0x80DA
15347117f1b4Smrg#define GL_COLOR_TABLE_GREEN_SIZE		0x80DB
15357117f1b4Smrg#define GL_COLOR_TABLE_BLUE_SIZE		0x80DC
15367117f1b4Smrg#define GL_COLOR_TABLE_ALPHA_SIZE		0x80DD
15377117f1b4Smrg#define GL_COLOR_TABLE_LUMINANCE_SIZE		0x80DE
15387117f1b4Smrg#define GL_COLOR_TABLE_INTENSITY_SIZE		0x80DF
15397117f1b4Smrg#define GL_CONVOLUTION_1D			0x8010
15407117f1b4Smrg#define GL_CONVOLUTION_2D			0x8011
15417117f1b4Smrg#define GL_SEPARABLE_2D				0x8012
15427117f1b4Smrg#define GL_CONVOLUTION_BORDER_MODE		0x8013
15437117f1b4Smrg#define GL_CONVOLUTION_FILTER_SCALE		0x8014
15447117f1b4Smrg#define GL_CONVOLUTION_FILTER_BIAS		0x8015
15457117f1b4Smrg#define GL_REDUCE				0x8016
15467117f1b4Smrg#define GL_CONVOLUTION_FORMAT			0x8017
15477117f1b4Smrg#define GL_CONVOLUTION_WIDTH			0x8018
15487117f1b4Smrg#define GL_CONVOLUTION_HEIGHT			0x8019
15497117f1b4Smrg#define GL_MAX_CONVOLUTION_WIDTH		0x801A
15507117f1b4Smrg#define GL_MAX_CONVOLUTION_HEIGHT		0x801B
15517117f1b4Smrg#define GL_POST_CONVOLUTION_RED_SCALE		0x801C
15527117f1b4Smrg#define GL_POST_CONVOLUTION_GREEN_SCALE		0x801D
15537117f1b4Smrg#define GL_POST_CONVOLUTION_BLUE_SCALE		0x801E
15547117f1b4Smrg#define GL_POST_CONVOLUTION_ALPHA_SCALE		0x801F
15557117f1b4Smrg#define GL_POST_CONVOLUTION_RED_BIAS		0x8020
15567117f1b4Smrg#define GL_POST_CONVOLUTION_GREEN_BIAS		0x8021
15577117f1b4Smrg#define GL_POST_CONVOLUTION_BLUE_BIAS		0x8022
15587117f1b4Smrg#define GL_POST_CONVOLUTION_ALPHA_BIAS		0x8023
15597117f1b4Smrg#define GL_CONSTANT_BORDER			0x8151
15607117f1b4Smrg#define GL_REPLICATE_BORDER			0x8153
15617117f1b4Smrg#define GL_CONVOLUTION_BORDER_COLOR		0x8154
15627117f1b4Smrg#define GL_COLOR_MATRIX				0x80B1
15637117f1b4Smrg#define GL_COLOR_MATRIX_STACK_DEPTH		0x80B2
15647117f1b4Smrg#define GL_MAX_COLOR_MATRIX_STACK_DEPTH		0x80B3
15657117f1b4Smrg#define GL_POST_COLOR_MATRIX_RED_SCALE		0x80B4
15667117f1b4Smrg#define GL_POST_COLOR_MATRIX_GREEN_SCALE	0x80B5
15677117f1b4Smrg#define GL_POST_COLOR_MATRIX_BLUE_SCALE		0x80B6
15687117f1b4Smrg#define GL_POST_COLOR_MATRIX_ALPHA_SCALE	0x80B7
15697117f1b4Smrg#define GL_POST_COLOR_MATRIX_RED_BIAS		0x80B8
15707117f1b4Smrg#define GL_POST_COLOR_MATRIX_GREEN_BIAS		0x80B9
15717117f1b4Smrg#define GL_POST_COLOR_MATRIX_BLUE_BIAS		0x80BA
15727117f1b4Smrg#define GL_POST_COLOR_MATRIX_ALPHA_BIAS		0x80BB
15737117f1b4Smrg#define GL_HISTOGRAM				0x8024
15747117f1b4Smrg#define GL_PROXY_HISTOGRAM			0x8025
15757117f1b4Smrg#define GL_HISTOGRAM_WIDTH			0x8026
15767117f1b4Smrg#define GL_HISTOGRAM_FORMAT			0x8027
15777117f1b4Smrg#define GL_HISTOGRAM_RED_SIZE			0x8028
15787117f1b4Smrg#define GL_HISTOGRAM_GREEN_SIZE			0x8029
15797117f1b4Smrg#define GL_HISTOGRAM_BLUE_SIZE			0x802A
15807117f1b4Smrg#define GL_HISTOGRAM_ALPHA_SIZE			0x802B
15817117f1b4Smrg#define GL_HISTOGRAM_LUMINANCE_SIZE		0x802C
15827117f1b4Smrg#define GL_HISTOGRAM_SINK			0x802D
15837117f1b4Smrg#define GL_MINMAX				0x802E
15847117f1b4Smrg#define GL_MINMAX_FORMAT			0x802F
15857117f1b4Smrg#define GL_MINMAX_SINK				0x8030
15867117f1b4Smrg#define GL_TABLE_TOO_LARGE			0x8031
15877117f1b4Smrg#define GL_BLEND_EQUATION			0x8009
15887117f1b4Smrg#define GL_MIN					0x8007
15897117f1b4Smrg#define GL_MAX					0x8008
15907117f1b4Smrg#define GL_FUNC_ADD				0x8006
15917117f1b4Smrg#define GL_FUNC_SUBTRACT			0x800A
15927117f1b4Smrg#define GL_FUNC_REVERSE_SUBTRACT		0x800B
15937117f1b4Smrg#define GL_BLEND_COLOR				0x8005
15947117f1b4Smrg
15957117f1b4Smrg
15967117f1b4SmrgGLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat,
15977117f1b4Smrg                                    GLsizei width, GLenum format,
15987117f1b4Smrg                                    GLenum type, const GLvoid *table );
15997117f1b4Smrg
16007117f1b4SmrgGLAPI void GLAPIENTRY glColorSubTable( GLenum target,
16017117f1b4Smrg                                       GLsizei start, GLsizei count,
16027117f1b4Smrg                                       GLenum format, GLenum type,
16037117f1b4Smrg                                       const GLvoid *data );
16047117f1b4Smrg
16057117f1b4SmrgGLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname,
16067117f1b4Smrg                                              const GLint *params);
16077117f1b4Smrg
16087117f1b4SmrgGLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname,
16097117f1b4Smrg                                              const GLfloat *params);
16107117f1b4Smrg
16117117f1b4SmrgGLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
16127117f1b4Smrg                                           GLint x, GLint y, GLsizei width );
16137117f1b4Smrg
16147117f1b4SmrgGLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
16157117f1b4Smrg                                        GLint x, GLint y, GLsizei width );
16167117f1b4Smrg
16177117f1b4SmrgGLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format,
16187117f1b4Smrg                                       GLenum type, GLvoid *table );
16197117f1b4Smrg
16207117f1b4SmrgGLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname,
16217117f1b4Smrg                                                  GLfloat *params );
16227117f1b4Smrg
16237117f1b4SmrgGLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname,
16247117f1b4Smrg                                                  GLint *params );
16257117f1b4Smrg
16267117f1b4SmrgGLAPI void GLAPIENTRY glBlendEquation( GLenum mode );
16277117f1b4Smrg
16287117f1b4SmrgGLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green,
16297117f1b4Smrg                                    GLclampf blue, GLclampf alpha );
16307117f1b4Smrg
16317117f1b4SmrgGLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width,
16327117f1b4Smrg				   GLenum internalformat, GLboolean sink );
16337117f1b4Smrg
16347117f1b4SmrgGLAPI void GLAPIENTRY glResetHistogram( GLenum target );
16357117f1b4Smrg
16367117f1b4SmrgGLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset,
16377117f1b4Smrg				      GLenum format, GLenum type,
16387117f1b4Smrg				      GLvoid *values );
16397117f1b4Smrg
16407117f1b4SmrgGLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname,
16417117f1b4Smrg						 GLfloat *params );
16427117f1b4Smrg
16437117f1b4SmrgGLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname,
16447117f1b4Smrg						 GLint *params );
16457117f1b4Smrg
16467117f1b4SmrgGLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat,
16477117f1b4Smrg				GLboolean sink );
16487117f1b4Smrg
16497117f1b4SmrgGLAPI void GLAPIENTRY glResetMinmax( GLenum target );
16507117f1b4Smrg
16517117f1b4SmrgGLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset,
16527117f1b4Smrg                                   GLenum format, GLenum types,
16537117f1b4Smrg                                   GLvoid *values );
16547117f1b4Smrg
16557117f1b4SmrgGLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname,
16567117f1b4Smrg					      GLfloat *params );
16577117f1b4Smrg
16587117f1b4SmrgGLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname,
16597117f1b4Smrg					      GLint *params );
16607117f1b4Smrg
16617117f1b4SmrgGLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target,
16627117f1b4Smrg	GLenum internalformat, GLsizei width, GLenum format, GLenum type,
16637117f1b4Smrg	const GLvoid *image );
16647117f1b4Smrg
16657117f1b4SmrgGLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target,
16667117f1b4Smrg	GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
16677117f1b4Smrg	GLenum type, const GLvoid *image );
16687117f1b4Smrg
16697117f1b4SmrgGLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname,
16707117f1b4Smrg	GLfloat params );
16717117f1b4Smrg
16727117f1b4SmrgGLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname,
16737117f1b4Smrg	const GLfloat *params );
16747117f1b4Smrg
16757117f1b4SmrgGLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname,
16767117f1b4Smrg	GLint params );
16777117f1b4Smrg
16787117f1b4SmrgGLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname,
16797117f1b4Smrg	const GLint *params );
16807117f1b4Smrg
16817117f1b4SmrgGLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target,
16827117f1b4Smrg	GLenum internalformat, GLint x, GLint y, GLsizei width );
16837117f1b4Smrg
16847117f1b4SmrgGLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target,
16857117f1b4Smrg	GLenum internalformat, GLint x, GLint y, GLsizei width,
16867117f1b4Smrg	GLsizei height);
16877117f1b4Smrg
16887117f1b4SmrgGLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format,
16897117f1b4Smrg	GLenum type, GLvoid *image );
16907117f1b4Smrg
16917117f1b4SmrgGLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname,
16927117f1b4Smrg	GLfloat *params );
16937117f1b4Smrg
16947117f1b4SmrgGLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname,
16957117f1b4Smrg	GLint *params );
16967117f1b4Smrg
16977117f1b4SmrgGLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target,
16987117f1b4Smrg	GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
16997117f1b4Smrg	GLenum type, const GLvoid *row, const GLvoid *column );
17007117f1b4Smrg
17017117f1b4SmrgGLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
17027117f1b4Smrg	GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
17037117f1b4Smrg
17047117f1b4Smrg
17057117f1b4Smrg
17067117f1b4Smrg
17077117f1b4Smrg/*
17087117f1b4Smrg * OpenGL 1.3
17097117f1b4Smrg */
17107117f1b4Smrg
17117117f1b4Smrg/* multitexture */
17127117f1b4Smrg#define GL_TEXTURE0				0x84C0
17137117f1b4Smrg#define GL_TEXTURE1				0x84C1
17147117f1b4Smrg#define GL_TEXTURE2				0x84C2
17157117f1b4Smrg#define GL_TEXTURE3				0x84C3
17167117f1b4Smrg#define GL_TEXTURE4				0x84C4
17177117f1b4Smrg#define GL_TEXTURE5				0x84C5
17187117f1b4Smrg#define GL_TEXTURE6				0x84C6
17197117f1b4Smrg#define GL_TEXTURE7				0x84C7
17207117f1b4Smrg#define GL_TEXTURE8				0x84C8
17217117f1b4Smrg#define GL_TEXTURE9				0x84C9
17227117f1b4Smrg#define GL_TEXTURE10				0x84CA
17237117f1b4Smrg#define GL_TEXTURE11				0x84CB
17247117f1b4Smrg#define GL_TEXTURE12				0x84CC
17257117f1b4Smrg#define GL_TEXTURE13				0x84CD
17267117f1b4Smrg#define GL_TEXTURE14				0x84CE
17277117f1b4Smrg#define GL_TEXTURE15				0x84CF
17287117f1b4Smrg#define GL_TEXTURE16				0x84D0
17297117f1b4Smrg#define GL_TEXTURE17				0x84D1
17307117f1b4Smrg#define GL_TEXTURE18				0x84D2
17317117f1b4Smrg#define GL_TEXTURE19				0x84D3
17327117f1b4Smrg#define GL_TEXTURE20				0x84D4
17337117f1b4Smrg#define GL_TEXTURE21				0x84D5
17347117f1b4Smrg#define GL_TEXTURE22				0x84D6
17357117f1b4Smrg#define GL_TEXTURE23				0x84D7
17367117f1b4Smrg#define GL_TEXTURE24				0x84D8
17377117f1b4Smrg#define GL_TEXTURE25				0x84D9
17387117f1b4Smrg#define GL_TEXTURE26				0x84DA
17397117f1b4Smrg#define GL_TEXTURE27				0x84DB
17407117f1b4Smrg#define GL_TEXTURE28				0x84DC
17417117f1b4Smrg#define GL_TEXTURE29				0x84DD
17427117f1b4Smrg#define GL_TEXTURE30				0x84DE
17437117f1b4Smrg#define GL_TEXTURE31				0x84DF
17447117f1b4Smrg#define GL_ACTIVE_TEXTURE			0x84E0
17457117f1b4Smrg#define GL_CLIENT_ACTIVE_TEXTURE		0x84E1
17467117f1b4Smrg#define GL_MAX_TEXTURE_UNITS			0x84E2
17477117f1b4Smrg/* texture_cube_map */
17487117f1b4Smrg#define GL_NORMAL_MAP				0x8511
17497117f1b4Smrg#define GL_REFLECTION_MAP			0x8512
17507117f1b4Smrg#define GL_TEXTURE_CUBE_MAP			0x8513
17517117f1b4Smrg#define GL_TEXTURE_BINDING_CUBE_MAP		0x8514
17527117f1b4Smrg#define GL_TEXTURE_CUBE_MAP_POSITIVE_X		0x8515
17537117f1b4Smrg#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X		0x8516
17547117f1b4Smrg#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y		0x8517
17557117f1b4Smrg#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y		0x8518
17567117f1b4Smrg#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z		0x8519
17577117f1b4Smrg#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z		0x851A
17587117f1b4Smrg#define GL_PROXY_TEXTURE_CUBE_MAP		0x851B
17597117f1b4Smrg#define GL_MAX_CUBE_MAP_TEXTURE_SIZE		0x851C
17607117f1b4Smrg/* texture_compression */
17617117f1b4Smrg#define GL_COMPRESSED_ALPHA			0x84E9
17627117f1b4Smrg#define GL_COMPRESSED_LUMINANCE			0x84EA
17637117f1b4Smrg#define GL_COMPRESSED_LUMINANCE_ALPHA		0x84EB
17647117f1b4Smrg#define GL_COMPRESSED_INTENSITY			0x84EC
17657117f1b4Smrg#define GL_COMPRESSED_RGB			0x84ED
17667117f1b4Smrg#define GL_COMPRESSED_RGBA			0x84EE
17677117f1b4Smrg#define GL_TEXTURE_COMPRESSION_HINT		0x84EF
17687117f1b4Smrg#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE	0x86A0
17697117f1b4Smrg#define GL_TEXTURE_COMPRESSED			0x86A1
17707117f1b4Smrg#define GL_NUM_COMPRESSED_TEXTURE_FORMATS	0x86A2
17717117f1b4Smrg#define GL_COMPRESSED_TEXTURE_FORMATS		0x86A3
17727117f1b4Smrg/* multisample */
17737117f1b4Smrg#define GL_MULTISAMPLE				0x809D
17747117f1b4Smrg#define GL_SAMPLE_ALPHA_TO_COVERAGE		0x809E
17757117f1b4Smrg#define GL_SAMPLE_ALPHA_TO_ONE			0x809F
17767117f1b4Smrg#define GL_SAMPLE_COVERAGE			0x80A0
17777117f1b4Smrg#define GL_SAMPLE_BUFFERS			0x80A8
17787117f1b4Smrg#define GL_SAMPLES				0x80A9
17797117f1b4Smrg#define GL_SAMPLE_COVERAGE_VALUE		0x80AA
17807117f1b4Smrg#define GL_SAMPLE_COVERAGE_INVERT		0x80AB
17817117f1b4Smrg#define GL_MULTISAMPLE_BIT			0x20000000
17827117f1b4Smrg/* transpose_matrix */
17837117f1b4Smrg#define GL_TRANSPOSE_MODELVIEW_MATRIX		0x84E3
17847117f1b4Smrg#define GL_TRANSPOSE_PROJECTION_MATRIX		0x84E4
17857117f1b4Smrg#define GL_TRANSPOSE_TEXTURE_MATRIX		0x84E5
17867117f1b4Smrg#define GL_TRANSPOSE_COLOR_MATRIX		0x84E6
17877117f1b4Smrg/* texture_env_combine */
17887117f1b4Smrg#define GL_COMBINE				0x8570
17897117f1b4Smrg#define GL_COMBINE_RGB				0x8571
17907117f1b4Smrg#define GL_COMBINE_ALPHA			0x8572
17917117f1b4Smrg#define GL_SOURCE0_RGB				0x8580
17927117f1b4Smrg#define GL_SOURCE1_RGB				0x8581
17937117f1b4Smrg#define GL_SOURCE2_RGB				0x8582
17947117f1b4Smrg#define GL_SOURCE0_ALPHA			0x8588
17957117f1b4Smrg#define GL_SOURCE1_ALPHA			0x8589
17967117f1b4Smrg#define GL_SOURCE2_ALPHA			0x858A
17977117f1b4Smrg#define GL_OPERAND0_RGB				0x8590
17987117f1b4Smrg#define GL_OPERAND1_RGB				0x8591
17997117f1b4Smrg#define GL_OPERAND2_RGB				0x8592
18007117f1b4Smrg#define GL_OPERAND0_ALPHA			0x8598
18017117f1b4Smrg#define GL_OPERAND1_ALPHA			0x8599
18027117f1b4Smrg#define GL_OPERAND2_ALPHA			0x859A
18037117f1b4Smrg#define GL_RGB_SCALE				0x8573
18047117f1b4Smrg#define GL_ADD_SIGNED				0x8574
18057117f1b4Smrg#define GL_INTERPOLATE				0x8575
18067117f1b4Smrg#define GL_SUBTRACT				0x84E7
18077117f1b4Smrg#define GL_CONSTANT				0x8576
18087117f1b4Smrg#define GL_PRIMARY_COLOR			0x8577
18097117f1b4Smrg#define GL_PREVIOUS				0x8578
18107117f1b4Smrg/* texture_env_dot3 */
18117117f1b4Smrg#define GL_DOT3_RGB				0x86AE
18127117f1b4Smrg#define GL_DOT3_RGBA				0x86AF
18137117f1b4Smrg/* texture_border_clamp */
18147117f1b4Smrg#define GL_CLAMP_TO_BORDER			0x812D
18157117f1b4Smrg
18167117f1b4SmrgGLAPI void GLAPIENTRY glActiveTexture( GLenum texture );
18177117f1b4Smrg
18187117f1b4SmrgGLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
18197117f1b4Smrg
18207117f1b4SmrgGLAPI void GLAPIENTRY glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
18217117f1b4Smrg
18227117f1b4SmrgGLAPI void GLAPIENTRY glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
18237117f1b4Smrg
18247117f1b4SmrgGLAPI void GLAPIENTRY glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
18257117f1b4Smrg
18267117f1b4SmrgGLAPI void GLAPIENTRY glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
18277117f1b4Smrg
18287117f1b4SmrgGLAPI void GLAPIENTRY glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
18297117f1b4Smrg
18307117f1b4SmrgGLAPI 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 );
18317117f1b4Smrg
18327117f1b4SmrgGLAPI void GLAPIENTRY glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img );
18337117f1b4Smrg
18347117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1d( GLenum target, GLdouble s );
18357117f1b4Smrg
18367117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1dv( GLenum target, const GLdouble *v );
18377117f1b4Smrg
18387117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1f( GLenum target, GLfloat s );
18397117f1b4Smrg
18407117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1fv( GLenum target, const GLfloat *v );
18417117f1b4Smrg
18427117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1i( GLenum target, GLint s );
18437117f1b4Smrg
18447117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1iv( GLenum target, const GLint *v );
18457117f1b4Smrg
18467117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1s( GLenum target, GLshort s );
18477117f1b4Smrg
18487117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1sv( GLenum target, const GLshort *v );
18497117f1b4Smrg
18507117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t );
18517117f1b4Smrg
18527117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2dv( GLenum target, const GLdouble *v );
18537117f1b4Smrg
18547117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t );
18557117f1b4Smrg
18567117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2fv( GLenum target, const GLfloat *v );
18577117f1b4Smrg
18587117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2i( GLenum target, GLint s, GLint t );
18597117f1b4Smrg
18607117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2iv( GLenum target, const GLint *v );
18617117f1b4Smrg
18627117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2s( GLenum target, GLshort s, GLshort t );
18637117f1b4Smrg
18647117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2sv( GLenum target, const GLshort *v );
18657117f1b4Smrg
18667117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r );
18677117f1b4Smrg
18687117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3dv( GLenum target, const GLdouble *v );
18697117f1b4Smrg
18707117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r );
18717117f1b4Smrg
18727117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3fv( GLenum target, const GLfloat *v );
18737117f1b4Smrg
18747117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r );
18757117f1b4Smrg
18767117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3iv( GLenum target, const GLint *v );
18777117f1b4Smrg
18787117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r );
18797117f1b4Smrg
18807117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3sv( GLenum target, const GLshort *v );
18817117f1b4Smrg
18827117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q );
18837117f1b4Smrg
18847117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4dv( GLenum target, const GLdouble *v );
18857117f1b4Smrg
18867117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
18877117f1b4Smrg
18887117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4fv( GLenum target, const GLfloat *v );
18897117f1b4Smrg
18907117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q );
18917117f1b4Smrg
18927117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4iv( GLenum target, const GLint *v );
18937117f1b4Smrg
18947117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q );
18957117f1b4Smrg
18967117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4sv( GLenum target, const GLshort *v );
18977117f1b4Smrg
18987117f1b4Smrg
18997ec681f3SmrgGLAPI void GLAPIENTRY glLoadTransposeMatrixd( const GLdouble * m );
19007117f1b4Smrg
19017ec681f3SmrgGLAPI void GLAPIENTRY glLoadTransposeMatrixf( const GLfloat * m );
19027117f1b4Smrg
19037ec681f3SmrgGLAPI void GLAPIENTRY glMultTransposeMatrixd( const GLdouble * m );
19047117f1b4Smrg
19057ec681f3SmrgGLAPI void GLAPIENTRY glMultTransposeMatrixf( const GLfloat * m );
19067117f1b4Smrg
19077117f1b4SmrgGLAPI void GLAPIENTRY glSampleCoverage( GLclampf value, GLboolean invert );
19087117f1b4Smrg
19094a49301eSmrg
19107117f1b4Smrgtypedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
19117117f1b4Smrgtypedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
19127117f1b4Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
19137117f1b4Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
19147117f1b4Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
19157117f1b4Smrgtypedef 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);
19167117f1b4Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
19177117f1b4Smrgtypedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
19184a49301eSmrgtypedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
19194a49301eSmrg
19207117f1b4Smrg
19217117f1b4Smrg
19227117f1b4Smrg/*
19237117f1b4Smrg * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1)
19247117f1b4Smrg */
19257117f1b4Smrg#ifndef GL_ARB_multitexture
19267117f1b4Smrg#define GL_ARB_multitexture 1
19277117f1b4Smrg
19287117f1b4Smrg#define GL_TEXTURE0_ARB				0x84C0
19297117f1b4Smrg#define GL_TEXTURE1_ARB				0x84C1
19307117f1b4Smrg#define GL_TEXTURE2_ARB				0x84C2
19317117f1b4Smrg#define GL_TEXTURE3_ARB				0x84C3
19327117f1b4Smrg#define GL_TEXTURE4_ARB				0x84C4
19337117f1b4Smrg#define GL_TEXTURE5_ARB				0x84C5
19347117f1b4Smrg#define GL_TEXTURE6_ARB				0x84C6
19357117f1b4Smrg#define GL_TEXTURE7_ARB				0x84C7
19367117f1b4Smrg#define GL_TEXTURE8_ARB				0x84C8
19377117f1b4Smrg#define GL_TEXTURE9_ARB				0x84C9
19387117f1b4Smrg#define GL_TEXTURE10_ARB			0x84CA
19397117f1b4Smrg#define GL_TEXTURE11_ARB			0x84CB
19407117f1b4Smrg#define GL_TEXTURE12_ARB			0x84CC
19417117f1b4Smrg#define GL_TEXTURE13_ARB			0x84CD
19427117f1b4Smrg#define GL_TEXTURE14_ARB			0x84CE
19437117f1b4Smrg#define GL_TEXTURE15_ARB			0x84CF
19447117f1b4Smrg#define GL_TEXTURE16_ARB			0x84D0
19457117f1b4Smrg#define GL_TEXTURE17_ARB			0x84D1
19467117f1b4Smrg#define GL_TEXTURE18_ARB			0x84D2
19477117f1b4Smrg#define GL_TEXTURE19_ARB			0x84D3
19487117f1b4Smrg#define GL_TEXTURE20_ARB			0x84D4
19497117f1b4Smrg#define GL_TEXTURE21_ARB			0x84D5
19507117f1b4Smrg#define GL_TEXTURE22_ARB			0x84D6
19517117f1b4Smrg#define GL_TEXTURE23_ARB			0x84D7
19527117f1b4Smrg#define GL_TEXTURE24_ARB			0x84D8
19537117f1b4Smrg#define GL_TEXTURE25_ARB			0x84D9
19547117f1b4Smrg#define GL_TEXTURE26_ARB			0x84DA
19557117f1b4Smrg#define GL_TEXTURE27_ARB			0x84DB
19567117f1b4Smrg#define GL_TEXTURE28_ARB			0x84DC
19577117f1b4Smrg#define GL_TEXTURE29_ARB			0x84DD
19587117f1b4Smrg#define GL_TEXTURE30_ARB			0x84DE
19597117f1b4Smrg#define GL_TEXTURE31_ARB			0x84DF
19607117f1b4Smrg#define GL_ACTIVE_TEXTURE_ARB			0x84E0
19617117f1b4Smrg#define GL_CLIENT_ACTIVE_TEXTURE_ARB		0x84E1
19627117f1b4Smrg#define GL_MAX_TEXTURE_UNITS_ARB		0x84E2
19637117f1b4Smrg
19647117f1b4SmrgGLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture);
19657117f1b4SmrgGLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture);
19667117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
19677117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
19687117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
19697117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
19707117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
19717117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
19727117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
19737117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
19747117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
19757117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
19767117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
19777117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
19787117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
19797117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
19807117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
19817117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
19827117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
19837117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
19847117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
19857117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
19867117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
19877117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
19887117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
19897117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
19907117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
19917117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
19927117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
19937117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
19947117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
19957117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
19967117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
19977117f1b4SmrgGLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
19987117f1b4Smrg
19997117f1b4Smrgtypedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
20007117f1b4Smrgtypedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
20017117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
20027117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
20037117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
20047117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
20057117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
20067117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
20077117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
20087117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
20097117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
20107117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
20117117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
20127117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
20137117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
20147117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
20157117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
20167117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
20177117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
20187117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
20197117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
20207117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
20217117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
20227117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
20237117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
20247117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
20257117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
20267117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
20277117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
20287117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
20297117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
20307117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
20317117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
20327117f1b4Smrgtypedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
20337117f1b4Smrg
20347117f1b4Smrg#endif /* GL_ARB_multitexture */
20357117f1b4Smrg
20367117f1b4Smrg
20377117f1b4Smrg
20387117f1b4Smrg/*
20397117f1b4Smrg * Define this token if you want "old-style" header file behaviour (extensions
20407117f1b4Smrg * defined in gl.h).  Otherwise, extensions will be included from glext.h.
20417117f1b4Smrg */
20427117f1b4Smrg#if defined(GL_GLEXT_LEGACY)
20437117f1b4Smrg
20447117f1b4Smrg/* All extensions that used to be here are now found in glext.h */
20457117f1b4Smrg
20467117f1b4Smrg#else  /* GL_GLEXT_LEGACY */
20477117f1b4Smrg
20487117f1b4Smrg#include <GL/glext.h>
20497117f1b4Smrg
20507117f1b4Smrg#endif  /* GL_GLEXT_LEGACY */
20517117f1b4Smrg
20527117f1b4Smrg
20537117f1b4Smrg
20547117f1b4Smrg/*
20557117f1b4Smrg * ???. GL_MESA_packed_depth_stencil
20567117f1b4Smrg * XXX obsolete
20577117f1b4Smrg */
20587117f1b4Smrg#ifndef GL_MESA_packed_depth_stencil
20597117f1b4Smrg#define GL_MESA_packed_depth_stencil 1
20607117f1b4Smrg
20617117f1b4Smrg#define GL_DEPTH_STENCIL_MESA			0x8750
20627117f1b4Smrg#define GL_UNSIGNED_INT_24_8_MESA		0x8751
20637117f1b4Smrg#define GL_UNSIGNED_INT_8_24_REV_MESA		0x8752
20647117f1b4Smrg#define GL_UNSIGNED_SHORT_15_1_MESA		0x8753
20657117f1b4Smrg#define GL_UNSIGNED_SHORT_1_15_REV_MESA		0x8754
20667117f1b4Smrg
20677117f1b4Smrg#endif /* GL_MESA_packed_depth_stencil */
20687117f1b4Smrg
20697117f1b4Smrg
20707117f1b4Smrg#ifndef GL_ATI_blend_equation_separate
20717117f1b4Smrg#define GL_ATI_blend_equation_separate 1
20727117f1b4Smrg
20737117f1b4Smrg#define GL_ALPHA_BLEND_EQUATION_ATI	        0x883D
20747117f1b4Smrg
20757117f1b4SmrgGLAPI void GLAPIENTRY glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA );
20767117f1b4Smrgtypedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA);
20777117f1b4Smrg
20787117f1b4Smrg#endif /* GL_ATI_blend_equation_separate */
20797117f1b4Smrg
20807117f1b4Smrg
2081cdc920a0Smrg/* GL_OES_EGL_image */
208201e04c3fSmrg#if !defined(GL_OES_EGL_image) && !defined(GL_EXT_EGL_image_storage)
2083cdc920a0Smrgtypedef void* GLeglImageOES;
2084cdc920a0Smrg#endif
2085cdc920a0Smrg
2086cdc920a0Smrg#ifndef GL_OES_EGL_image
2087cdc920a0Smrg#define GL_OES_EGL_image 1
2088cdc920a0Smrg#ifdef GL_GLEXT_PROTOTYPES
2089cdc920a0SmrgGLAPI void APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
2090cdc920a0SmrgGLAPI void APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
2091cdc920a0Smrg#endif
2092cdc920a0Smrgtypedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
2093cdc920a0Smrgtypedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
2094cdc920a0Smrg#endif
2095cdc920a0Smrg
20967117f1b4Smrg
20977117f1b4Smrg#ifdef __cplusplus
20987117f1b4Smrg}
20997117f1b4Smrg#endif
21007117f1b4Smrg
21017117f1b4Smrg#endif /* __gl_h_ */
2102