Brian Paul | 1210b0d | 1999-11-25 18:16:13 +0000 | [diff] [blame^] | 1 | /* $Id: glapitable.h,v 1.1 1999/11/25 18:16:33 brianp Exp $ */ |
| 2 | |
| 3 | /* |
| 4 | * Mesa 3-D graphics library |
| 5 | * Version: 3.3 |
| 6 | * |
| 7 | * Copyright (C) 1999 Brian Paul All Rights Reserved. |
| 8 | * |
| 9 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 10 | * copy of this software and associated documentation files (the "Software"), |
| 11 | * to deal in the Software without restriction, including without limitation |
| 12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 13 | * and/or sell copies of the Software, and to permit persons to whom the |
| 14 | * Software is furnished to do so, subject to the following conditions: |
| 15 | * |
| 16 | * The above copyright notice and this permission notice shall be included |
| 17 | * in all copies or substantial portions of the Software. |
| 18 | * |
| 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 22 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 23 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 25 | */ |
| 26 | |
| 27 | |
| 28 | /* |
| 29 | * This file is not specific to Mesa. It defines a dispatch table |
| 30 | * which could be used by any number of OpenGL implementations. |
| 31 | * It's designed to be gl.h-independent as well. That is, it does |
| 32 | * not depend on any particular extensions being defined in the gl.h |
| 33 | * header. We #define extension symbols (like _GLAPI_EXT_blend_color) |
| 34 | * to determine which entry points to compile. Clients of this dispatcher |
| 35 | * (like Mesa) can #ifdef test these symbols to know how to fill in the |
| 36 | * table. |
| 37 | */ |
| 38 | |
| 39 | |
| 40 | #ifndef _GLAPI_TABLE_H |
| 41 | #define _GLAPI_TABLE_H |
| 42 | |
| 43 | |
| 44 | #include "GL/gl.h" |
| 45 | |
| 46 | |
| 47 | /* Which OpenGL API revisisions are supported by the table: */ |
| 48 | #define _GLAPI_VERSION_1_1 1 |
| 49 | #define _GLAPI_VERSION_1_2 1 |
| 50 | |
| 51 | /* And which extensions: */ |
| 52 | #define _GLAPI_ARB_imaging 1 |
| 53 | #define _GLAPI_ARB_multitexture 1 |
| 54 | #define _GLAPI_EXT_paletted_texture 1 |
| 55 | #define _GLAPI_EXT_compiled_vertex_array 1 |
| 56 | #define _GLAPI_EXT_point_parameters 1 |
| 57 | #define _GLAPI_EXT_polygon_offset 1 |
| 58 | #define _GLAPI_EXT_blend_minmax 1 |
| 59 | #define _GLAPI_EXT_blend_color 1 |
| 60 | #define _GLAPI_EXT_texture3D 1 |
| 61 | #define _GLAPI_EXT_texture_object 1 |
| 62 | #define _GLAPI_EXT_vertex_array 1 |
| 63 | #define _GLAPI_INGR_blend_func_separate 1 |
| 64 | #define _GLAPI_MESA_window_pos 1 |
| 65 | #define _GLAPI_MESA_resize_buffers 1 |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | /* |
| 71 | * This struct contains pointers for all the GL API entrypoints |
| 72 | * plus some reserved slots for dynamic extensions. |
| 73 | * |
| 74 | */ |
| 75 | struct _glapi_table |
| 76 | { |
| 77 | /* |
| 78 | * OpenGL 1.0 |
| 79 | */ |
| 80 | void (*Accum)(GLenum, GLfloat); |
| 81 | void (*AlphaFunc)(GLenum, GLclampf); |
| 82 | void (*Begin)(GLenum); |
| 83 | void (*Bitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *); |
| 84 | void (*BlendFunc)(GLenum, GLenum); |
| 85 | void (*CallList)(GLuint list); |
| 86 | void (*CallLists)(GLsizei, GLenum, const GLvoid *); |
| 87 | void (*Clear)(GLbitfield); |
| 88 | void (*ClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 89 | void (*ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf); |
| 90 | void (*ClearDepth)(GLclampd); |
| 91 | void (*ClearIndex)(GLfloat); |
| 92 | void (*ClearStencil)(GLint); |
| 93 | void (*ClipPlane)(GLenum, const GLdouble *); |
| 94 | void (*Color3b)(GLbyte, GLbyte, GLbyte); |
| 95 | void (*Color3bv)(const GLbyte *); |
| 96 | void (*Color3d)(GLdouble, GLdouble, GLdouble); |
| 97 | void (*Color3dv)(const GLdouble *); |
| 98 | void (*Color3f)(GLfloat, GLfloat, GLfloat); |
| 99 | void (*Color3fv)(const GLfloat *); |
| 100 | void (*Color3i)(GLint, GLint, GLint); |
| 101 | void (*Color3iv)(const GLint *); |
| 102 | void (*Color3s)(GLshort, GLshort, GLshort); |
| 103 | void (*Color3sv)(const GLshort *); |
| 104 | void (*Color3ub)(GLubyte, GLubyte, GLubyte); |
| 105 | void (*Color3ubv)(const GLubyte *); |
| 106 | void (*Color3ui)(GLuint, GLuint, GLuint); |
| 107 | void (*Color3uiv)(const GLuint *); |
| 108 | void (*Color3us)(GLushort, GLushort, GLushort); |
| 109 | void (*Color3usv)(const GLushort *); |
| 110 | void (*Color4b)(GLbyte, GLbyte, GLbyte, GLbyte); |
| 111 | void (*Color4bv)(const GLbyte *); |
| 112 | void (*Color4d)(GLdouble, GLdouble, GLdouble, GLdouble); |
| 113 | void (*Color4dv)(const GLdouble *); |
| 114 | void (*Color4f)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 115 | void (*Color4fv)(const GLfloat *); |
| 116 | void (*Color4i)(GLint, GLint, GLint, GLint); |
| 117 | void (*Color4iv)(const GLint *); |
| 118 | void (*Color4s)(GLshort, GLshort, GLshort, GLshort); |
| 119 | void (*Color4sv)(const GLshort *); |
| 120 | void (*Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte); |
| 121 | void (*Color4ubv)(const GLubyte *); |
| 122 | void (*Color4ui)(GLuint, GLuint, GLuint, GLuint); |
| 123 | void (*Color4uiv)(const GLuint *); |
| 124 | void (*Color4us)(GLushort, GLushort, GLushort, GLushort); |
| 125 | void (*Color4usv)(const GLushort *); |
| 126 | void (*ColorMask)(GLboolean, GLboolean, GLboolean, GLboolean); |
| 127 | void (*ColorMaterial)(GLenum, GLenum); |
| 128 | void (*CopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum); |
| 129 | void (*CullFace)(GLenum); |
| 130 | void (*DeleteLists)(GLuint, GLsizei); |
| 131 | void (*DepthFunc)(GLenum); |
| 132 | void (*DepthMask)(GLboolean); |
| 133 | void (*DepthRange)(GLclampd, GLclampd); |
| 134 | void (*Disable)(GLenum); |
| 135 | void (*DrawBuffer)(GLenum); |
| 136 | void (*DrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); |
| 137 | void (*EdgeFlag)(GLboolean); |
| 138 | void (*EdgeFlagv)(const GLboolean *); |
| 139 | void (*Enable)(GLenum); |
| 140 | void (*End)(void); |
| 141 | void (*EndList)(void); |
| 142 | void (*EvalCoord1d)(GLdouble); |
| 143 | void (*EvalCoord1dv)(const GLdouble *); |
| 144 | void (*EvalCoord1f)(GLfloat); |
| 145 | void (*EvalCoord1fv)(const GLfloat *); |
| 146 | void (*EvalCoord2d)(GLdouble u, GLdouble); |
| 147 | void (*EvalCoord2dv)(const GLdouble *); |
| 148 | void (*EvalCoord2f)(GLfloat u, GLfloat); |
| 149 | void (*EvalCoord2fv)(const GLfloat *); |
| 150 | void (*EvalMesh1)(GLenum, GLint, GLint); |
| 151 | void (*EvalMesh2)(GLenum, GLint, GLint, GLint, GLint); |
| 152 | void (*EvalPoint1)(GLint); |
| 153 | void (*EvalPoint2)(GLint, GLint); |
| 154 | void (*FeedbackBuffer)(GLsizei, GLenum, GLfloat *); |
| 155 | void (*Finish)(void); |
| 156 | void (*Flush)(void); |
| 157 | void (*Fogf)(GLenum, GLfloat); |
| 158 | void (*Fogfv)(GLenum, const GLfloat *); |
| 159 | void (*Fogi)(GLenum, GLint); |
| 160 | void (*Fogiv)(GLenum, const GLint *); |
| 161 | void (*FrontFace)(GLenum); |
| 162 | void (*Frustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); |
| 163 | GLuint (*GenLists)(GLsizei); |
| 164 | void (*GetBooleanv)(GLenum, GLboolean *); |
| 165 | void (*GetClipPlane)(GLenum, GLdouble *); |
| 166 | void (*GetDoublev)(GLenum, GLdouble *); |
| 167 | GLenum (*GetError)(void); |
| 168 | void (*GetFloatv)(GLenum, GLfloat *); |
| 169 | void (*GetIntegerv)(GLenum, GLint *); |
| 170 | void (*GetLightfv)(GLenum light, GLenum, GLfloat *); |
| 171 | void (*GetLightiv)(GLenum light, GLenum, GLint *); |
| 172 | void (*GetMapdv)(GLenum, GLenum, GLdouble *); |
| 173 | void (*GetMapfv)(GLenum, GLenum, GLfloat *); |
| 174 | void (*GetMapiv)(GLenum, GLenum, GLint *); |
| 175 | void (*GetMaterialfv)(GLenum, GLenum, GLfloat *); |
| 176 | void (*GetMaterialiv)(GLenum, GLenum, GLint *); |
| 177 | void (*GetPixelMapfv)(GLenum, GLfloat *); |
| 178 | void (*GetPixelMapuiv)(GLenum, GLuint *); |
| 179 | void (*GetPixelMapusv)(GLenum, GLushort *); |
| 180 | void (*GetPolygonStipple)(GLubyte *); |
| 181 | const GLubyte* (*GetString)(GLenum name); |
| 182 | void (*GetTexEnvfv)(GLenum, GLenum, GLfloat *); |
| 183 | void (*GetTexEnviv)(GLenum, GLenum, GLint *); |
| 184 | void (*GetTexGendv)(GLenum coord, GLenum, GLdouble *); |
| 185 | void (*GetTexGenfv)(GLenum coord, GLenum, GLfloat *); |
| 186 | void (*GetTexGeniv)(GLenum coord, GLenum, GLint *); |
| 187 | void (*GetTexImage)(GLenum, GLint level, GLenum, GLenum, GLvoid *); |
| 188 | void (*GetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *); |
| 189 | void (*GetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *); |
| 190 | void (*GetTexParameterfv)(GLenum, GLenum, GLfloat *); |
| 191 | void (*GetTexParameteriv)(GLenum, GLenum, GLint *); |
| 192 | void (*Hint)(GLenum, GLenum); |
| 193 | void (*IndexMask)(GLuint); |
| 194 | void (*Indexd)(GLdouble); |
| 195 | void (*Indexdv)(const GLdouble *); |
| 196 | void (*Indexf)(GLfloat); |
| 197 | void (*Indexfv)(const GLfloat *); |
| 198 | void (*Indexi)(GLint); |
| 199 | void (*Indexiv)(const GLint *); |
| 200 | void (*Indexs)(GLshort); |
| 201 | void (*Indexsv)(const GLshort *); |
| 202 | void (*InitNames)(void); |
| 203 | GLboolean (*IsEnabled)(GLenum); |
| 204 | GLboolean (*IsList)(GLuint); |
| 205 | void (*LightModelf)(GLenum, GLfloat); |
| 206 | void (*LightModelfv)(GLenum, const GLfloat *); |
| 207 | void (*LightModeli)(GLenum, GLint); |
| 208 | void (*LightModeliv)(GLenum, const GLint *); |
| 209 | void (*Lightf)(GLenum light, GLenum, GLfloat); |
| 210 | void (*Lightfv)(GLenum light, GLenum, const GLfloat *); |
| 211 | void (*Lighti)(GLenum light, GLenum, GLint); |
| 212 | void (*Lightiv)(GLenum light, GLenum, const GLint *); |
| 213 | void (*LineStipple)(GLint factor, GLushort); |
| 214 | void (*LineWidth)(GLfloat); |
| 215 | void (*ListBase)(GLuint); |
| 216 | void (*LoadIdentity)(void); |
| 217 | void (*LoadMatrixd)(const GLdouble *); |
| 218 | void (*LoadMatrixf)(const GLfloat *); |
| 219 | void (*LoadName)(GLuint); |
| 220 | void (*LogicOp)(GLenum); |
| 221 | void (*Map1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *); |
| 222 | void (*Map1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *); |
| 223 | void (*Map2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *); |
| 224 | void (*Map2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *); |
| 225 | void (*MapGrid1d)(GLint, GLdouble, GLdouble); |
| 226 | void (*MapGrid1f)(GLint, GLfloat, GLfloat); |
| 227 | void (*MapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble); |
| 228 | void (*MapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat); |
| 229 | void (*Materialf)(GLenum, GLenum, GLfloat); |
| 230 | void (*Materialfv)(GLenum, GLenum, const GLfloat *); |
| 231 | void (*Materiali)(GLenum, GLenum, GLint); |
| 232 | void (*Materialiv)(GLenum, GLenum, const GLint *); |
| 233 | void (*MatrixMode)(GLenum); |
| 234 | void (*MultMatrixd)(const GLdouble *); |
| 235 | void (*MultMatrixf)(const GLfloat *); |
| 236 | void (*NewList)(GLuint list, GLenum); |
| 237 | void (*Normal3b)(GLbyte, GLbyte, GLbyte); |
| 238 | void (*Normal3bv)(const GLbyte *); |
| 239 | void (*Normal3d)(GLdouble, GLdouble, GLdouble); |
| 240 | void (*Normal3dv)(const GLdouble *); |
| 241 | void (*Normal3f)(GLfloat, GLfloat, GLfloat); |
| 242 | void (*Normal3fv)(const GLfloat *); |
| 243 | void (*Normal3i)(GLint, GLint, GLint); |
| 244 | void (*Normal3iv)(const GLint *); |
| 245 | void (*Normal3s)(GLshort, GLshort, GLshort); |
| 246 | void (*Normal3sv)(const GLshort *); |
| 247 | void (*Ortho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); |
| 248 | void (*PassThrough)(GLfloat); |
| 249 | void (*PixelMapfv)(GLenum, GLint, const GLfloat *); |
| 250 | void (*PixelMapuiv)(GLenum, GLint, const GLuint *); |
| 251 | void (*PixelMapusv)(GLenum, GLint, const GLushort *); |
| 252 | void (*PixelStoref)(GLenum, GLfloat); |
| 253 | void (*PixelStorei)(GLenum, GLint); |
| 254 | void (*PixelTransferf)(GLenum, GLfloat); |
| 255 | void (*PixelTransferi)(GLenum, GLint); |
| 256 | void (*PixelZoom)(GLfloat, GLfloat); |
| 257 | void (*PointSize)(GLfloat); |
| 258 | void (*PolygonMode)(GLenum, GLenum); |
| 259 | void (*PolygonOffset)(GLfloat, GLfloat); |
| 260 | void (*PolygonStipple)(const GLubyte *); |
| 261 | void (*PopAttrib)(void); |
| 262 | void (*PopMatrix)(void); |
| 263 | void (*PopName)(void); |
| 264 | void (*PushAttrib)(GLbitfield); |
| 265 | void (*PushMatrix)(void); |
| 266 | void (*PushName)(GLuint); |
| 267 | void (*RasterPos2d)(GLdouble, GLdouble); |
| 268 | void (*RasterPos2dv)(const GLdouble *); |
| 269 | void (*RasterPos2f)(GLfloat, GLfloat); |
| 270 | void (*RasterPos2fv)(const GLfloat *); |
| 271 | void (*RasterPos2i)(GLint, GLint); |
| 272 | void (*RasterPos2iv)(const GLint *); |
| 273 | void (*RasterPos2s)(GLshort, GLshort); |
| 274 | void (*RasterPos2sv)(const GLshort *); |
| 275 | void (*RasterPos3d)(GLdouble, GLdouble, GLdouble); |
| 276 | void (*RasterPos3dv)(const GLdouble *); |
| 277 | void (*RasterPos3f)(GLfloat, GLfloat, GLfloat); |
| 278 | void (*RasterPos3fv)(const GLfloat *); |
| 279 | void (*RasterPos3i)(GLint, GLint, GLint); |
| 280 | void (*RasterPos3iv)(const GLint *); |
| 281 | void (*RasterPos3s)(GLshort, GLshort, GLshort); |
| 282 | void (*RasterPos3sv)(const GLshort *); |
| 283 | void (*RasterPos4d)(GLdouble, GLdouble, GLdouble, GLdouble); |
| 284 | void (*RasterPos4dv)(const GLdouble *); |
| 285 | void (*RasterPos4f)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 286 | void (*RasterPos4fv)(const GLfloat *); |
| 287 | void (*RasterPos4i)(GLint, GLint, GLint, GLint); |
| 288 | void (*RasterPos4iv)(const GLint *); |
| 289 | void (*RasterPos4s)(GLshort, GLshort, GLshort, GLshort); |
| 290 | void (*RasterPos4sv)(const GLshort *); |
| 291 | void (*ReadBuffer)(GLenum); |
| 292 | void (*ReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *); |
| 293 | void (*Rectd)(GLdouble, GLdouble, GLdouble, GLdouble); |
| 294 | void (*Rectdv)(const GLdouble *, const GLdouble *); |
| 295 | void (*Rectf)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 296 | void (*Rectfv)(const GLfloat *, const GLfloat *); |
| 297 | void (*Recti)(GLint, GLint, GLint, GLint); |
| 298 | void (*Rectiv)(const GLint *, const GLint *); |
| 299 | void (*Rects)(GLshort, GLshort, GLshort, GLshort); |
| 300 | void (*Rectsv)(const GLshort *, const GLshort *); |
| 301 | GLint (*RenderMode)(GLenum); |
| 302 | void (*Rotated)(GLdouble, GLdouble, GLdouble, GLdouble); |
| 303 | void (*Rotatef)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 304 | void (*Scaled)(GLdouble, GLdouble, GLdouble); |
| 305 | void (*Scalef)(GLfloat, GLfloat, GLfloat); |
| 306 | void (*Scissor)(GLint, GLint, GLsizei, GLsizei); |
| 307 | void (*SelectBuffer)(GLsizei, GLuint *); |
| 308 | void (*ShadeModel)(GLenum); |
| 309 | void (*StencilFunc)(GLenum, GLint, GLuint); |
| 310 | void (*StencilMask)(GLuint); |
| 311 | void (*StencilOp)(GLenum, GLenum, GLenum); |
| 312 | void (*TexCoord1d)(GLdouble); |
| 313 | void (*TexCoord1dv)(const GLdouble *); |
| 314 | void (*TexCoord1f)(GLfloat); |
| 315 | void (*TexCoord1fv)(const GLfloat *); |
| 316 | void (*TexCoord1i)(GLint); |
| 317 | void (*TexCoord1iv)(const GLint *); |
| 318 | void (*TexCoord1s)(GLshort); |
| 319 | void (*TexCoord1sv)(const GLshort *); |
| 320 | void (*TexCoord2d)(GLdouble, GLdouble); |
| 321 | void (*TexCoord2dv)(const GLdouble *); |
| 322 | void (*TexCoord2f)(GLfloat, GLfloat); |
| 323 | void (*TexCoord2fv)(const GLfloat *); |
| 324 | void (*TexCoord2i)(GLint, GLint); |
| 325 | void (*TexCoord2iv)(const GLint *); |
| 326 | void (*TexCoord2s)(GLshort, GLshort); |
| 327 | void (*TexCoord2sv)(const GLshort *); |
| 328 | void (*TexCoord3d)(GLdouble, GLdouble, GLdouble); |
| 329 | void (*TexCoord3dv)(const GLdouble *); |
| 330 | void (*TexCoord3f)(GLfloat, GLfloat, GLfloat); |
| 331 | void (*TexCoord3fv)(const GLfloat *); |
| 332 | void (*TexCoord3i)(GLint, GLint, GLint); |
| 333 | void (*TexCoord3iv)(const GLint *); |
| 334 | void (*TexCoord3s)(GLshort, GLshort, GLshort); |
| 335 | void (*TexCoord3sv)(const GLshort *); |
| 336 | void (*TexCoord4d)(GLdouble, GLdouble, GLdouble, GLdouble); |
| 337 | void (*TexCoord4dv)(const GLdouble *); |
| 338 | void (*TexCoord4f)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 339 | void (*TexCoord4fv)(const GLfloat *); |
| 340 | void (*TexCoord4i)(GLint, GLint, GLint, GLint); |
| 341 | void (*TexCoord4iv)(const GLint *); |
| 342 | void (*TexCoord4s)(GLshort, GLshort, GLshort, GLshort); |
| 343 | void (*TexCoord4sv)(const GLshort *); |
| 344 | void (*TexEnvf)(GLenum, GLenum, GLfloat); |
| 345 | void (*TexEnvfv)(GLenum, GLenum, const GLfloat *); |
| 346 | void (*TexEnvi)(GLenum, GLenum, GLint); |
| 347 | void (*TexEnviv)(GLenum, GLenum, const GLint *); |
| 348 | void (*TexGend)(GLenum, GLenum, GLdouble); |
| 349 | void (*TexGendv)(GLenum, GLenum, const GLdouble *); |
| 350 | void (*TexGenf)(GLenum, GLenum, GLfloat); |
| 351 | void (*TexGenfv)(GLenum, GLenum, const GLfloat *); |
| 352 | void (*TexGeni)(GLenum, GLenum, GLint); |
| 353 | void (*TexGeniv)(GLenum, GLenum, const GLint *); |
| 354 | void (*TexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *); |
| 355 | void (*TexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); |
| 356 | void (*TexParameterf)(GLenum, GLenum, GLfloat); |
| 357 | void (*TexParameterfv)(GLenum, GLenum, const GLfloat *); |
| 358 | void (*TexParameteri)(GLenum, GLenum, GLint); |
| 359 | void (*TexParameteriv)(GLenum, GLenum, const GLint *); |
| 360 | void (*Translated)(GLdouble, GLdouble, GLdouble); |
| 361 | void (*Translatef)(GLfloat, GLfloat, GLfloat); |
| 362 | void (*Vertex2d)(GLdouble, GLdouble); |
| 363 | void (*Vertex2dv)(const GLdouble *); |
| 364 | void (*Vertex2f)(GLfloat, GLfloat); |
| 365 | void (*Vertex2fv)(const GLfloat *); |
| 366 | void (*Vertex2i)(GLint, GLint); |
| 367 | void (*Vertex2iv)(const GLint *); |
| 368 | void (*Vertex2s)(GLshort, GLshort); |
| 369 | void (*Vertex2sv)(const GLshort *); |
| 370 | void (*Vertex3d)(GLdouble, GLdouble, GLdouble); |
| 371 | void (*Vertex3dv)(const GLdouble *); |
| 372 | void (*Vertex3f)(GLfloat, GLfloat, GLfloat); |
| 373 | void (*Vertex3fv)(const GLfloat *); |
| 374 | void (*Vertex3i)(GLint, GLint, GLint); |
| 375 | void (*Vertex3iv)(const GLint *); |
| 376 | void (*Vertex3s)(GLshort, GLshort, GLshort); |
| 377 | void (*Vertex3sv)(const GLshort *); |
| 378 | void (*Vertex4d)(GLdouble, GLdouble, GLdouble, GLdouble); |
| 379 | void (*Vertex4dv)(const GLdouble *); |
| 380 | void (*Vertex4f)(GLfloat, GLfloat, GLfloat, GLfloat); |
| 381 | void (*Vertex4fv)(const GLfloat *); |
| 382 | void (*Vertex4i)(GLint, GLint, GLint, GLint); |
| 383 | void (*Vertex4iv)(const GLint *); |
| 384 | void (*Vertex4s)(GLshort, GLshort, GLshort, GLshort); |
| 385 | void (*Vertex4sv)(const GLshort *); |
| 386 | void (*Viewport)(GLint, GLint, GLsizei, GLsizei); |
| 387 | |
| 388 | /* |
| 389 | * OpenGL 1.1 |
| 390 | */ |
| 391 | #ifdef _GLAPI_VERSION_1_1 |
| 392 | GLboolean (*AreTexturesResident)(GLsizei, const GLuint *, GLboolean *); |
| 393 | void (*ArrayElement)(GLint); |
| 394 | void (*BindTexture)(GLenum, GLuint); |
| 395 | void (*ColorPointer)(GLint, GLenum, GLsizei, const GLvoid *); |
| 396 | void (*CopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); |
| 397 | void (*CopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); |
| 398 | void (*CopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei); |
| 399 | void (*CopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); |
| 400 | void (*DeleteTextures)(GLsizei, const GLuint *); |
| 401 | void (*DisableClientState)(GLenum); |
| 402 | void (*DrawArrays)(GLenum, GLint, GLsizei); |
| 403 | void (*DrawElements)(GLenum, GLsizei, GLenum, const GLvoid *); |
| 404 | void (*EdgeFlagPointer)(GLsizei, const GLvoid *); |
| 405 | void (*EnableClientState)(GLenum); |
| 406 | void (*GenTextures)(GLsizei, GLuint *); |
| 407 | void (*GetPointerv)(GLenum, GLvoid **); |
| 408 | void (*IndexPointer)(GLenum, GLsizei, const GLvoid *); |
| 409 | void (*Indexub)(GLubyte); |
| 410 | void (*Indexubv)(const GLubyte *); |
| 411 | void (*InterleavedArrays)(GLenum, GLsizei, const GLvoid *); |
| 412 | GLboolean (*IsTexture)(GLuint); |
| 413 | void (*NormalPointer)(GLenum, GLsizei, const GLvoid *); |
| 414 | void (*PopClientAttrib)(void); |
| 415 | void (*PrioritizeTextures)(GLsizei, const GLuint *, const GLclampf *); |
| 416 | void (*PushClientAttrib)(GLbitfield); |
| 417 | void (*TexCoordPointer)(GLint, GLenum, GLsizei, const GLvoid *); |
| 418 | void (*TexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); |
| 419 | void (*TexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); |
| 420 | void (*VertexPointer)(GLint, GLenum, GLsizei, const GLvoid *); |
| 421 | #endif |
| 422 | |
| 423 | /* |
| 424 | * OpenGL 1.2 |
| 425 | */ |
| 426 | #ifdef _GLAPI_VERSION_1_2 |
| 427 | void (*CopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); |
| 428 | void (*DrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); |
| 429 | void (*TexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); |
| 430 | void (*TexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); |
| 431 | |
| 432 | #ifdef _GLAPI_ARB_imaging |
| 433 | void (*BlendColor)(GLclampf, GLclampf, GLclampf, GLclampf); |
| 434 | void (*BlendEquation)(GLenum); |
| 435 | void (*ColorSubTable)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); |
| 436 | void (*ColorTable)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); |
| 437 | void (*ColorTableParameterfv)(GLenum, GLenum, const GLfloat *); |
| 438 | void (*ColorTableParameteriv)(GLenum, GLenum, const GLint *); |
| 439 | void (*ConvolutionFilter1D)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); |
| 440 | void (*ConvolutionFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); |
| 441 | void (*ConvolutionParameterf)(GLenum, GLenum, GLfloat); |
| 442 | void (*ConvolutionParameterfv)(GLenum, GLenum, const GLfloat *); |
| 443 | void (*ConvolutionParameteri)(GLenum, GLenum, GLint); |
| 444 | void (*ConvolutionParameteriv)(GLenum, GLenum, const GLint *); |
| 445 | void (*CopyColorSubTable)(GLenum, GLsizei, GLint, GLint, GLsizei); |
| 446 | void (*CopyColorTable)(GLenum, GLenum, GLint, GLint, GLsizei); |
| 447 | void (*CopyConvolutionFilter1D)(GLenum, GLenum, GLint x, GLint y, GLsizei); |
| 448 | void (*CopyConvolutionFilter2D)(GLenum, GLenum, GLint x, GLint y, GLsizei, GLsizei); |
| 449 | void (*GetColorTable)(GLenum, GLenum, GLenum, GLvoid *); |
| 450 | void (*GetColorTableParameterfv)(GLenum, GLenum, GLfloat *); |
| 451 | void (*GetColorTableParameteriv)(GLenum, GLenum, GLint *); |
| 452 | void (*GetConvolutionFilter)(GLenum, GLenum, GLenum, GLvoid *); |
| 453 | void (*GetConvolutionParameterfv)(GLenum, GLenum, GLfloat *); |
| 454 | void (*GetConvolutionParameteriv)(GLenum, GLenum, GLint *); |
| 455 | void (*GetHistogram)(GLenum, GLboolean, GLenum, GLenum, GLvoid *); |
| 456 | void (*GetHistogramParameterfv)(GLenum, GLenum, GLfloat *); |
| 457 | void (*GetHistogramParameteriv)(GLenum, GLenum, GLint *); |
| 458 | void (*GetMinmax)(GLenum, GLboolean, GLenum, GLenum, GLvoid *); |
| 459 | void (*GetMinmaxParameterfv)(GLenum, GLenum, GLfloat *); |
| 460 | void (*GetMinmaxParameteriv)(GLenum, GLenum, GLint *); |
| 461 | void (*GetSeparableFilter)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); |
| 462 | void (*Histogram)(GLenum, GLsizei, GLenum, GLboolean); |
| 463 | void (*Minmax)(GLenum, GLenum, GLboolean); |
| 464 | void (*ResetHistogram)(GLenum); |
| 465 | void (*ResetMinmax)(GLenum); |
| 466 | void (*SeparableFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); |
| 467 | #endif /*_GLAPI_ARB_imaging*/ |
| 468 | #endif /*_GLAPI_VERSION_1_2*/ |
| 469 | |
| 470 | |
| 471 | /* |
| 472 | * Extensions |
| 473 | */ |
| 474 | |
| 475 | #ifdef _GLAPI_EXT_paletted_texture |
| 476 | void (*ColorTableEXT)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); |
| 477 | void (*ColorSubTableEXT)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); |
| 478 | void (*GetColorTableEXT)(GLenum, GLenum, GLenum, GLvoid *); |
| 479 | void (*GetColorTableParameterfvEXT)(GLenum, GLenum, GLfloat *); |
| 480 | void (*GetColorTableParameterivEXT)(GLenum, GLenum, GLint *); |
| 481 | #endif |
| 482 | |
| 483 | #ifdef _GLAPI_EXT_compiled_vertex_array |
| 484 | void (*LockArraysEXT)(GLint, GLsizei); |
| 485 | void (*UnlockArraysEXT)(void); |
| 486 | #endif |
| 487 | |
| 488 | #ifdef _GLAPI_EXT_point_parameters |
| 489 | void (*PointParameterfEXT)(GLenum, GLfloat); |
| 490 | void (*PointParameterfvEXT)(GLenum, const GLfloat *); |
| 491 | #endif |
| 492 | |
| 493 | #ifdef _GLAPI_EXT_polygon_offset |
| 494 | void (*PolygonOffsetEXT)(GLfloat, GLfloat); |
| 495 | #endif |
| 496 | |
| 497 | #ifdef _GLAPI_EXT_blend_minmax |
| 498 | void (*BlendEquationEXT)(GLenum); |
| 499 | #endif |
| 500 | |
| 501 | #ifdef _GLAPI_EXT_blend_color |
| 502 | void (*BlendColorEXT)(GLclampf, GLclampf, GLclampf, GLclampf); |
| 503 | #endif |
| 504 | |
| 505 | #ifdef _GLAPI_ARB_multitexture |
| 506 | void (*ActiveTextureARB)(GLenum); |
| 507 | void (*ClientActiveTextureARB)(GLenum); |
| 508 | void (*MultiTexCoord1dARB)(GLenum, GLdouble); |
| 509 | void (*MultiTexCoord1dvARB)(GLenum, const GLdouble *); |
| 510 | void (*MultiTexCoord1fARB)(GLenum, GLfloat); |
| 511 | void (*MultiTexCoord1fvARB)(GLenum, const GLfloat *); |
| 512 | void (*MultiTexCoord1iARB)(GLenum, GLint); |
| 513 | void (*MultiTexCoord1ivARB)(GLenum, const GLint *); |
| 514 | void (*MultiTexCoord1sARB)(GLenum, GLshort); |
| 515 | void (*MultiTexCoord1svARB)(GLenum, const GLshort *); |
| 516 | void (*MultiTexCoord2dARB)(GLenum, GLdouble, GLdouble); |
| 517 | void (*MultiTexCoord2dvARB)(GLenum, const GLdouble *); |
| 518 | void (*MultiTexCoord2fARB)(GLenum, GLfloat, GLfloat); |
| 519 | void (*MultiTexCoord2fvARB)(GLenum, const GLfloat *); |
| 520 | void (*MultiTexCoord2iARB)(GLenum, GLint, GLint); |
| 521 | void (*MultiTexCoord2ivARB)(GLenum, const GLint *); |
| 522 | void (*MultiTexCoord2sARB)(GLenum, GLshort, GLshort); |
| 523 | void (*MultiTexCoord2svARB)(GLenum, const GLshort *); |
| 524 | void (*MultiTexCoord3dARB)(GLenum, GLdouble, GLdouble, GLdouble); |
| 525 | void (*MultiTexCoord3dvARB)(GLenum, const GLdouble *); |
| 526 | void (*MultiTexCoord3fARB)(GLenum, GLfloat, GLfloat, GLfloat); |
| 527 | void (*MultiTexCoord3fvARB)(GLenum, const GLfloat *); |
| 528 | void (*MultiTexCoord3iARB)(GLenum, GLint, GLint, GLint); |
| 529 | void (*MultiTexCoord3ivARB)(GLenum, const GLint *); |
| 530 | void (*MultiTexCoord3sARB)(GLenum, GLshort, GLshort, GLshort); |
| 531 | void (*MultiTexCoord3svARB)(GLenum, const GLshort *); |
| 532 | void (*MultiTexCoord4dARB)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble); |
| 533 | void (*MultiTexCoord4dvARB)(GLenum, const GLdouble *); |
| 534 | void (*MultiTexCoord4fARB)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat); |
| 535 | void (*MultiTexCoord4fvARB)(GLenum, const GLfloat *); |
| 536 | void (*MultiTexCoord4iARB)(GLenum, GLint, GLint, GLint, GLint); |
| 537 | void (*MultiTexCoord4ivARB)(GLenum, const GLint *); |
| 538 | void (*MultiTexCoord4sARB)(GLenum, GLshort, GLshort, GLshort, GLshort); |
| 539 | void (*MultiTexCoord4svARB)(GLenum, const GLshort *); |
| 540 | #endif |
| 541 | |
| 542 | #ifdef _GLAPI_INGR_blend_func_separate |
| 543 | void (*BlendFuncSeparateINGR)(GLenum, GLenum, GLenum, GLenum); |
| 544 | #endif |
| 545 | |
| 546 | #ifdef _GLAPI_MESA_window_pos |
| 547 | void (*WindowPos4fMESA)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); |
| 548 | #endif |
| 549 | |
| 550 | #ifdef _GLAPI_MESA_resize_buffers |
| 551 | void (*ResizeBuffersMESA)(void); |
| 552 | #endif |
| 553 | |
| 554 | |
| 555 | void *ExtensionFuncs[1000]; |
| 556 | }; |
| 557 | |
| 558 | |
| 559 | #endif |