Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

gl.h

Go to the documentation of this file.
00001 /*        Copyright (C) 2000,2001,2002  Sony Computer Entertainment America
00002           
00003           This file is subject to the terms and conditions of the GNU Lesser
00004           General Public License Version 2.1. See the file "COPYING" in the
00005           main directory of this archive for more details.                             */
00006 
00007 #ifndef ps2gl_gl_h
00008 #define ps2gl_gl_h
00009 
00010 /********************************************
00011  * This is a hacked-up version of the Mesa include file...thanks Mesa!
00012  */
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 typedef unsigned int    GLenum;
00019 typedef unsigned char   GLboolean;
00020 typedef unsigned int    GLbitfield;
00021 typedef void            GLvoid;
00022 typedef char            GLbyte; 
00023 typedef short           GLshort;
00024 typedef int             GLint;  
00025 typedef unsigned char   GLubyte;
00026 typedef unsigned short  GLushort;
00027 typedef unsigned int    GLuint;  
00028 typedef int             GLsizei; 
00029 typedef float           GLfloat; 
00030 typedef float           GLclampf;
00031 typedef float           GLdouble;
00032 typedef float           GLclampd;
00033 
00034 
00035 
00036 /*
00037  *
00038  * Constants
00039  *
00040  */
00041 
00042 #define PS2GL_NOT_IMPLEMENTED                   0x0011
00043 
00044 /* Boolean values */
00045 #define GL_FALSE                                0x0
00046 #define GL_TRUE                                 0x1
00047 
00048 /* Data types */
00049 #define GL_BYTE                                 0x1400
00050 #define GL_UNSIGNED_BYTE                        0x1401
00051 #define GL_SHORT                                0x1402
00052 #define GL_UNSIGNED_SHORT                       0x1403
00053 #define GL_INT                                  0x1404
00054 #define GL_UNSIGNED_INT                         0x1405
00055 #define GL_FLOAT                                0x1406
00056 #define GL_DOUBLE                               0x140A
00057 #define GL_2_BYTES                              0x1407
00058 #define GL_3_BYTES                              0x1408
00059 #define GL_4_BYTES                              0x1409
00060 
00061 /* Primitives */
00062 #define GL_POINTS                               0x0000
00063 #define GL_LINES                                0x0001
00064 #define GL_LINE_STRIP                           0x0002
00065 #define GL_TRIANGLES                            0x0003
00066 #define GL_TRIANGLE_STRIP                       0x0004
00067 #define GL_TRIANGLE_FAN                         0x0005
00068 #define GL_QUADS                                (0x0008 | GL_TRIANGLE_STRIP)
00069 #define GL_QUAD_STRIP                           (0x0018 | GL_TRIANGLE_STRIP)
00070 #define GL_POLYGON                              (0x0008 | GL_TRIANGLE_FAN)
00071 #define GL_LINE_LOOP                            GL_LINE_STRIP
00072 
00073 /* Vertex Arrays */
00074 #define GL_VERTEX_ARRAY                         0x8074
00075 #define GL_NORMAL_ARRAY                         0x8075
00076 #define GL_COLOR_ARRAY                          0x8076
00077 #define GL_INDEX_ARRAY                          0x8077
00078 #define GL_TEXTURE_COORD_ARRAY                  0x8078
00079 #define GL_EDGE_FLAG_ARRAY                      0x8079
00080 #define GL_VERTEX_ARRAY_SIZE                    0x807A
00081 #define GL_VERTEX_ARRAY_TYPE                    0x807B
00082 #define GL_VERTEX_ARRAY_STRIDE                  0x807C
00083 #define GL_NORMAL_ARRAY_TYPE                    0x807E
00084 #define GL_NORMAL_ARRAY_STRIDE                  0x807F
00085 #define GL_COLOR_ARRAY_SIZE                     0x8081
00086 #define GL_COLOR_ARRAY_TYPE                     0x8082
00087 #define GL_COLOR_ARRAY_STRIDE                   0x8083
00088 #define GL_INDEX_ARRAY_TYPE                     0x8085
00089 #define GL_INDEX_ARRAY_STRIDE                   0x8086
00090 #define GL_TEXTURE_COORD_ARRAY_SIZE             0x8088
00091 #define GL_TEXTURE_COORD_ARRAY_TYPE             0x8089
00092 #define GL_TEXTURE_COORD_ARRAY_STRIDE           0x808A
00093 #define GL_EDGE_FLAG_ARRAY_STRIDE               0x808C
00094 #define GL_VERTEX_ARRAY_POINTER                 0x808E
00095 #define GL_NORMAL_ARRAY_POINTER                 0x808F
00096 #define GL_COLOR_ARRAY_POINTER                  0x8090
00097 #define GL_INDEX_ARRAY_POINTER                  0x8091
00098 #define GL_TEXTURE_COORD_ARRAY_POINTER          0x8092
00099 #define GL_EDGE_FLAG_ARRAY_POINTER              0x8093
00100 #define GL_V2F                                  0x2A20
00101 #define GL_V3F                                  0x2A21
00102 #define GL_C4UB_V2F                             0x2A22
00103 #define GL_C4UB_V3F                             0x2A23
00104 #define GL_C3F_V3F                              0x2A24
00105 #define GL_N3F_V3F                              0x2A25
00106 #define GL_C4F_N3F_V3F                          0x2A26
00107 #define GL_T2F_V3F                              0x2A27
00108 #define GL_T4F_V4F                              0x2A28
00109 #define GL_T2F_C4UB_V3F                         0x2A29
00110 #define GL_T2F_C3F_V3F                          0x2A2A
00111 #define GL_T2F_N3F_V3F                          0x2A2B
00112 #define GL_T2F_C4F_N3F_V3F                      0x2A2C
00113 #define GL_T4F_C4F_N3F_V4F                      0x2A2D
00114 
00115 /* Matrix Mode */
00116 #define GL_MATRIX_MODE                          0x0BA0
00117 #define GL_MODELVIEW                            0x1700
00118 #define GL_PROJECTION                           0x1701
00119 #define GL_TEXTURE                              0x1702
00120 
00121 /* Points */
00122 #define GL_POINT_SMOOTH                         0x0B10
00123 #define GL_POINT_SIZE                           0x0B11
00124 #define GL_POINT_SIZE_GRANULARITY               0x0B13
00125 #define GL_POINT_SIZE_RANGE                     0x0B12
00126 
00127 /* Lines */
00128 #define GL_LINE_SMOOTH                          0x0B20
00129 #define GL_LINE_STIPPLE                         0x0B24
00130 #define GL_LINE_STIPPLE_PATTERN                 0x0B25
00131 #define GL_LINE_STIPPLE_REPEAT                  0x0B26
00132 #define GL_LINE_WIDTH                           0x0B21
00133 #define GL_LINE_WIDTH_GRANULARITY               0x0B23
00134 #define GL_LINE_WIDTH_RANGE                     0x0B22
00135 
00136 /* Polygons */
00137 #define GL_POINT                                0x1B00
00138 #define GL_LINE                                 0x1B02
00139 #define GL_FILL                                 0x1B03
00140 #define GL_CW                                   0x0900
00141 #define GL_CCW                                  0x0901
00142 #define GL_FRONT                                0x0404
00143 #define GL_BACK                                 0x0405
00144 #define GL_POLYGON_MODE                         0x0B40
00145 #define GL_POLYGON_SMOOTH                       0x0B41
00146 #define GL_POLYGON_STIPPLE                      0x0B42
00147 #define GL_EDGE_FLAG                            0x0B43
00148 #define GL_CULL_FACE                            0x0B44
00149 #define GL_CULL_FACE_MODE                       0x0B45
00150 #define GL_FRONT_FACE                           0x0B46
00151 #define GL_POLYGON_OFFSET_FACTOR                0x8038
00152 #define GL_POLYGON_OFFSET_UNITS                 0x2A00
00153 #define GL_POLYGON_OFFSET_POINT                 0x2A01
00154 #define GL_POLYGON_OFFSET_LINE                  0x2A02
00155 #define GL_POLYGON_OFFSET_FILL                  0x8037
00156 
00157 /* Display Lists */
00158 #define GL_COMPILE                              0x1300
00159 #define GL_COMPILE_AND_EXECUTE                  0x1301
00160 #define GL_LIST_BASE                            0x0B32
00161 #define GL_LIST_INDEX                           0x0B33
00162 #define GL_LIST_MODE                            0x0B30
00163 
00164 /* Depth buffer */
00165 #define GL_NEVER                                0x0200
00166 #define GL_LESS                                 0x0201
00167 #define GL_EQUAL                                0x0202
00168 #define GL_LEQUAL                               0x0203
00169 #define GL_GREATER                              0x0204
00170 #define GL_NOTEQUAL                             0x0205
00171 #define GL_GEQUAL                               0x0206
00172 #define GL_ALWAYS                               0x0207
00173 #define GL_DEPTH_TEST                           0x0B71
00174 #define GL_DEPTH_BITS                           0x0D56
00175 #define GL_DEPTH_CLEAR_VALUE                    0x0B73
00176 #define GL_DEPTH_FUNC                           0x0B74
00177 #define GL_DEPTH_RANGE                          0x0B70
00178 #define GL_DEPTH_WRITEMASK                      0x0B72
00179 #define GL_DEPTH_COMPONENT                      0x1902
00180 
00181 /* Lighting */
00182 #define GL_LIGHTING                             0x0B50
00183 #define GL_LIGHT0                               0x0510
00184 #define GL_LIGHT1                               0x0511
00185 #define GL_LIGHT2                               0x0512
00186 #define GL_LIGHT3                               0x0513
00187 #define GL_LIGHT4                               0x0514
00188 #define GL_LIGHT5                               0x0515
00189 #define GL_LIGHT6                               0x0516
00190 #define GL_LIGHT7                               0x0517
00191 #define GL_SPOT_EXPONENT                        0x1205
00192 #define GL_SPOT_CUTOFF                          0x1206
00193 #define GL_CONSTANT_ATTENUATION                 0x1207
00194 #define GL_LINEAR_ATTENUATION                   0x1208
00195 #define GL_QUADRATIC_ATTENUATION                0x1209
00196 #define GL_AMBIENT                              0x1200
00197 #define GL_DIFFUSE                              0x1201
00198 #define GL_SPECULAR                             0x1202
00199 #define GL_SHININESS                            0x1601
00200 #define GL_EMISSION                             0x1600
00201 #define GL_POSITION                             0x1203
00202 #define GL_SPOT_DIRECTION                       0x1204
00203 #define GL_AMBIENT_AND_DIFFUSE                  0x1602
00204 #define GL_COLOR_INDEXES                        0x1603
00205 #define GL_LIGHT_MODEL_TWO_SIDE                 0x0B52
00206 #define GL_LIGHT_MODEL_LOCAL_VIEWER             0x0B51
00207 #define GL_LIGHT_MODEL_AMBIENT                  0x0B53
00208 #define GL_FRONT_AND_BACK                       0x0408
00209 #define GL_SHADE_MODEL                          0x0B54
00210 #define GL_FLAT                                 0x1D00
00211 #define GL_SMOOTH                               0x1D01
00212 #define GL_COLOR_MATERIAL                       0x0B57
00213 #define GL_COLOR_MATERIAL_FACE                  0x0B55
00214 #define GL_COLOR_MATERIAL_PARAMETER             0x0B56
00215 #define GL_NORMALIZE                            0x0BA1
00216 
00217 /* User clipping planes */
00218 #define GL_CLIP_PLANE0                          0x3000
00219 #define GL_CLIP_PLANE1                          0x3001
00220 #define GL_CLIP_PLANE2                          0x3002
00221 #define GL_CLIP_PLANE3                          0x3003
00222 #define GL_CLIP_PLANE4                          0x3004
00223 #define GL_CLIP_PLANE5                          0x3005
00224 
00225 /* Accumulation buffer */
00226 #define GL_ACCUM_RED_BITS                       0x0D58
00227 #define GL_ACCUM_GREEN_BITS                     0x0D59
00228 #define GL_ACCUM_BLUE_BITS                      0x0D5A
00229 #define GL_ACCUM_ALPHA_BITS                     0x0D5B
00230 #define GL_ACCUM_CLEAR_VALUE                    0x0B80
00231 #define GL_ACCUM                                0x0100
00232 #define GL_ADD                                  0x0104
00233 #define GL_LOAD                                 0x0101
00234 #define GL_MULT                                 0x0103
00235 #define GL_RETURN                               0x0102
00236 
00237 /* Alpha testing */
00238 #define GL_ALPHA_TEST                           0x0BC0
00239 #define GL_ALPHA_TEST_REF                       0x0BC2
00240 #define GL_ALPHA_TEST_FUNC                      0x0BC1
00241 
00242 /* Blending */
00243 #define GL_BLEND                                0x0BE2
00244 #define GL_BLEND_SRC                            0x0BE1
00245 #define GL_BLEND_DST                            0x0BE0
00246 #define GL_ZERO                                 0x0
00247 #define GL_ONE                                  0x1
00248 #define GL_SRC_COLOR                            0x0300
00249 #define GL_ONE_MINUS_SRC_COLOR                  0x0301
00250 #define GL_DST_COLOR                            0x0306
00251 #define GL_ONE_MINUS_DST_COLOR                  0x0307
00252 #define GL_SRC_ALPHA                            0x0302
00253 #define GL_ONE_MINUS_SRC_ALPHA                  0x0303
00254 #define GL_DST_ALPHA                            0x0304
00255 #define GL_ONE_MINUS_DST_ALPHA                  0x0305
00256 #define GL_SRC_ALPHA_SATURATE                   0x0308
00257 #define GL_CONSTANT_COLOR                       0x8001
00258 #define GL_ONE_MINUS_CONSTANT_COLOR             0x8002
00259 #define GL_CONSTANT_ALPHA                       0x8003
00260 #define GL_ONE_MINUS_CONSTANT_ALPHA             0x8004
00261 
00262 /* Render Mode */
00263 #define GL_FEEDBACK                             0x1C01
00264 #define GL_RENDER                               0x1C00
00265 #define GL_SELECT                               0x1C02
00266 
00267 /* Feedback */
00268 #define GL_2D                                   0x0600
00269 #define GL_3D                                   0x0601
00270 #define GL_3D_COLOR                             0x0602
00271 #define GL_3D_COLOR_TEXTURE                     0x0603
00272 #define GL_4D_COLOR_TEXTURE                     0x0604
00273 #define GL_POINT_TOKEN                          0x0701
00274 #define GL_LINE_TOKEN                           0x0702
00275 #define GL_LINE_RESET_TOKEN                     0x0707
00276 #define GL_POLYGON_TOKEN                        0x0703
00277 #define GL_BITMAP_TOKEN                         0x0704
00278 #define GL_DRAW_PIXEL_TOKEN                     0x0705
00279 #define GL_COPY_PIXEL_TOKEN                     0x0706
00280 #define GL_PASS_THROUGH_TOKEN                   0x0700
00281 #define GL_FEEDBACK_BUFFER_POINTER              0x0DF0
00282 #define GL_FEEDBACK_BUFFER_SIZE                 0x0DF1
00283 #define GL_FEEDBACK_BUFFER_TYPE                 0x0DF2
00284 
00285 /* Selection */
00286 #define GL_SELECTION_BUFFER_POINTER             0x0DF3
00287 #define GL_SELECTION_BUFFER_SIZE                0x0DF4
00288 
00289 /* Fog */
00290 #define GL_FOG                                  0x0B60
00291 #define GL_FOG_MODE                             0x0B65
00292 #define GL_FOG_DENSITY                          0x0B62
00293 #define GL_FOG_COLOR                            0x0B66
00294 #define GL_FOG_INDEX                            0x0B61
00295 #define GL_FOG_START                            0x0B63
00296 #define GL_FOG_END                              0x0B64
00297 #define GL_LINEAR                               0x2601
00298 #define GL_EXP                                  0x0800
00299 #define GL_EXP2                                 0x0801
00300 
00301 /* Logic Ops */
00302 #define GL_LOGIC_OP                             0x0BF1
00303 #define GL_INDEX_LOGIC_OP                       0x0BF1
00304 #define GL_COLOR_LOGIC_OP                       0x0BF2
00305 #define GL_LOGIC_OP_MODE                        0x0BF0
00306 #define GL_CLEAR                                0x1500
00307 #define GL_SET                                  0x150F
00308 #define GL_COPY                                 0x1503
00309 #define GL_COPY_INVERTED                        0x150C
00310 #define GL_NOOP                                 0x1505
00311 #define GL_INVERT                               0x150A
00312 #define GL_AND                                  0x1501
00313 #define GL_NAND                                 0x150E
00314 #define GL_OR                                   0x1507
00315 #define GL_NOR                                  0x1508
00316 #define GL_XOR                                  0x1506
00317 #define GL_EQUIV                                0x1509
00318 #define GL_AND_REVERSE                          0x1502
00319 #define GL_AND_INVERTED                         0x1504
00320 #define GL_OR_REVERSE                           0x150B
00321 #define GL_OR_INVERTED                          0x150D
00322 
00323 /* Stencil */
00324 #define GL_STENCIL_TEST                         0x0B90
00325 #define GL_STENCIL_WRITEMASK                    0x0B98
00326 #define GL_STENCIL_BITS                         0x0D57
00327 #define GL_STENCIL_FUNC                         0x0B92
00328 #define GL_STENCIL_VALUE_MASK                   0x0B93
00329 #define GL_STENCIL_REF                          0x0B97
00330 #define GL_STENCIL_FAIL                         0x0B94
00331 #define GL_STENCIL_PASS_DEPTH_PASS              0x0B96
00332 #define GL_STENCIL_PASS_DEPTH_FAIL              0x0B95
00333 #define GL_STENCIL_CLEAR_VALUE                  0x0B91
00334 #define GL_STENCIL_INDEX                        0x1901
00335 #define GL_KEEP                                 0x1E00
00336 #define GL_REPLACE                              0x1E01
00337 #define GL_INCR                                 0x1E02
00338 #define GL_DECR                                 0x1E03
00339 
00340 /* Buffers, Pixel Drawing/Reading */
00341 #define GL_NONE                                 0x0
00342 #define GL_LEFT                                 0x0406
00343 #define GL_RIGHT                                0x0407
00344 /*GL_FRONT                                      0x0404 */
00345 /*GL_BACK                                       0x0405 */
00346 /*GL_FRONT_AND_BACK                             0x0408 */
00347 #define GL_FRONT_LEFT                           0x0400
00348 #define GL_FRONT_RIGHT                          0x0401
00349 #define GL_BACK_LEFT                            0x0402
00350 #define GL_BACK_RIGHT                           0x0403
00351 #define GL_AUX0                                 0x0409
00352 #define GL_AUX1                                 0x040A
00353 #define GL_AUX2                                 0x040B
00354 #define GL_AUX3                                 0x040C
00355 #define GL_COLOR_INDEX                          0x1900
00356 #define GL_RED                                  0x1903
00357 #define GL_GREEN                                0x1904
00358 #define GL_BLUE                                 0x1905
00359 #define GL_ALPHA                                0x1906
00360 #define GL_LUMINANCE                            0x1909
00361 #define GL_LUMINANCE_ALPHA                      0x190A
00362 #define GL_ALPHA_BITS                           0x0D55
00363 #define GL_RED_BITS                             0x0D52
00364 #define GL_GREEN_BITS                           0x0D53
00365 #define GL_BLUE_BITS                            0x0D54
00366 #define GL_INDEX_BITS                           0x0D51
00367 #define GL_SUBPIXEL_BITS                        0x0D50
00368 #define GL_AUX_BUFFERS                          0x0C00
00369 #define GL_READ_BUFFER                          0x0C02
00370 #define GL_DRAW_BUFFER                          0x0C01
00371 #define GL_DOUBLEBUFFER                         0x0C32
00372 #define GL_STEREO                               0x0C33
00373 #define GL_BITMAP                               0x1A00
00374 #define GL_COLOR                                0x1800
00375 #define GL_DEPTH                                0x1801
00376 #define GL_STENCIL                              0x1802
00377 #define GL_DITHER                               0x0BD0
00378 #define GL_RGB                                  0x1907
00379 #define GL_RGBA                                 0x1908
00380 
00381 /* Implementation limits */
00382 #define GL_MAX_LIST_NESTING                     0x0B31
00383 #define GL_MAX_ATTRIB_STACK_DEPTH               0x0D35
00384 #define GL_MAX_MODELVIEW_STACK_DEPTH            0x0D36
00385 #define GL_MAX_NAME_STACK_DEPTH                 0x0D37
00386 #define GL_MAX_PROJECTION_STACK_DEPTH           0x0D38
00387 #define GL_MAX_TEXTURE_STACK_DEPTH              0x0D39
00388 #define GL_MAX_EVAL_ORDER                       0x0D30
00389 #define GL_MAX_LIGHTS                           0x0D31
00390 #define GL_MAX_CLIP_PLANES                      0x0D32
00391 #define GL_MAX_TEXTURE_SIZE                     0x0D33
00392 #define GL_MAX_PIXEL_MAP_TABLE                  0x0D34
00393 #define GL_MAX_VIEWPORT_DIMS                    0x0D3A
00394 #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH        0x0D3B
00395 
00396 /* Gets */
00397 #define GL_ATTRIB_STACK_DEPTH                   0x0BB0
00398 #define GL_CLIENT_ATTRIB_STACK_DEPTH            0x0BB1
00399 #define GL_COLOR_CLEAR_VALUE                    0x0C22
00400 #define GL_COLOR_WRITEMASK                      0x0C23
00401 #define GL_CURRENT_INDEX                        0x0B01
00402 #define GL_CURRENT_COLOR                        0x0B00
00403 #define GL_CURRENT_NORMAL                       0x0B02
00404 #define GL_CURRENT_RASTER_COLOR                 0x0B04
00405 #define GL_CURRENT_RASTER_DISTANCE              0x0B09
00406 #define GL_CURRENT_RASTER_INDEX                 0x0B05
00407 #define GL_CURRENT_RASTER_POSITION              0x0B07
00408 #define GL_CURRENT_RASTER_TEXTURE_COORDS        0x0B06
00409 #define GL_CURRENT_RASTER_POSITION_VALID        0x0B08
00410 #define GL_CURRENT_TEXTURE_COORDS               0x0B03
00411 #define GL_INDEX_CLEAR_VALUE                    0x0C20
00412 #define GL_INDEX_MODE                           0x0C30
00413 #define GL_INDEX_WRITEMASK                      0x0C21
00414 #define GL_MODELVIEW_MATRIX                     0x0BA6
00415 #define GL_MODELVIEW_STACK_DEPTH                0x0BA3
00416 #define GL_NAME_STACK_DEPTH                     0x0D70
00417 #define GL_PROJECTION_MATRIX                    0x0BA7
00418 #define GL_PROJECTION_STACK_DEPTH               0x0BA4
00419 #define GL_RENDER_MODE                          0x0C40
00420 #define GL_RGBA_MODE                            0x0C31
00421 #define GL_TEXTURE_MATRIX                       0x0BA8
00422 #define GL_TEXTURE_STACK_DEPTH                  0x0BA5
00423 #define GL_VIEWPORT                             0x0BA2
00424 
00425 /* Evaluators */
00426 #define GL_AUTO_NORMAL                          0x0D80
00427 #define GL_MAP1_COLOR_4                         0x0D90
00428 #define GL_MAP1_GRID_DOMAIN                     0x0DD0
00429 #define GL_MAP1_GRID_SEGMENTS                   0x0DD1
00430 #define GL_MAP1_INDEX                           0x0D91
00431 #define GL_MAP1_NORMAL                          0x0D92
00432 #define GL_MAP1_TEXTURE_COORD_1                 0x0D93
00433 #define GL_MAP1_TEXTURE_COORD_2                 0x0D94
00434 #define GL_MAP1_TEXTURE_COORD_3                 0x0D95
00435 #define GL_MAP1_TEXTURE_COORD_4                 0x0D96
00436 #define GL_MAP1_VERTEX_3                        0x0D97
00437 #define GL_MAP1_VERTEX_4                        0x0D98
00438 #define GL_MAP2_COLOR_4                         0x0DB0
00439 #define GL_MAP2_GRID_DOMAIN                     0x0DD2
00440 #define GL_MAP2_GRID_SEGMENTS                   0x0DD3
00441 #define GL_MAP2_INDEX                           0x0DB1
00442 #define GL_MAP2_NORMAL                          0x0DB2
00443 #define GL_MAP2_TEXTURE_COORD_1                 0x0DB3
00444 #define GL_MAP2_TEXTURE_COORD_2                 0x0DB4
00445 #define GL_MAP2_TEXTURE_COORD_3                 0x0DB5
00446 #define GL_MAP2_TEXTURE_COORD_4                 0x0DB6
00447 #define GL_MAP2_VERTEX_3                        0x0DB7
00448 #define GL_MAP2_VERTEX_4                        0x0DB8
00449 #define GL_COEFF                                0x0A00
00450 #define GL_DOMAIN                               0x0A02
00451 #define GL_ORDER                                0x0A01
00452 
00453 /* Hints */
00454 #define GL_FOG_HINT                             0x0C54
00455 #define GL_LINE_SMOOTH_HINT                     0x0C52
00456 #define GL_PERSPECTIVE_CORRECTION_HINT          0x0C50
00457 #define GL_POINT_SMOOTH_HINT                    0x0C51
00458 #define GL_POLYGON_SMOOTH_HINT                  0x0C53
00459 #define GL_DONT_CARE                            0x1100
00460 #define GL_FASTEST                              0x1101
00461 #define GL_NICEST                               0x1102
00462 
00463 /* Scissor box */
00464 #define GL_SCISSOR_TEST                         0x0C11
00465 #define GL_SCISSOR_BOX                          0x0C10
00466 
00467 /* Pixel Mode / Transfer */
00468 #define GL_MAP_COLOR                            0x0D10
00469 #define GL_MAP_STENCIL                          0x0D11
00470 #define GL_INDEX_SHIFT                          0x0D12
00471 #define GL_INDEX_OFFSET                         0x0D13
00472 #define GL_RED_SCALE                            0x0D14
00473 #define GL_RED_BIAS                             0x0D15
00474 #define GL_GREEN_SCALE                          0x0D18
00475 #define GL_GREEN_BIAS                           0x0D19
00476 #define GL_BLUE_SCALE                           0x0D1A
00477 #define GL_BLUE_BIAS                            0x0D1B
00478 #define GL_ALPHA_SCALE                          0x0D1C
00479 #define GL_ALPHA_BIAS                           0x0D1D
00480 #define GL_DEPTH_SCALE                          0x0D1E
00481 #define GL_DEPTH_BIAS                           0x0D1F
00482 #define GL_PIXEL_MAP_S_TO_S_SIZE                0x0CB1
00483 #define GL_PIXEL_MAP_I_TO_I_SIZE                0x0CB0
00484 #define GL_PIXEL_MAP_I_TO_R_SIZE                0x0CB2
00485 #define GL_PIXEL_MAP_I_TO_G_SIZE                0x0CB3
00486 #define GL_PIXEL_MAP_I_TO_B_SIZE                0x0CB4
00487 #define GL_PIXEL_MAP_I_TO_A_SIZE                0x0CB5
00488 #define GL_PIXEL_MAP_R_TO_R_SIZE                0x0CB6
00489 #define GL_PIXEL_MAP_G_TO_G_SIZE                0x0CB7
00490 #define GL_PIXEL_MAP_B_TO_B_SIZE                0x0CB8
00491 #define GL_PIXEL_MAP_A_TO_A_SIZE                0x0CB9
00492 #define GL_PIXEL_MAP_S_TO_S                     0x0C71
00493 #define GL_PIXEL_MAP_I_TO_I                     0x0C70
00494 #define GL_PIXEL_MAP_I_TO_R                     0x0C72
00495 #define GL_PIXEL_MAP_I_TO_G                     0x0C73
00496 #define GL_PIXEL_MAP_I_TO_B                     0x0C74
00497 #define GL_PIXEL_MAP_I_TO_A                     0x0C75
00498 #define GL_PIXEL_MAP_R_TO_R                     0x0C76
00499 #define GL_PIXEL_MAP_G_TO_G                     0x0C77
00500 #define GL_PIXEL_MAP_B_TO_B                     0x0C78
00501 #define GL_PIXEL_MAP_A_TO_A                     0x0C79
00502 #define GL_PACK_ALIGNMENT                       0x0D05
00503 #define GL_PACK_LSB_FIRST                       0x0D01
00504 #define GL_PACK_ROW_LENGTH                      0x0D02
00505 #define GL_PACK_SKIP_PIXELS                     0x0D04
00506 #define GL_PACK_SKIP_ROWS                       0x0D03
00507 #define GL_PACK_SWAP_BYTES                      0x0D00
00508 #define GL_UNPACK_ALIGNMENT                     0x0CF5
00509 #define GL_UNPACK_LSB_FIRST                     0x0CF1
00510 #define GL_UNPACK_ROW_LENGTH                    0x0CF2
00511 #define GL_UNPACK_SKIP_PIXELS                   0x0CF4
00512 #define GL_UNPACK_SKIP_ROWS                     0x0CF3
00513 #define GL_UNPACK_SWAP_BYTES                    0x0CF0
00514 #define GL_ZOOM_X                               0x0D16
00515 #define GL_ZOOM_Y                               0x0D17
00516 
00517 /* Texture mapping */
00518 #define GL_TEXTURE_ENV                          0x2300
00519 #define GL_TEXTURE_ENV_MODE                     0x2200
00520 #define GL_TEXTURE_1D                           0x0DE0
00521 #define GL_TEXTURE_2D                           0x0DE1
00522 #define GL_TEXTURE_WRAP_S                       0x2802
00523 #define GL_TEXTURE_WRAP_T                       0x2803
00524 #define GL_TEXTURE_MAG_FILTER                   0x2800
00525 #define GL_TEXTURE_MIN_FILTER                   0x2801
00526 #define GL_TEXTURE_ENV_COLOR                    0x2201
00527 #define GL_TEXTURE_GEN_S                        0x0C60
00528 #define GL_TEXTURE_GEN_T                        0x0C61
00529 #define GL_TEXTURE_GEN_MODE                     0x2500
00530 #define GL_TEXTURE_BORDER_COLOR                 0x1004
00531 #define GL_TEXTURE_WIDTH                        0x1000
00532 #define GL_TEXTURE_HEIGHT                       0x1001
00533 #define GL_TEXTURE_BORDER                       0x1005
00534 #define GL_TEXTURE_COMPONENTS                   0x1003
00535 #define GL_TEXTURE_RED_SIZE                     0x805C
00536 #define GL_TEXTURE_GREEN_SIZE                   0x805D
00537 #define GL_TEXTURE_BLUE_SIZE                    0x805E
00538 #define GL_TEXTURE_ALPHA_SIZE                   0x805F
00539 #define GL_TEXTURE_LUMINANCE_SIZE               0x8060
00540 #define GL_TEXTURE_INTENSITY_SIZE               0x8061
00541 #define GL_NEAREST_MIPMAP_NEAREST               0x2702
00542 #define GL_NEAREST_MIPMAP_LINEAR                0x2703
00543 #define GL_LINEAR_MIPMAP_NEAREST                0x2704
00544 #define GL_LINEAR_MIPMAP_LINEAR                 0x2705
00545 #define GL_OBJECT_LINEAR                        0x2401
00546 #define GL_OBJECT_PLANE                         0x2501
00547 #define GL_EYE_LINEAR                           0x2400
00548 #define GL_EYE_PLANE                            0x2502
00549 #define GL_SPHERE_MAP                           0x2402
00550 #define GL_DECAL                                0x2101
00551 #define GL_MODULATE                             0x2100
00552 #define GL_NEAREST                              0x2600
00553 #define GL_REPEAT                               0x2900
00554 #define GL_CLAMP                                0x2901
00555 #define GL_S                                    0x2000
00556 #define GL_T                                    0x2001
00557 #define GL_R                                    0x2002
00558 #define GL_Q                                    0x2003
00559 #define GL_TEXTURE_GEN_R                        0x0C62
00560 #define GL_TEXTURE_GEN_Q                        0x0C63
00561 
00562 /* GL 1.1 texturing */
00563 #define GL_PROXY_TEXTURE_1D                     0x8063
00564 #define GL_PROXY_TEXTURE_2D                     0x8064
00565 #define GL_TEXTURE_PRIORITY                     0x8066
00566 #define GL_TEXTURE_RESIDENT                     0x8067
00567 #define GL_TEXTURE_BINDING_1D                   0x8068
00568 #define GL_TEXTURE_BINDING_2D                   0x8069
00569 #define GL_TEXTURE_INTERNAL_FORMAT              0x1003
00570 
00571 /* GL 1.2 texturing */
00572 #define GL_PACK_SKIP_IMAGES                     0x806B
00573 #define GL_PACK_IMAGE_HEIGHT                    0x806C
00574 #define GL_UNPACK_SKIP_IMAGES                   0x806D
00575 #define GL_UNPACK_IMAGE_HEIGHT                  0x806E
00576 #define GL_TEXTURE_3D                           0x806F
00577 #define GL_PROXY_TEXTURE_3D                     0x8070
00578 #define GL_TEXTURE_DEPTH                        0x8071
00579 #define GL_TEXTURE_WRAP_R                       0x8072
00580 #define GL_MAX_3D_TEXTURE_SIZE                  0x8073
00581 #define GL_TEXTURE_BINDING_3D                   0x806A
00582 
00583 /* Internal texture formats (GL 1.1) */
00584 #define GL_ALPHA4                               0x803B
00585 #define GL_ALPHA8                               0x803C
00586 #define GL_ALPHA12                              0x803D
00587 #define GL_ALPHA16                              0x803E
00588 #define GL_LUMINANCE4                           0x803F
00589 #define GL_LUMINANCE8                           0x8040
00590 #define GL_LUMINANCE12                          0x8041
00591 #define GL_LUMINANCE16                          0x8042
00592 #define GL_LUMINANCE4_ALPHA4                    0x8043
00593 #define GL_LUMINANCE6_ALPHA2                    0x8044
00594 #define GL_LUMINANCE8_ALPHA8                    0x8045
00595 #define GL_LUMINANCE12_ALPHA4                   0x8046
00596 #define GL_LUMINANCE12_ALPHA12                  0x8047
00597 #define GL_LUMINANCE16_ALPHA16                  0x8048
00598 #define GL_INTENSITY                            0x8049
00599 #define GL_INTENSITY4                           0x804A
00600 #define GL_INTENSITY8                           0x804B
00601 #define GL_INTENSITY12                          0x804C
00602 #define GL_INTENSITY16                          0x804D
00603 #define GL_R3_G3_B2                             0x2A10
00604 #define GL_RGB4                                 0x804F
00605 #define GL_RGB5                                 0x8050
00606 #define GL_RGB8                                 0x8051
00607 #define GL_RGB10                                0x8052
00608 #define GL_RGB12                                0x8053
00609 #define GL_RGB16                                0x8054
00610 #define GL_RGBA2                                0x8055
00611 #define GL_RGBA4                                0x8056
00612 #define GL_RGB5_A1                              0x8057
00613 #define GL_RGBA8                                0x8058
00614 #define GL_RGB10_A2                             0x8059
00615 #define GL_RGBA12                               0x805A
00616 #define GL_RGBA16                               0x805B
00617 
00618 /* Utility */
00619 #define GL_VENDOR                               0x1F00
00620 #define GL_RENDERER                             0x1F01
00621 #define GL_VERSION                              0x1F02
00622 #define GL_EXTENSIONS                           0x1F03
00623 
00624 /* Errors */
00625 #define GL_NO_ERROR                             0x0
00626 #define GL_INVALID_VALUE                        0x0501
00627 #define GL_INVALID_ENUM                         0x0500
00628 #define GL_INVALID_OPERATION                    0x0502
00629 #define GL_STACK_OVERFLOW                       0x0503
00630 #define GL_STACK_UNDERFLOW                      0x0504
00631 #define GL_OUT_OF_MEMORY                        0x0505
00632 
00633 
00634 /* OpenGL 1.2 */
00635 #define GL_RESCALE_NORMAL                       0x803A
00636 #define GL_CLAMP_TO_EDGE                        0x812F
00637 #define GL_MAX_ELEMENTS_VERTICES                0x80E8
00638 #define GL_MAX_ELEMENTS_INDICES                 0x80E9
00639 #define GL_BGR                                  0x80E0
00640 #define GL_BGRA                                 0x80E1
00641 #define GL_UNSIGNED_BYTE_3_3_2                  0x8032
00642 #define GL_UNSIGNED_BYTE_2_3_3_REV              0x8362
00643 #define GL_UNSIGNED_SHORT_5_6_5                 0x8363
00644 #define GL_UNSIGNED_SHORT_5_6_5_REV             0x8364
00645 #define GL_UNSIGNED_SHORT_4_4_4_4               0x8033
00646 #define GL_UNSIGNED_SHORT_4_4_4_4_REV           0x8365
00647 #define GL_UNSIGNED_SHORT_5_5_5_1               0x8034
00648 #define GL_UNSIGNED_SHORT_1_5_5_5_REV           0x8366
00649 #define GL_UNSIGNED_INT_8_8_8_8                 0x8035
00650 #define GL_UNSIGNED_INT_8_8_8_8_REV             0x8367
00651 #define GL_UNSIGNED_INT_10_10_10_2              0x8036
00652 #define GL_UNSIGNED_INT_2_10_10_10_REV          0x8368
00653 #define GL_LIGHT_MODEL_COLOR_CONTROL            0x81F8
00654 #define GL_SINGLE_COLOR                         0x81F9
00655 #define GL_SEPARATE_SPECULAR_COLOR              0x81FA
00656 #define GL_TEXTURE_MIN_LOD                      0x813A
00657 #define GL_TEXTURE_MAX_LOD                      0x813B
00658 #define GL_TEXTURE_BASE_LEVEL                   0x813C
00659 #define GL_TEXTURE_MAX_LEVEL                    0x813D
00660 #define GL_SMOOTH_POINT_SIZE_RANGE              0x0B12
00661 #define GL_SMOOTH_POINT_SIZE_GRANULARITY        0x0B13
00662 #define GL_SMOOTH_LINE_WIDTH_RANGE              0x0B22
00663 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY        0x0B23
00664 #define GL_ALIASED_POINT_SIZE_RANGE             0x846D
00665 #define GL_ALIASED_LINE_WIDTH_RANGE             0x846E
00666 
00667 
00668 
00669 /*
00670  * OpenGL 1.2 imaging subset
00671  */
00672 /* GL_EXT_color_table */
00673 #define GL_COLOR_TABLE                          0x80D0
00674 #define GL_POST_CONVOLUTION_COLOR_TABLE         0x80D1
00675 #define GL_POST_COLOR_MATRIX_COLOR_TABLE        0x80D2
00676 #define GL_PROXY_COLOR_TABLE                    0x80D3
00677 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE   0x80D4
00678 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE  0x80D5
00679 #define GL_COLOR_TABLE_SCALE                    0x80D6
00680 #define GL_COLOR_TABLE_BIAS                     0x80D7
00681 #define GL_COLOR_TABLE_FORMAT                   0x80D8
00682 #define GL_COLOR_TABLE_WIDTH                    0x80D9
00683 #define GL_COLOR_TABLE_RED_SIZE                 0x80DA
00684 #define GL_COLOR_TABLE_GREEN_SIZE               0x80DB
00685 #define GL_COLOR_TABLE_BLUE_SIZE                0x80DC
00686 #define GL_COLOR_TABLE_ALPHA_SIZE               0x80DD
00687 #define GL_COLOR_TABLE_LUMINANCE_SIZE           0x80DE
00688 #define GL_COLOR_TABLE_INTENSITY_SIZE           0x80DF
00689 /* GL_EXT_convolution and GL_HP_convolution_border_modes */
00690 #define GL_CONVOLUTION_1D                       0x8010
00691 #define GL_CONVOLUTION_2D                       0x8011
00692 #define GL_SEPARABLE_2D                         0x8012
00693 #define GL_CONVOLUTION_BORDER_MODE              0x8013
00694 #define GL_CONVOLUTION_FILTER_SCALE             0x8014
00695 #define GL_CONVOLUTION_FILTER_BIAS              0x8015
00696 #define GL_REDUCE                               0x8016
00697 #define GL_CONVOLUTION_FORMAT                   0x8017
00698 #define GL_CONVOLUTION_WIDTH                    0x8018
00699 #define GL_CONVOLUTION_HEIGHT                   0x8019
00700 #define GL_MAX_CONVOLUTION_WIDTH                0x801A
00701 #define GL_MAX_CONVOLUTION_HEIGHT               0x801B
00702 #define GL_POST_CONVOLUTION_RED_SCALE           0x801C
00703 #define GL_POST_CONVOLUTION_GREEN_SCALE         0x801D
00704 #define GL_POST_CONVOLUTION_BLUE_SCALE          0x801E
00705 #define GL_POST_CONVOLUTION_ALPHA_SCALE         0x801F
00706 #define GL_POST_CONVOLUTION_RED_BIAS            0x8020
00707 #define GL_POST_CONVOLUTION_GREEN_BIAS          0x8021
00708 #define GL_POST_CONVOLUTION_BLUE_BIAS           0x8022
00709 #define GL_POST_CONVOLUTION_ALPHA_BIAS          0x8023
00710 #define GL_CONSTANT_BORDER                      0x8151
00711 #define GL_REPLICATE_BORDER                     0x8153
00712 #define GL_CONVOLUTION_BORDER_COLOR             0x8154
00713 /* GL_SGI_color_matrix */
00714 #define GL_COLOR_MATRIX                         0x80B1
00715 #define GL_COLOR_MATRIX_STACK_DEPTH             0x80B2
00716 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH         0x80B3
00717 #define GL_POST_COLOR_MATRIX_RED_SCALE          0x80B4
00718 #define GL_POST_COLOR_MATRIX_GREEN_SCALE        0x80B5
00719 #define GL_POST_COLOR_MATRIX_BLUE_SCALE         0x80B6
00720 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE        0x80B7
00721 #define GL_POST_COLOR_MATRIX_RED_BIAS           0x80B8
00722 #define GL_POST_COLOR_MATRIX_GREEN_BIAS         0x80B9
00723 #define GL_POST_COLOR_MATRIX_BLUE_BIAS          0x80BA
00724 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS         0x80BB
00725 /* GL_EXT_histogram */
00726 #define GL_HISTOGRAM                            0x8024
00727 #define GL_PROXY_HISTOGRAM                      0x8025
00728 #define GL_HISTOGRAM_WIDTH                      0x8026
00729 #define GL_HISTOGRAM_FORMAT                     0x8027
00730 #define GL_HISTOGRAM_RED_SIZE                   0x8028
00731 #define GL_HISTOGRAM_GREEN_SIZE                 0x8029
00732 #define GL_HISTOGRAM_BLUE_SIZE                  0x802A
00733 #define GL_HISTOGRAM_ALPHA_SIZE                 0x802B
00734 #define GL_HISTOGRAM_LUMINANCE_SIZE             0x802C
00735 #define GL_HISTOGRAM_SINK                       0x802D
00736 #define GL_MINMAX                               0x802E
00737 #define GL_MINMAX_FORMAT                        0x802F
00738 #define GL_MINMAX_SINK                          0x8030
00739 #define GL_TABLE_TOO_LARGE                      0x8031
00740 /* GL_EXT_blend_color, GL_EXT_blend_minmax */
00741 #define GL_BLEND_EQUATION                       0x8009
00742 #define GL_MIN                                  0x8007
00743 #define GL_MAX                                  0x8008
00744 #define GL_FUNC_ADD                             0x8006
00745 #define GL_FUNC_SUBTRACT                        0x800A
00746 #define GL_FUNC_REVERSE_SUBTRACT                0x800B
00747 #define GL_BLEND_COLOR                          0x8005
00748 
00749 
00750 /* glPush/PopAttrib bits */
00751 #define GL_CURRENT_BIT                          0x00000001
00752 #define GL_POINT_BIT                            0x00000002
00753 #define GL_LINE_BIT                             0x00000004
00754 #define GL_POLYGON_BIT                          0x00000008
00755 #define GL_POLYGON_STIPPLE_BIT                  0x00000010
00756 #define GL_PIXEL_MODE_BIT                       0x00000020
00757 #define GL_LIGHTING_BIT                         0x00000040
00758 #define GL_FOG_BIT                              0x00000080
00759 #define GL_DEPTH_BUFFER_BIT                     0x00000100
00760 #define GL_ACCUM_BUFFER_BIT                     0x00000200
00761 #define GL_STENCIL_BUFFER_BIT                   0x00000400
00762 #define GL_VIEWPORT_BIT                         0x00000800
00763 #define GL_TRANSFORM_BIT                        0x00001000
00764 #define GL_ENABLE_BIT                           0x00002000
00765 #define GL_COLOR_BUFFER_BIT                     0x00004000
00766 #define GL_HINT_BIT                             0x00008000
00767 #define GL_EVAL_BIT                             0x00010000
00768 #define GL_LIST_BIT                             0x00020000
00769 #define GL_TEXTURE_BIT                          0x00040000
00770 #define GL_SCISSOR_BIT                          0x00080000
00771 #define GL_ALL_ATTRIB_BITS                      0x000FFFFF
00772 
00773 
00774 #define GL_CLIENT_PIXEL_STORE_BIT               0x00000001
00775 #define GL_CLIENT_VERTEX_ARRAY_BIT              0x00000002
00776 #define GL_ALL_CLIENT_ATTRIB_BITS               0xFFFFFFFF
00777 
00778 
00779 
00780 /*
00781  * Miscellaneous
00782  */
00783 
00784 void glClearIndex( GLfloat c );
00785 
00786 void glClearColor( GLclampf red,
00787                           GLclampf green,
00788                           GLclampf blue,
00789                           GLclampf alpha );
00790 
00791 void glClear( GLbitfield mask );
00792 
00793 void glIndexMask( GLuint mask );
00794 
00795 void glColorMask( GLboolean red, GLboolean green,
00796                          GLboolean blue, GLboolean alpha );
00797 
00798 void glAlphaFunc( GLenum func, GLclampf ref );
00799 
00800 void glBlendFunc( GLenum sfactor, GLenum dfactor );
00801 
00802 void glLogicOp( GLenum opcode );
00803 
00804 void glCullFace( GLenum mode );
00805 
00806 void glFrontFace( GLenum mode );
00807 
00808 void glPointSize( GLfloat size );
00809 
00810 void glLineWidth( GLfloat width );
00811 
00812 void glLineStipple( GLint factor, GLushort pattern );
00813 
00814 void glPolygonMode( GLenum face, GLenum mode );
00815 
00816 void glPolygonOffset( GLfloat factor, GLfloat units );
00817 
00818 void glPolygonStipple( const GLubyte *mask );
00819 
00820 void glGetPolygonStipple( GLubyte *mask );
00821 
00822 void glEdgeFlag( GLboolean flag );
00823 
00824 void glEdgeFlagv( const GLboolean *flag );
00825 
00826 void glScissor( GLint x, GLint y,
00827                                    GLsizei width, GLsizei height);
00828 
00829 void glClipPlane( GLenum plane, const GLdouble *equation );
00830 
00831 void glGetClipPlane( GLenum plane, GLdouble *equation );
00832 
00833 void glDrawBuffer( GLenum mode );
00834 
00835 void glReadBuffer( GLenum mode );
00836 
00837 void glEnable( GLenum cap );
00838 
00839 void glDisable( GLenum cap );
00840 
00841 GLboolean glIsEnabled( GLenum cap );
00842 
00843 
00844 void glEnableClientState( GLenum cap );  /* 1.1 */
00845 
00846 void glDisableClientState( GLenum cap );  /* 1.1 */
00847 
00848 
00849 void glGetBooleanv( GLenum pname, GLboolean *params );
00850 
00851 void glGetDoublev( GLenum pname, GLdouble *params );
00852 
00853 void glGetFloatv( GLenum pname, GLfloat *params );
00854 
00855 void glGetIntegerv( GLenum pname, GLint *params );
00856 
00857 
00858 void glPushAttrib( GLbitfield mask );
00859 
00860 void glPopAttrib( void );
00861 
00862 
00863 void glPushClientAttrib( GLbitfield mask );  /* 1.1 */
00864 
00865 void glPopClientAttrib( void );  /* 1.1 */
00866 
00867 
00868 GLint glRenderMode( GLenum mode );
00869 
00870 GLenum glGetError( void );
00871 
00872 const GLubyte* glGetString( GLenum name );
00873 
00874 void glFinish( void );
00875 
00876 void glFlush( void );
00877 
00878 void glHint( GLenum target, GLenum mode );
00879 
00880 
00881 
00882 /*
00883  * Depth Buffer
00884  */
00885 
00886 void glClearDepth( GLclampd depth );
00887 
00888 void glDepthFunc( GLenum func );
00889 
00890 void glDepthMask( GLboolean flag );
00891 
00892 void glDepthRange( GLclampd near_val, GLclampd far_val );
00893 
00894 
00895 /*
00896  * Accumulation Buffer
00897  */
00898 
00899 void glClearAccum( GLfloat red, GLfloat green,
00900                                       GLfloat blue, GLfloat alpha );
00901 
00902 void glAccum( GLenum op, GLfloat value );
00903 
00904 
00905 
00906 /*
00907  * Transformation
00908  */
00909 
00910 void glMatrixMode( GLenum mode );
00911 
00912 void glOrtho( GLdouble left, GLdouble right,
00913                                  GLdouble bottom, GLdouble top,
00914                                  GLdouble near_val, GLdouble far_val );
00915 
00916 void glFrustum( GLdouble left, GLdouble right,
00917                                    GLdouble bottom, GLdouble top,
00918                                    GLdouble near_val, GLdouble far_val );
00919 
00920 void glViewport( GLint x, GLint y,
00921                                     GLsizei width, GLsizei height );
00922 
00923 void glPushMatrix( void );
00924 
00925 void glPopMatrix( void );
00926 
00927 void glLoadIdentity( void );
00928 
00929 void glLoadMatrixd( const GLdouble *m );
00930 void glLoadMatrixf( const GLfloat *m );
00931 
00932 void glMultMatrixd( const GLdouble *m );
00933 void glMultMatrixf( const GLfloat *m );
00934 
00935 void glRotated( GLdouble angle,
00936                                    GLdouble x, GLdouble y, GLdouble z );
00937 void glRotatef( GLfloat angle,
00938                                    GLfloat x, GLfloat y, GLfloat z );
00939 
00940 void glScaled( GLdouble x, GLdouble y, GLdouble z );
00941 void glScalef( GLfloat x, GLfloat y, GLfloat z );
00942 
00943 void glTranslated( GLdouble x, GLdouble y, GLdouble z );
00944 void glTranslatef( GLfloat x, GLfloat y, GLfloat z );
00945 
00946 
00947 
00948 /*
00949  * Display Lists
00950  */
00951 
00952 GLboolean glIsList( GLuint list );
00953 
00954 void glDeleteLists( GLuint list, GLsizei range );
00955 
00956 GLuint glGenLists( GLsizei range );
00957 
00958 void glNewList( GLuint list, GLenum mode );
00959 
00960 void glEndList( void );
00961 
00962 void glCallList( GLuint list );
00963 
00964 void glCallLists( GLsizei n, GLenum type,
00965                                      const GLvoid *lists );
00966 
00967 void glListBase( GLuint base );
00968 
00969 
00970 
00971 /*
00972  * Drawing Functions
00973  */
00974 
00975 void glBegin( GLenum mode );
00976 
00977 void glEnd( void );
00978 
00979 
00980 void glVertex2d( GLdouble x, GLdouble y );
00981 void glVertex2f( GLfloat x, GLfloat y );
00982 void glVertex2i( GLint x, GLint y );
00983 void glVertex2s( GLshort x, GLshort y );
00984 
00985 void glVertex3d( GLdouble x, GLdouble y, GLdouble z );
00986 void glVertex3f( GLfloat x, GLfloat y, GLfloat z );
00987 void glVertex3i( GLint x, GLint y, GLint z );
00988 void glVertex3s( GLshort x, GLshort y, GLshort z );
00989 
00990 void glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
00991 void glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
00992 void glVertex4i( GLint x, GLint y, GLint z, GLint w );
00993 void glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
00994 
00995 void glVertex2dv( const GLdouble *v );
00996 void glVertex2fv( const GLfloat *v );
00997 void glVertex2iv( const GLint *v );
00998 void glVertex2sv( const GLshort *v );
00999 
01000 void glVertex3dv( const GLdouble *v );
01001 void glVertex3fv( const GLfloat *v );
01002 void glVertex3iv( const GLint *v );
01003 void glVertex3sv( const GLshort *v );
01004 
01005 void glVertex4dv( const GLdouble *v );
01006 void glVertex4fv( const GLfloat *v );
01007 void glVertex4iv( const GLint *v );
01008 void glVertex4sv( const GLshort *v );
01009 
01010 
01011 void glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
01012 void glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
01013 void glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
01014 void glNormal3i( GLint nx, GLint ny, GLint nz );
01015 void glNormal3s( GLshort nx, GLshort ny, GLshort nz );
01016 
01017 void glNormal3bv( const GLbyte *v );
01018 void glNormal3dv( const GLdouble *v );
01019 void glNormal3fv( const GLfloat *v );
01020 void glNormal3iv( const GLint *v );
01021 void glNormal3sv( const GLshort *v );
01022 
01023 
01024 void glIndexd( GLdouble c );
01025 void glIndexf( GLfloat c );
01026 void glIndexi( GLint c );
01027 void glIndexs( GLshort c );
01028 void glIndexub( GLubyte c );  /* 1.1 */
01029 
01030 void glIndexdv( const GLdouble *c );
01031 void glIndexfv( const GLfloat *c );
01032 void glIndexiv( const GLint *c );
01033 void glIndexsv( const GLshort *c );
01034 void glIndexubv( const GLubyte *c );  /* 1.1 */
01035 
01036 void glColor3b( GLbyte red, GLbyte green, GLbyte blue );
01037 void glColor3d( GLdouble red, GLdouble green, GLdouble blue );
01038 void glColor3f( GLfloat red, GLfloat green, GLfloat blue );
01039 void glColor3i( GLint red, GLint green, GLint blue );
01040 void glColor3s( GLshort red, GLshort green, GLshort blue );
01041 void glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
01042 void glColor3ui( GLuint red, GLuint green, GLuint blue );
01043 void glColor3us( GLushort red, GLushort green, GLushort blue );
01044 
01045 void glColor4b( GLbyte red, GLbyte green,
01046                                    GLbyte blue, GLbyte alpha );
01047 void glColor4d( GLdouble red, GLdouble green,
01048                                    GLdouble blue, GLdouble alpha );
01049 void glColor4f( GLfloat red, GLfloat green,
01050                                    GLfloat blue, GLfloat alpha );
01051 void glColor4i( GLint red, GLint green,
01052                                    GLint blue, GLint alpha );
01053 void glColor4s( GLshort red, GLshort green,
01054                                    GLshort blue, GLshort alpha );
01055 void glColor4ub( GLubyte red, GLubyte green,
01056                                     GLubyte blue, GLubyte alpha );
01057 void glColor4ui( GLuint red, GLuint green,
01058                                     GLuint blue, GLuint alpha );
01059 void glColor4us( GLushort red, GLushort green,
01060                                     GLushort blue, GLushort alpha );
01061 
01062 
01063 void glColor3bv( const GLbyte *v );
01064 void glColor3dv( const GLdouble *v );
01065 void glColor3fv( const GLfloat *v );
01066 void glColor3iv( const GLint *v );
01067 void glColor3sv( const GLshort *v );
01068 void glColor3ubv( const GLubyte *v );
01069 void glColor3uiv( const GLuint *v );
01070 void glColor3usv( const GLushort *v );
01071 
01072 void glColor4bv( const GLbyte *v );
01073 void glColor4dv( const GLdouble *v );
01074 void glColor4fv( const GLfloat *v );
01075 void glColor4iv( const GLint *v );
01076 void glColor4sv( const GLshort *v );
01077 void glColor4ubv( const GLubyte *v );
01078 void glColor4uiv( const GLuint *v );
01079 void glColor4usv( const GLushort *v );
01080 
01081 
01082 void glTexCoord1d( GLdouble s );
01083 void glTexCoord1f( GLfloat s );
01084 void glTexCoord1i( GLint s );
01085 void glTexCoord1s( GLshort s );
01086 
01087 void glTexCoord2d( GLdouble s, GLdouble t );
01088 void glTexCoord2f( GLfloat s, GLfloat t );
01089 void glTexCoord2i( GLint s, GLint t );
01090 void glTexCoord2s( GLshort s, GLshort t );
01091 
01092 void glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
01093 void glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
01094 void glTexCoord3i( GLint s, GLint t, GLint r );
01095 void glTexCoord3s( GLshort s, GLshort t, GLshort r );
01096 
01097 void glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
01098 void glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
01099 void glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
01100 void glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
01101 
01102 void glTexCoord1dv( const GLdouble *v );
01103 void glTexCoord1fv( const GLfloat *v );
01104 void glTexCoord1iv( const GLint *v );
01105 void glTexCoord1sv( const GLshort *v );
01106 
01107 void glTexCoord2dv( const GLdouble *v );
01108 void glTexCoord2fv( const GLfloat *v );
01109 void glTexCoord2iv( const GLint *v );
01110 void glTexCoord2sv( const GLshort *v );
01111 
01112 void glTexCoord3dv( const GLdouble *v );
01113 void glTexCoord3fv( const GLfloat *v );
01114 void glTexCoord3iv( const GLint *v );
01115 void glTexCoord3sv( const GLshort *v );
01116 
01117 void glTexCoord4dv( const GLdouble *v );
01118 void glTexCoord4fv( const GLfloat *v );
01119 void glTexCoord4iv( const GLint *v );
01120 void glTexCoord4sv( const GLshort *v );
01121 
01122 
01123 void glRasterPos2d( GLdouble x, GLdouble y );
01124 void glRasterPos2f( GLfloat x, GLfloat y );
01125 void glRasterPos2i( GLint x, GLint y );
01126 void glRasterPos2s( GLshort x, GLshort y );
01127 
01128 void glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
01129 void glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
01130 void glRasterPos3i( GLint x, GLint y, GLint z );
01131 void glRasterPos3s( GLshort x, GLshort y, GLshort z );
01132 
01133 void glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
01134 void glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
01135 void glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
01136 void glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
01137 
01138 void glRasterPos2dv( const GLdouble *v );
01139 void glRasterPos2fv( const GLfloat *v );
01140 void glRasterPos2iv( const GLint *v );
01141 void glRasterPos2sv( const GLshort *v );
01142 
01143 void glRasterPos3dv( const GLdouble *v );
01144 void glRasterPos3fv( const GLfloat *v );
01145 void glRasterPos3iv( const GLint *v );
01146 void glRasterPos3sv( const GLshort *v );
01147 
01148 void glRasterPos4dv( const GLdouble *v );
01149 void glRasterPos4fv( const GLfloat *v );
01150 void glRasterPos4iv( const GLint *v );
01151 void glRasterPos4sv( const GLshort *v );
01152 
01153 
01154 void glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
01155 void glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
01156 void glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
01157 void glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
01158 
01159 
01160 void glRectdv( const GLdouble *v1, const GLdouble *v2 );
01161 void glRectfv( const GLfloat *v1, const GLfloat *v2 );
01162 void glRectiv( const GLint *v1, const GLint *v2 );
01163 void glRectsv( const GLshort *v1, const GLshort *v2 );
01164 
01165 
01166 
01167 /*
01168  * Vertex Arrays  (1.1)
01169  */
01170 
01171 void glVertexPointer( GLint size, GLenum type,
01172                                        GLsizei stride, const GLvoid *ptr );
01173 
01174 void glNormalPointer( GLenum type, GLsizei stride,
01175                                        const GLvoid *ptr );
01176 
01177 void glColorPointer( GLint size, GLenum type,
01178                                       GLsizei stride, const GLvoid *ptr );
01179 
01180 void glIndexPointer( GLenum type, GLsizei stride,
01181                                       const GLvoid *ptr );
01182 
01183 void glTexCoordPointer( GLint size, GLenum type,
01184                                          GLsizei stride, const GLvoid *ptr );
01185 
01186 void glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
01187 
01188 void glGetPointerv( GLenum pname, void **params );
01189 
01190 void glArrayElement( GLint i );
01191 
01192 void glDrawArrays( GLenum mode, GLint first, GLsizei count );
01193 
01194 void glDrawElements( GLenum mode, GLsizei count,
01195                                       GLenum type, const GLvoid *indices );
01196 
01197 void glInterleavedArrays( GLenum format, GLsizei stride,
01198                                            const GLvoid *pointer );
01199 
01200 
01201 /*
01202  * Lighting
01203  */
01204 
01205 void glShadeModel( GLenum mode );
01206 
01207 void glLightf( GLenum light, GLenum pname, GLfloat param );
01208 void glLighti( GLenum light, GLenum pname, GLint param );
01209 void glLightfv( GLenum light, GLenum pname,
01210                                  const GLfloat *params );
01211 void glLightiv( GLenum light, GLenum pname,
01212                                  const GLint *params );
01213 
01214 void glGetLightfv( GLenum light, GLenum pname,
01215                                     GLfloat *params );
01216 void glGetLightiv( GLenum light, GLenum pname,
01217                                     GLint *params );
01218 
01219 void glLightModelf( GLenum pname, GLfloat param );
01220 void glLightModeli( GLenum pname, GLint param );
01221 void glLightModelfv( GLenum pname, const GLfloat *params );
01222 void glLightModeliv( GLenum pname, const GLint *params );
01223 
01224 void glMaterialf( GLenum face, GLenum pname, GLfloat param );
01225 void glMateriali( GLenum face, GLenum pname, GLint param );
01226 void glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
01227 void glMaterialiv( GLenum face, GLenum pname, const GLint *params );
01228 
01229 void glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
01230 void glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
01231 
01232 void glColorMaterial( GLenum face, GLenum mode );
01233 
01234 
01235 
01236 
01237 /*
01238  * Raster functions
01239  */
01240 
01241 void glPixelZoom( GLfloat xfactor, GLfloat yfactor );
01242 
01243 void glPixelStoref( GLenum pname, GLfloat param );
01244 void glPixelStorei( GLenum pname, GLint param );
01245 
01246 void glPixelTransferf( GLenum pname, GLfloat param );
01247 void glPixelTransferi( GLenum pname, GLint param );
01248 
01249 void glPixelMapfv( GLenum map, GLint mapsize,
01250                                     const GLfloat *values );
01251 void glPixelMapuiv( GLenum map, GLint mapsize,
01252                                      const GLuint *values );
01253 void glPixelMapusv( GLenum map, GLint mapsize,
01254                                      const GLushort *values );
01255 
01256 void glGetPixelMapfv( GLenum map, GLfloat *values );
01257 void glGetPixelMapuiv( GLenum map, GLuint *values );
01258 void glGetPixelMapusv( GLenum map, GLushort *values );
01259 
01260 void glBitmap( GLsizei width, GLsizei height,
01261                                 GLfloat xorig, GLfloat yorig,
01262                                 GLfloat xmove, GLfloat ymove,
01263                                 const GLubyte *bitmap );
01264 
01265 void glReadPixels( GLint x, GLint y,
01266                                     GLsizei width, GLsizei height,
01267                                     GLenum format, GLenum type,
01268                                     GLvoid *pixels );
01269 
01270 void glDrawPixels( GLsizei width, GLsizei height,
01271                                     GLenum format, GLenum type,
01272                                     const GLvoid *pixels );
01273 
01274 void glCopyPixels( GLint x, GLint y,
01275                                     GLsizei width, GLsizei height,
01276                                     GLenum type );
01277 
01278 
01279 
01280 /*
01281  * Stenciling
01282  */
01283 
01284 void glStencilFunc( GLenum func, GLint ref, GLuint mask );
01285 
01286 void glStencilMask( GLuint mask );
01287 
01288 void glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
01289 
01290 void glClearStencil( GLint s );
01291 
01292 
01293 
01294 /*
01295  * Texture mapping
01296  */
01297 
01298 void glTexGend( GLenum coord, GLenum pname, GLdouble param );
01299 void glTexGenf( GLenum coord, GLenum pname, GLfloat param );
01300 void glTexGeni( GLenum coord, GLenum pname, GLint param );
01301 
01302 void glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
01303 void glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
01304 void glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
01305 
01306 void glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
01307 void glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
01308 void glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
01309 
01310 
01311 void glTexEnvf( GLenum target, GLenum pname, GLfloat param );
01312 void glTexEnvi( GLenum target, GLenum pname, GLint param );
01313 
01314 void glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
01315 void glTexEnviv( GLenum target, GLenum pname, const GLint *params );
01316 
01317 void glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
01318 void glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
01319 
01320 
01321 void glTexParameterf( GLenum target, GLenum pname, GLfloat param );
01322 void glTexParameteri( GLenum target, GLenum pname, GLint param );
01323 
01324 void glTexParameterfv( GLenum target, GLenum pname,
01325                                           const GLfloat *params );
01326 void glTexParameteriv( GLenum target, GLenum pname,
01327                                           const GLint *params );
01328 
01329 void glGetTexParameterfv( GLenum target,
01330                                            GLenum pname, GLfloat *params);
01331 void glGetTexParameteriv( GLenum target,
01332                                            GLenum pname, GLint *params );
01333 
01334 void glGetTexLevelParameterfv( GLenum target, GLint level,
01335                                                 GLenum pname, GLfloat *params );
01336 void glGetTexLevelParameteriv( GLenum target, GLint level,
01337                                                 GLenum pname, GLint *params );
01338 
01339 
01340 void glTexImage1D( GLenum target, GLint level,
01341                                     GLint internalFormat,
01342                                     GLsizei width, GLint border,
01343                                     GLenum format, GLenum type,
01344                                     const GLvoid *pixels );
01345 
01346 void glTexImage2D( GLenum target, GLint level,
01347                                     GLint internalFormat,
01348                                     GLsizei width, GLsizei height,
01349                                     GLint border, GLenum format, GLenum type,
01350                                     const GLvoid *pixels );
01351 
01352 void glGetTexImage( GLenum target, GLint level,
01353                                      GLenum format, GLenum type,
01354                                      GLvoid *pixels );
01355 
01356 
01357 
01358 /* 1.1 functions */
01359 
01360 void glGenTextures( GLsizei n, GLuint *textures );
01361 
01362 void glDeleteTextures( GLsizei n, const GLuint *textures);
01363 
01364 void glBindTexture( GLenum target, GLuint texture );
01365 
01366 void glPrioritizeTextures( GLsizei n,
01367                                             const GLuint *textures,
01368                                             const GLclampf *priorities );
01369 
01370 GLboolean glAreTexturesResident( GLsizei n,
01371                                                   const GLuint *textures,
01372                                                   GLboolean *residences );
01373 
01374 GLboolean glIsTexture( GLuint texture );
01375 
01376 
01377 void glTexSubImage1D( GLenum target, GLint level,
01378                                        GLint xoffset,
01379                                        GLsizei width, GLenum format,
01380                                        GLenum type, const GLvoid *pixels );
01381 
01382 
01383 void glTexSubImage2D( GLenum target, GLint level,
01384                                        GLint xoffset, GLint yoffset,
01385                                        GLsizei width, GLsizei height,
01386                                        GLenum format, GLenum type,
01387                                        const GLvoid *pixels );
01388 
01389 
01390 void glCopyTexImage1D( GLenum target, GLint level,
01391                                         GLenum internalformat,
01392                                         GLint x, GLint y,
01393                                         GLsizei width, GLint border );
01394 
01395 
01396 void glCopyTexImage2D( GLenum target, GLint level,
01397                                         GLenum internalformat,
01398                                         GLint x, GLint y,
01399                                         GLsizei width, GLsizei height,
01400                                         GLint border );
01401 
01402 
01403 void glCopyTexSubImage1D( GLenum target, GLint level,
01404                                            GLint xoffset, GLint x, GLint y,
01405                                            GLsizei width );
01406 
01407 
01408 void glCopyTexSubImage2D( GLenum target, GLint level,
01409                                            GLint xoffset, GLint yoffset,
01410                                            GLint x, GLint y,
01411                                            GLsizei width, GLsizei height );
01412 
01413 
01414 
01415 
01416 /*
01417  * Evaluators
01418  */
01419 
01420 void glMap1d( GLenum target, GLdouble u1, GLdouble u2,
01421                                GLint stride,
01422                                GLint order, const GLdouble *points );
01423 void glMap1f( GLenum target, GLfloat u1, GLfloat u2,
01424                                GLint stride,
01425                                GLint order, const GLfloat *points );
01426 
01427 void glMap2d( GLenum target,
01428                      GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
01429                      GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
01430                      const GLdouble *points );
01431 void glMap2f( GLenum target,
01432                      GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
01433                      GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
01434                      const GLfloat *points );
01435 
01436 void glGetMapdv( GLenum target, GLenum query, GLdouble *v );
01437 void glGetMapfv( GLenum target, GLenum query, GLfloat *v );
01438 void glGetMapiv( GLenum target, GLenum query, GLint *v );
01439 
01440 void glEvalCoord1d( GLdouble u );
01441 void glEvalCoord1f( GLfloat u );
01442 
01443 void glEvalCoord1dv( const GLdouble *u );
01444 void glEvalCoord1fv( const GLfloat *u );
01445 
01446 void glEvalCoord2d( GLdouble u, GLdouble v );
01447 void glEvalCoord2f( GLfloat u, GLfloat v );
01448 
01449 void glEvalCoord2dv( const GLdouble *u );
01450 void glEvalCoord2fv( const GLfloat *u );
01451 
01452 void glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
01453 void glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
01454 
01455 void glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
01456                                    GLint vn, GLdouble v1, GLdouble v2 );
01457 void glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
01458                                    GLint vn, GLfloat v1, GLfloat v2 );
01459 
01460 void glEvalPoint1( GLint i );
01461 
01462 void glEvalPoint2( GLint i, GLint j );
01463 
01464 void glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
01465 
01466 void glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
01467 
01468 
01469 
01470 /*
01471  * Fog
01472  */
01473 
01474 void glFogf( GLenum pname, GLfloat param );
01475 
01476 void glFogi( GLenum pname, GLint param );
01477 
01478 void glFogfv( GLenum pname, const GLfloat *params );
01479 
01480 void glFogiv( GLenum pname, const GLint *params );
01481 
01482 
01483 
01484 /*
01485  * Selection and Feedback
01486  */
01487 
01488 void glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
01489 
01490 void glPassThrough( GLfloat token );
01491 
01492 void glSelectBuffer( GLsizei size, GLuint *buffer );
01493 
01494 void glInitNames( void );
01495 
01496 void glLoadName( GLuint name );
01497 
01498 void glPushName( GLuint name );
01499 
01500 void glPopName( void );
01501 
01502 
01503 
01504 /* 1.2 functions */
01505 void glDrawRangeElements( GLenum mode, GLuint start,
01506         GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
01507 
01508 void glTexImage3D( GLenum target, GLint level,
01509                                       GLint internalFormat,
01510                                       GLsizei width, GLsizei height,
01511                                       GLsizei depth, GLint border,
01512                                       GLenum format, GLenum type,
01513                                       const GLvoid *pixels );
01514 
01515 void glTexSubImage3D( GLenum target, GLint level,
01516                                          GLint xoffset, GLint yoffset,
01517                                          GLint zoffset, GLsizei width,
01518                                          GLsizei height, GLsizei depth,
01519                                          GLenum format,
01520                                          GLenum type, const GLvoid *pixels);
01521 
01522 void glCopyTexSubImage3D( GLenum target, GLint level,
01523                                              GLint xoffset, GLint yoffset,
01524                                              GLint zoffset, GLint x,
01525                                              GLint y, GLsizei width,
01526                                              GLsizei height );
01527 
01528 
01529 /* 1.2 imaging extension functions */
01530 
01531 void glColorTable( GLenum target, GLenum internalformat,
01532                                     GLsizei width, GLenum format,
01533                                     GLenum type, const GLvoid *table );
01534 
01535 void glColorSubTable( GLenum target,
01536                                        GLsizei start, GLsizei count,
01537                                        GLenum format, GLenum type,
01538                                        const GLvoid *data );
01539 
01540 void glColorTableParameteriv(GLenum target, GLenum pname,
01541                                               const GLint *params);
01542 
01543 void glColorTableParameterfv(GLenum target, GLenum pname,
01544                                               const GLfloat *params);
01545 
01546 void glCopyColorSubTable( GLenum target, GLsizei start,
01547                                            GLint x, GLint y, GLsizei width );
01548 
01549 void glCopyColorTable( GLenum target, GLenum internalformat,
01550                                         GLint x, GLint y, GLsizei width );
01551 
01552 void glGetColorTable( GLenum target, GLenum format,
01553                                        GLenum type, GLvoid *table );
01554 
01555 void glGetColorTableParameterfv( GLenum target, GLenum pname,
01556                                                   GLfloat *params );
01557 
01558 void glGetColorTableParameteriv( GLenum target, GLenum pname,
01559                                                   GLint *params );
01560 
01561 void glBlendEquation( GLenum mode );
01562 
01563 void glBlendColor( GLclampf red, GLclampf green,
01564                                     GLclampf blue, GLclampf alpha );
01565 
01566 void glHistogram( GLenum target, GLsizei width,
01567                                    GLenum internalformat, GLboolean sink );
01568 
01569 void glResetHistogram( GLenum target );
01570 
01571 void glGetHistogram( GLenum target, GLboolean reset,
01572                                       GLenum format, GLenum type,
01573                                       GLvoid *values );
01574 
01575 void glGetHistogramParameterfv( GLenum target, GLenum pname,
01576                                                  GLfloat *params );
01577 
01578 void glGetHistogramParameteriv( GLenum target, GLenum pname,
01579                                                  GLint *params );
01580 
01581 void glMinmax( GLenum target, GLenum internalformat,
01582                                 GLboolean sink );
01583 
01584 void glResetMinmax( GLenum target );
01585 
01586 void glGetMinmax( GLenum target, GLboolean reset,
01587                                    GLenum format, GLenum types,
01588                                    GLvoid *values );
01589 
01590 void glGetMinmaxParameterfv( GLenum target, GLenum pname,
01591                                               GLfloat *params );
01592 
01593 void glGetMinmaxParameteriv( GLenum target, GLenum pname,
01594                                               GLint *params );
01595 
01596 void glConvolutionFilter1D( GLenum target,
01597         GLenum internalformat, GLsizei width, GLenum format, GLenum type,
01598         const GLvoid *image );
01599 
01600 void glConvolutionFilter2D( GLenum target,
01601         GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
01602         GLenum type, const GLvoid *image );
01603 
01604 void glConvolutionParameterf( GLenum target, GLenum pname,
01605         GLfloat params );
01606 
01607 void glConvolutionParameterfv( GLenum target, GLenum pname,
01608         const GLfloat *params );
01609 
01610 void glConvolutionParameteri( GLenum target, GLenum pname,
01611         GLint params );
01612 
01613 void glConvolutionParameteriv( GLenum target, GLenum pname,
01614         const GLint *params );
01615 
01616 void glCopyConvolutionFilter1D( GLenum target,
01617         GLenum internalformat, GLint x, GLint y, GLsizei width );
01618 
01619 void glCopyConvolutionFilter2D( GLenum target,
01620         GLenum internalformat, GLint x, GLint y, GLsizei width,
01621         GLsizei height);
01622 
01623 void glGetConvolutionFilter( GLenum target, GLenum format,
01624         GLenum type, GLvoid *image );
01625 
01626 void glGetConvolutionParameterfv( GLenum target, GLenum pname,
01627         GLfloat *params );
01628 
01629 void glGetConvolutionParameteriv( GLenum target, GLenum pname,
01630         GLint *params );
01631 
01632 void glSeparableFilter2D( GLenum target,
01633         GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
01634         GLenum type, const GLvoid *row, const GLvoid *column );
01635 
01636 void glGetSeparableFilter( GLenum target, GLenum format,
01637         GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
01638 
01639 
01640 
01641 /*
01642  * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1)
01643  */
01644 #ifndef GL_ARB_multitexture
01645 #define GL_ARB_multitexture 1
01646 
01647 #define GL_TEXTURE0_ARB                         0x84C0
01648 #define GL_TEXTURE1_ARB                         0x84C1
01649 #define GL_TEXTURE2_ARB                         0x84C2
01650 #define GL_TEXTURE3_ARB                         0x84C3
01651 #define GL_TEXTURE4_ARB                         0x84C4
01652 #define GL_TEXTURE5_ARB                         0x84C5
01653 #define GL_TEXTURE6_ARB                         0x84C6
01654 #define GL_TEXTURE7_ARB                         0x84C7
01655 #define GL_TEXTURE8_ARB                         0x84C8
01656 #define GL_TEXTURE9_ARB                         0x84C9
01657 #define GL_TEXTURE10_ARB                        0x84CA
01658 #define GL_TEXTURE11_ARB                        0x84CB
01659 #define GL_TEXTURE12_ARB                        0x84CC
01660 #define GL_TEXTURE13_ARB                        0x84CD
01661 #define GL_TEXTURE14_ARB                        0x84CE
01662 #define GL_TEXTURE15_ARB                        0x84CF
01663 #define GL_TEXTURE16_ARB                        0x84D0
01664 #define GL_TEXTURE17_ARB                        0x84D1
01665 #define GL_TEXTURE18_ARB                        0x84D2
01666 #define GL_TEXTURE19_ARB                        0x84D3
01667 #define GL_TEXTURE20_ARB                        0x84D4
01668 #define GL_TEXTURE21_ARB                        0x84D5
01669 #define GL_TEXTURE22_ARB                        0x84D6
01670 #define GL_TEXTURE23_ARB                        0x84D7
01671 #define GL_TEXTURE24_ARB                        0x84D8
01672 #define GL_TEXTURE25_ARB                        0x84D9
01673 #define GL_TEXTURE26_ARB                        0x84DA
01674 #define GL_TEXTURE27_ARB                        0x84DB
01675 #define GL_TEXTURE28_ARB                        0x84DC
01676 #define GL_TEXTURE29_ARB                        0x84DD
01677 #define GL_TEXTURE30_ARB                        0x84DE
01678 #define GL_TEXTURE31_ARB                        0x84DF
01679 #define GL_ACTIVE_TEXTURE_ARB                   0x84E0
01680 #define GL_CLIENT_ACTIVE_TEXTURE_ARB            0x84E1
01681 #define GL_MAX_TEXTURE_UNITS_ARB                0x84E2
01682 
01683 void glActiveTextureARB(GLenum texture);
01684 void glClientActiveTextureARB(GLenum texture);
01685 void glMultiTexCoord1dARB(GLenum target, GLdouble s);
01686 void glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
01687 void glMultiTexCoord1fARB(GLenum target, GLfloat s);
01688 void glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
01689 void glMultiTexCoord1iARB(GLenum target, GLint s);
01690 void glMultiTexCoord1ivARB(GLenum target, const GLint *v);
01691 void glMultiTexCoord1sARB(GLenum target, GLshort s);
01692 void glMultiTexCoord1svARB(GLenum target, const GLshort *v);
01693 void glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
01694 void glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
01695 void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
01696 void glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
01697 void glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
01698 void glMultiTexCoord2ivARB(GLenum target, const GLint *v);
01699 void glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
01700 void glMultiTexCoord2svARB(GLenum target, const GLshort *v);
01701 void glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
01702 void glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
01703 void glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
01704 void glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
01705 void glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
01706 void glMultiTexCoord3ivARB(GLenum target, const GLint *v);
01707 void glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
01708 void glMultiTexCoord3svARB(GLenum target, const GLshort *v);
01709 void glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
01710 void glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
01711 void glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
01712 void glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
01713 void glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
01714 void glMultiTexCoord4ivARB(GLenum target, const GLint *v);
01715 void glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
01716 void glMultiTexCoord4svARB(GLenum target, const GLshort *v);
01717 
01718 #endif /* GL_ARB_multitexture */
01719 
01720 
01721 
01722 
01723 /*
01724  * 2. GL_EXT_blend_color
01725  */
01726 #ifndef GL_EXT_blend_color
01727 #define GL_EXT_blend_color 1
01728 
01729 #define GL_CONSTANT_COLOR_EXT                   0x8001
01730 #define GL_ONE_MINUS_CONSTANT_COLOR_EXT         0x8002
01731 #define GL_CONSTANT_ALPHA_EXT                   0x8003
01732 #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT         0x8004
01733 #define GL_BLEND_COLOR_EXT                      0x8005
01734 #endif  /* GL_EXT_blend_color */
01735 
01736 
01737 #ifdef __cplusplus
01738 }
01739 #endif
01740 
01741 #endif /* ps2gl_gl_h */

ps2gl version cvs