| 1 |
/* $Id: dlist.h,v 1.2 2000/10/27 15:21:40 mholst Exp $ */ |
| 2 |
|
| 3 |
/* |
| 4 |
* Mesa 3-D graphics library |
| 5 |
* Version: 2.2 |
| 6 |
* Copyright (C) 1995-1997 Brian Paul |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Library General Public |
| 10 |
* License as published by the Free Software Foundation; either |
| 11 |
* version 2 of the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Library General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Library General Public |
| 19 |
* License along with this library; if not, write to the Free |
| 20 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef DLIST_H |
| 24 |
#define DLIST_H |
| 25 |
|
| 26 |
|
| 27 |
#include "types.h" |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
extern void gl_init_lists( void ); |
| 32 |
|
| 33 |
extern GLint gl_list_index( void ); |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
extern void gl_CallList( GLcontext *ctx, GLuint list ); |
| 39 |
|
| 40 |
extern void gl_CallLists( GLcontext *ctx, |
| 41 |
GLsizei n, GLenum type, const GLvoid *lists ); |
| 42 |
|
| 43 |
extern void gl_DeleteLists( GLcontext *ctx, GLuint list, GLsizei range ); |
| 44 |
|
| 45 |
extern void gl_EndList( GLcontext *ctx ); |
| 46 |
|
| 47 |
extern GLuint gl_GenLists( GLcontext *ctx, GLsizei range ); |
| 48 |
|
| 49 |
extern GLboolean gl_IsList( GLcontext *ctx, GLuint list ); |
| 50 |
|
| 51 |
extern void gl_ListBase( GLcontext *ctx, GLuint base ); |
| 52 |
|
| 53 |
extern void gl_NewList( GLcontext *ctx, GLuint list, GLenum mode ); |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
extern void gl_save_Accum( GLcontext *ctx, GLenum op, GLfloat value ); |
| 59 |
|
| 60 |
extern void gl_save_AlphaFunc( GLcontext *ctx, GLenum func, GLclampf ref ); |
| 61 |
|
| 62 |
extern void gl_save_BlendColor( GLcontext *ctx, GLfloat red, GLfloat green, |
| 63 |
GLfloat blue, GLfloat alpha ); |
| 64 |
|
| 65 |
extern void gl_save_BlendEquation( GLcontext *ctx, GLenum mode ); |
| 66 |
|
| 67 |
extern void gl_save_BlendFunc( GLcontext *ctx, |
| 68 |
GLenum sfactor, GLenum dfactor ); |
| 69 |
|
| 70 |
extern void gl_save_Begin( GLcontext *ctx, GLenum mode ); |
| 71 |
|
| 72 |
extern void gl_save_BindTexture( GLcontext *ctx, |
| 73 |
GLenum target, GLuint texture ); |
| 74 |
|
| 75 |
extern void gl_save_Bitmap( GLcontext *ctx, GLsizei width, GLsizei height, |
| 76 |
GLfloat xorig, GLfloat yorig, |
| 77 |
GLfloat xmove, GLfloat ymove, |
| 78 |
const struct gl_image *bitmap ); |
| 79 |
|
| 80 |
extern void gl_save_CallList( GLcontext *ctx, GLuint list ); |
| 81 |
|
| 82 |
extern void gl_save_CallLists( GLcontext *ctx, |
| 83 |
GLsizei n, GLenum type, const GLvoid *lists ); |
| 84 |
|
| 85 |
extern void gl_save_Clear( GLcontext *ctx, GLbitfield mask ); |
| 86 |
|
| 87 |
extern void gl_save_ClearAccum( GLcontext *ctx, GLfloat red, GLfloat green, |
| 88 |
GLfloat blue, GLfloat alpha ); |
| 89 |
|
| 90 |
extern void gl_save_ClearColor( GLcontext *ctx, GLclampf red, GLclampf green, |
| 91 |
GLclampf blue, GLclampf alpha ); |
| 92 |
|
| 93 |
extern void gl_save_ClearDepth( GLcontext *ctx, GLclampd depth ); |
| 94 |
|
| 95 |
extern void gl_save_ClearIndex( GLcontext *ctx, GLfloat c ); |
| 96 |
|
| 97 |
extern void gl_save_ClearStencil( GLcontext *ctx, GLint s ); |
| 98 |
|
| 99 |
extern void gl_save_ClipPlane( GLcontext *ctx, |
| 100 |
GLenum plane, const GLfloat *equ ); |
| 101 |
|
| 102 |
extern void gl_save_Color4f( GLcontext *ctx, GLfloat r, GLfloat g, |
| 103 |
GLfloat b, GLfloat a ); |
| 104 |
|
| 105 |
extern void gl_save_Color4ub( GLcontext *ctx, GLubyte r, GLubyte g, |
| 106 |
GLubyte b, GLubyte a ); |
| 107 |
|
| 108 |
extern void gl_save_ColorMask( GLcontext *ctx, GLboolean red, GLboolean green, |
| 109 |
GLboolean blue, GLboolean alpha ); |
| 110 |
|
| 111 |
extern void gl_save_ColorMaterial( GLcontext *ctx, GLenum face, GLenum mode ); |
| 112 |
|
| 113 |
extern void gl_save_CopyPixels( GLcontext *ctx, GLint x, GLint y, |
| 114 |
GLsizei width, GLsizei height, GLenum type ); |
| 115 |
|
| 116 |
extern void gl_save_CopyTexImage1D( GLcontext *ctx, |
| 117 |
GLenum target, GLint level, |
| 118 |
GLenum internalformat, |
| 119 |
GLint x, GLint y, GLsizei width, |
| 120 |
GLint border ); |
| 121 |
|
| 122 |
extern void gl_save_CopyTexImage2D( GLcontext *ctx, |
| 123 |
GLenum target, GLint level, |
| 124 |
GLenum internalformat, |
| 125 |
GLint x, GLint y, GLsizei width, |
| 126 |
GLsizei height, GLint border ); |
| 127 |
|
| 128 |
extern void gl_save_CopyTexSubImage1D( GLcontext *ctx, |
| 129 |
GLenum target, GLint level, |
| 130 |
GLint xoffset, GLint x, GLint y, |
| 131 |
GLsizei width ); |
| 132 |
|
| 133 |
extern void gl_save_CopyTexSubImage2D( GLcontext *ctx, |
| 134 |
GLenum target, GLint level, |
| 135 |
GLint xoffset, GLint yoffset, |
| 136 |
GLint x, GLint y, |
| 137 |
GLsizei width, GLint height ); |
| 138 |
|
| 139 |
extern void gl_save_CopyTexSubImage3DEXT( GLcontext *ctx, |
| 140 |
GLenum target, GLint level, |
| 141 |
GLint xoffset, GLint yoffset, GLint zoffset, |
| 142 |
GLint x, GLint y, |
| 143 |
GLsizei width, GLint height ); |
| 144 |
|
| 145 |
extern void gl_save_CullFace( GLcontext *ctx, GLenum mode ); |
| 146 |
|
| 147 |
extern void gl_save_DepthFunc( GLcontext *ctx, GLenum func ); |
| 148 |
|
| 149 |
extern void gl_save_DepthMask( GLcontext *ctx, GLboolean mask ); |
| 150 |
|
| 151 |
extern void gl_save_DepthRange( GLcontext *ctx, |
| 152 |
GLclampd nearval, GLclampd farval ); |
| 153 |
|
| 154 |
extern void gl_save_Disable( GLcontext *ctx, GLenum cap ); |
| 155 |
|
| 156 |
extern void gl_save_DrawBuffer( GLcontext *ctx, GLenum mode ); |
| 157 |
|
| 158 |
extern void gl_save_DrawPixels( GLcontext *ctx, |
| 159 |
GLsizei width, GLsizei height, GLenum format, |
| 160 |
GLenum type, const GLvoid *pixels ); |
| 161 |
|
| 162 |
extern void gl_save_EdgeFlag( GLcontext *ctx, GLboolean flag ); |
| 163 |
|
| 164 |
extern void gl_save_Enable( GLcontext *ctx, GLenum cap ); |
| 165 |
|
| 166 |
extern void gl_save_End( GLcontext *ctx ); |
| 167 |
|
| 168 |
extern void gl_save_EvalCoord1f( GLcontext *ctx, GLfloat u ); |
| 169 |
|
| 170 |
extern void gl_save_EvalCoord2f( GLcontext *ctx, GLfloat u, GLfloat v ); |
| 171 |
|
| 172 |
extern void gl_save_EvalMesh1( GLcontext *ctx, |
| 173 |
GLenum mode, GLint i1, GLint i2 ); |
| 174 |
|
| 175 |
extern void gl_save_EvalMesh2( GLcontext *ctx, GLenum mode, GLint i1, GLint i2, |
| 176 |
GLint j1, GLint j2 ); |
| 177 |
|
| 178 |
extern void gl_save_EvalPoint1( GLcontext *ctx, GLint i ); |
| 179 |
|
| 180 |
extern void gl_save_EvalPoint2( GLcontext *ctx, GLint i, GLint j ); |
| 181 |
|
| 182 |
extern void gl_save_Fogfv( GLcontext *ctx, |
| 183 |
GLenum pname, const GLfloat *params ); |
| 184 |
|
| 185 |
extern void gl_save_FrontFace( GLcontext *ctx, GLenum mode ); |
| 186 |
|
| 187 |
extern void gl_save_Frustum( GLcontext *ctx, GLdouble left, GLdouble right, |
| 188 |
GLdouble bottom, GLdouble top, |
| 189 |
GLdouble nearval, GLdouble farval ); |
| 190 |
|
| 191 |
extern void gl_save_Hint( GLcontext *ctx, GLenum target, GLenum mode ); |
| 192 |
|
| 193 |
extern void gl_save_Indexf( GLcontext *ctx, GLfloat index ); |
| 194 |
|
| 195 |
extern void gl_save_Indexi( GLcontext *ctx, GLint index ); |
| 196 |
|
| 197 |
extern void gl_save_IndexMask( GLcontext *ctx, GLuint mask ); |
| 198 |
|
| 199 |
extern void gl_save_InitNames( GLcontext *ctx ); |
| 200 |
|
| 201 |
extern void gl_save_Lightfv( GLcontext *ctx, GLenum light, GLenum pname, |
| 202 |
const GLfloat *params, GLint numparams ); |
| 203 |
|
| 204 |
extern void gl_save_LightModelfv( GLcontext *ctx, GLenum pname, |
| 205 |
const GLfloat *params ); |
| 206 |
|
| 207 |
extern void gl_save_LineWidth( GLcontext *ctx, GLfloat width ); |
| 208 |
|
| 209 |
extern void gl_save_LineStipple( GLcontext *ctx, GLint factor, |
| 210 |
GLushort pattern ); |
| 211 |
|
| 212 |
extern void gl_save_ListBase( GLcontext *ctx, GLuint base ); |
| 213 |
|
| 214 |
extern void gl_save_LoadMatrixf( GLcontext *ctx, const GLfloat *m ); |
| 215 |
|
| 216 |
extern void gl_save_LoadName( GLcontext *ctx, GLuint name ); |
| 217 |
|
| 218 |
extern void gl_save_LogicOp( GLcontext *ctx, GLenum opcode ); |
| 219 |
|
| 220 |
extern void gl_save_Map1f( GLcontext *ctx, GLenum target, |
| 221 |
GLfloat u1, GLfloat u2, GLint stride, |
| 222 |
GLint order, const GLfloat *points, |
| 223 |
GLboolean retain ); |
| 224 |
|
| 225 |
extern void gl_save_Map2f( GLcontext *ctx, GLenum target, |
| 226 |
GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, |
| 227 |
GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, |
| 228 |
const GLfloat *points, |
| 229 |
GLboolean retain ); |
| 230 |
|
| 231 |
extern void gl_save_MapGrid1f( GLcontext *ctx, GLint un, |
| 232 |
GLfloat u1, GLfloat u2 ); |
| 233 |
|
| 234 |
extern void gl_save_MapGrid2f( GLcontext *ctx, |
| 235 |
GLint un, GLfloat u1, GLfloat u2, |
| 236 |
GLint vn, GLfloat v1, GLfloat v2 ); |
| 237 |
|
| 238 |
extern void gl_save_Materialfv( GLcontext *ctx, GLenum face, GLenum pname, |
| 239 |
const GLfloat *params ); |
| 240 |
|
| 241 |
extern void gl_save_MatrixMode( GLcontext *ctx, GLenum mode ); |
| 242 |
|
| 243 |
extern void gl_save_MultMatrixf( GLcontext *ctx, const GLfloat *m ); |
| 244 |
|
| 245 |
extern void gl_save_NewList( GLcontext *ctx, GLuint list, GLenum mode ); |
| 246 |
|
| 247 |
extern void gl_save_Normal3fv( GLcontext *ctx, const GLfloat n[3] ); |
| 248 |
|
| 249 |
extern void gl_save_Normal3f( GLcontext *ctx, |
| 250 |
GLfloat nx, GLfloat ny, GLfloat nz ); |
| 251 |
|
| 252 |
extern void gl_save_PassThrough( GLcontext *ctx, GLfloat token ); |
| 253 |
|
| 254 |
extern void gl_save_PixelMapfv( GLcontext *ctx, GLenum map, GLint mapsize, |
| 255 |
const GLfloat *values ); |
| 256 |
|
| 257 |
extern void gl_save_PixelTransferf( GLcontext *ctx, |
| 258 |
GLenum pname, GLfloat param ); |
| 259 |
|
| 260 |
extern void gl_save_PixelZoom( GLcontext *ctx, |
| 261 |
GLfloat xfactor, GLfloat yfactor ); |
| 262 |
|
| 263 |
extern void gl_save_PointSize( GLcontext *ctx, GLfloat size ); |
| 264 |
|
| 265 |
extern void gl_save_PolygonMode( GLcontext *ctx, GLenum face, GLenum mode ); |
| 266 |
|
| 267 |
extern void gl_save_PolygonStipple( GLcontext *ctx, const GLubyte *mask ); |
| 268 |
|
| 269 |
extern void gl_save_PolygonOffset( GLcontext *ctx, |
| 270 |
GLfloat factor, GLfloat units ); |
| 271 |
|
| 272 |
extern void gl_save_PopAttrib( GLcontext *ctx ); |
| 273 |
|
| 274 |
extern void gl_save_PopMatrix( GLcontext *ctx ); |
| 275 |
|
| 276 |
extern void gl_save_PopName( GLcontext *ctx ); |
| 277 |
|
| 278 |
extern void gl_save_PrioritizeTextures( GLcontext *ctx, |
| 279 |
GLsizei n, const GLuint *textures, |
| 280 |
const GLclampf *priorities ); |
| 281 |
|
| 282 |
extern void gl_save_PushAttrib( GLcontext *ctx, GLbitfield mask ); |
| 283 |
|
| 284 |
extern void gl_save_PushMatrix( GLcontext *ctx ); |
| 285 |
|
| 286 |
extern void gl_save_PushName( GLcontext *ctx, GLuint name ); |
| 287 |
|
| 288 |
extern void gl_save_RasterPos4f( GLcontext *ctx, |
| 289 |
GLfloat x, GLfloat y, GLfloat z, GLfloat w ); |
| 290 |
|
| 291 |
extern void gl_save_ReadBuffer( GLcontext *ctx, GLenum mode ); |
| 292 |
|
| 293 |
extern void gl_save_Rotatef( GLcontext *ctx, GLfloat angle, |
| 294 |
GLfloat x, GLfloat y, GLfloat z ); |
| 295 |
|
| 296 |
extern void gl_save_Scalef( GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z ); |
| 297 |
|
| 298 |
extern void gl_save_Scissor( GLcontext *ctx, |
| 299 |
GLint x, GLint y, GLsizei width, GLsizei height ); |
| 300 |
|
| 301 |
extern void gl_save_ShadeModel( GLcontext *ctx, GLenum mode ); |
| 302 |
|
| 303 |
extern void gl_save_StencilFunc( GLcontext *ctx, |
| 304 |
GLenum func, GLint ref, GLuint mask ); |
| 305 |
|
| 306 |
extern void gl_save_StencilMask( GLcontext *ctx, GLuint mask ); |
| 307 |
|
| 308 |
extern void gl_save_StencilOp( GLcontext *ctx, |
| 309 |
GLenum fail, GLenum zfail, GLenum zpass ); |
| 310 |
|
| 311 |
extern void gl_save_TexCoord4f( GLcontext *ctx, GLfloat s, GLfloat t, |
| 312 |
GLfloat r, GLfloat q ); |
| 313 |
|
| 314 |
extern void gl_save_TexEnvfv( GLcontext *ctx, GLenum target, GLenum pname, |
| 315 |
const GLfloat *params ); |
| 316 |
|
| 317 |
extern void gl_save_TexParameterfv( GLcontext *ctx, GLenum target, |
| 318 |
GLenum pname, const GLfloat *params ); |
| 319 |
|
| 320 |
extern void gl_save_TexGenfv( GLcontext *ctx, GLenum coord, GLenum pname, |
| 321 |
const GLfloat *params ); |
| 322 |
|
| 323 |
extern void gl_save_TexImage1D( GLcontext *ctx, GLenum target, |
| 324 |
GLint level, GLint components, |
| 325 |
GLsizei width, GLint border, |
| 326 |
GLenum format, GLenum type, |
| 327 |
struct gl_image *teximage ); |
| 328 |
|
| 329 |
extern void gl_save_TexImage2D( GLcontext *ctx, GLenum target, |
| 330 |
GLint level, GLint components, |
| 331 |
GLsizei width, GLsizei height, GLint border, |
| 332 |
GLenum format, GLenum type, |
| 333 |
struct gl_image *teximage ); |
| 334 |
|
| 335 |
extern void gl_save_TexImage3DEXT( GLcontext *ctx, GLenum target, |
| 336 |
GLint level, GLint components, |
| 337 |
GLsizei width, GLsizei height, GLsizei depth, |
| 338 |
GLint border, |
| 339 |
GLenum format, GLenum type, |
| 340 |
struct gl_image *teximage ); |
| 341 |
|
| 342 |
extern void gl_save_TexSubImage1D( GLcontext *ctx, |
| 343 |
GLenum target, GLint level, |
| 344 |
GLint xoffset, GLsizei width, |
| 345 |
GLenum format, GLenum type, |
| 346 |
struct gl_image *image ); |
| 347 |
|
| 348 |
|
| 349 |
extern void gl_save_TexSubImage2D( GLcontext *ctx, |
| 350 |
GLenum target, GLint level, |
| 351 |
GLint xoffset, GLint yoffset, |
| 352 |
GLsizei width, GLsizei height, |
| 353 |
GLenum format, GLenum type, |
| 354 |
struct gl_image *image ); |
| 355 |
|
| 356 |
extern void gl_save_TexSubImage3DEXT( GLcontext *ctx, |
| 357 |
GLenum target, GLint level, |
| 358 |
GLint xoffset, GLint yoffset, GLint zoffset, |
| 359 |
GLsizei width, GLsizei height, GLsizei depth, |
| 360 |
GLenum format, GLenum type, |
| 361 |
struct gl_image *image ); |
| 362 |
|
| 363 |
extern void gl_save_Translatef( GLcontext *ctx, |
| 364 |
GLfloat x, GLfloat y, GLfloat z ); |
| 365 |
|
| 366 |
extern void gl_save_Vertex4f( GLcontext *ctx, |
| 367 |
GLfloat x, GLfloat y, GLfloat z, GLfloat w ); |
| 368 |
|
| 369 |
extern void gl_save_Viewport( GLcontext *ctx, GLint x, GLint y, |
| 370 |
GLsizei width, GLsizei height ); |
| 371 |
|
| 372 |
extern void gl_save_WindowPos4fMESA( GLcontext *ctx, |
| 373 |
GLfloat x, GLfloat y, |
| 374 |
GLfloat z, GLfloat w ); |
| 375 |
|
| 376 |
|
| 377 |
#endif |