blob: e2b928827680cd61d617545dbd2dedb10ee3bd76 [file] [log] [blame]
Brian Paulf8860232000-07-11 14:11:04 +00001/* $Id: glu.h,v 1.22 2000/07/11 14:11:44 brianp Exp $ */
jtgafb833d1999-08-19 00:55:39 +00002
3/*
4 * Mesa 3-D graphics library
Brian Paulfbd8f211999-11-11 01:22:25 +00005 * Version: 3.3
Brian Paulf8860232000-07-11 14:11:04 +00006 * Copyright (C) 1995-2000 Brian Paul
jtgafb833d1999-08-19 00:55:39 +00007 *
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
Brian Paulf8860232000-07-11 14:11:04 +000024#ifndef GLU_H
25#define GLU_H
jtgafb833d1999-08-19 00:55:39 +000026
27
28#if defined(USE_MGL_NAMESPACE)
29#include "glu_mangle.h"
30#endif
31
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37
Brian Paulf8860232000-07-11 14:11:04 +000038#include <GL/gl.h>
39
40
jtgafb833d1999-08-19 00:55:39 +000041 /* to facilitate clean DLL building ... */
Brian Paul8da58f32000-05-22 19:40:43 +000042#if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN__))
jtgafb833d1999-08-19 00:55:39 +000043# if defined(_MSC_VER) && defined(BUILD_GLU32) /* tag specify we're building mesa as a DLL */
44# define GLUAPI __declspec(dllexport)
45# elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
46# define GLUAPI __declspec(dllimport)
47# else /* for use with static link lib build of Win32 edition only */
48# define GLUAPI extern
49# endif /* _STATIC_MESA support */
Brian Paul08f03742000-05-22 16:21:27 +000050# define GLCALLBACK __stdcall
51# define GLCALLBACKP __stdcall *
jtgafb833d1999-08-19 00:55:39 +000052#else
53# define GLUAPI extern
Brian Paul08f03742000-05-22 16:21:27 +000054# define GLCALLBACK
55# define GLCALLBACKP *
Brian Paul8da58f32000-05-22 19:40:43 +000056#endif /* WIN32 / CYGWIN bracket */
jtgafb833d1999-08-19 00:55:39 +000057
Brian Paul08f03742000-05-22 16:21:27 +000058/* compatability guard so we don't need to change client code */
59#if defined(_WIN32) && !defined(_WINDEF_) && !defined(_GNU_H_WINDOWS32_BASE) && !defined(OPENSTEP)
60# define CALLBACK GLCALLBACK
61#endif
62
63
jtgafb833d1999-08-19 00:55:39 +000064#ifdef macintosh
65 #pragma enumsalwaysint on
66 #if PRAGMA_IMPORT_SUPPORTED
67 #pragma import on
68 #endif
69#endif
70
Brian Paula6f09fa1999-10-22 10:47:01 +000071#ifndef GLUAPI
72#define GLUAPI
73#endif
74
75#ifndef GLAPIENTRY
76#define GLAPIENTRY
77#endif
78
79#ifndef GLCALLBACK
80#define GLCALLBACK
81#endif
82
jtgafb833d1999-08-19 00:55:39 +000083
Brian Paulfbd8f211999-11-11 01:22:25 +000084#define GLU_VERSION_1_1 1
Brian Paulf8860232000-07-11 14:11:04 +000085
jtgafb833d1999-08-19 00:55:39 +000086
87
Brian Paulfbd8f211999-11-11 01:22:25 +000088#define GLU_TRUE 1
89#define GLU_FALSE 0
jtgafb833d1999-08-19 00:55:39 +000090
91
Brian Paulfbd8f211999-11-11 01:22:25 +000092/* Normal vectors */
93#define GLU_SMOOTH 100000
94#define GLU_FLAT 100001
95#define GLU_NONE 100002
jtgafb833d1999-08-19 00:55:39 +000096
Brian Paulfbd8f211999-11-11 01:22:25 +000097/* Quadric draw styles */
98#define GLU_POINT 100010
99#define GLU_LINE 100011
100#define GLU_FILL 100012
101#define GLU_SILHOUETTE 100013
jtgafb833d1999-08-19 00:55:39 +0000102
Brian Paulfbd8f211999-11-11 01:22:25 +0000103/* Quadric orientation */
104#define GLU_OUTSIDE 100020
105#define GLU_INSIDE 100021
jtgafb833d1999-08-19 00:55:39 +0000106
Brian Paulfbd8f211999-11-11 01:22:25 +0000107/* Tessellator */
108#define GLU_TESS_BEGIN 100100
109#define GLU_TESS_VERTEX 100101
110#define GLU_TESS_END 100102
111#define GLU_TESS_ERROR 100103
112#define GLU_TESS_EDGE_FLAG 100104
113#define GLU_TESS_COMBINE 100105
jtgafb833d1999-08-19 00:55:39 +0000114
Brian Paulfbd8f211999-11-11 01:22:25 +0000115#define GLU_TESS_BEGIN_DATA 100106
116#define GLU_TESS_VERTEX_DATA 100107
117#define GLU_TESS_END_DATA 100108
118#define GLU_TESS_ERROR_DATA 100109
119#define GLU_TESS_EDGE_FLAG_DATA 100110
120#define GLU_TESS_COMBINE_DATA 100111
jtgafb833d1999-08-19 00:55:39 +0000121
Brian Paulfbd8f211999-11-11 01:22:25 +0000122/* Winding rules */
123#define GLU_TESS_WINDING_ODD 100130
124#define GLU_TESS_WINDING_NONZERO 100131
125#define GLU_TESS_WINDING_POSITIVE 100132
126#define GLU_TESS_WINDING_NEGATIVE 100133
127#define GLU_TESS_WINDING_ABS_GEQ_TWO 100134
Gareth Hughes2856b531999-09-10 02:03:31 +0000128
Brian Paulfbd8f211999-11-11 01:22:25 +0000129/* Tessellation properties */
130#define GLU_TESS_WINDING_RULE 100140
131#define GLU_TESS_BOUNDARY_ONLY 100141
132#define GLU_TESS_TOLERANCE 100142
Gareth Hughes2856b531999-09-10 02:03:31 +0000133
Brian Paulfbd8f211999-11-11 01:22:25 +0000134/* Tessellation errors */
135#define GLU_TESS_ERROR1 100151 /* Missing gluBeginPolygon */
136#define GLU_TESS_ERROR2 100152 /* Missing gluBeginContour */
137#define GLU_TESS_ERROR3 100153 /* Missing gluEndPolygon */
138#define GLU_TESS_ERROR4 100154 /* Missing gluEndContour */
139#define GLU_TESS_ERROR5 100155 /* */
140#define GLU_TESS_ERROR6 100156 /* */
141#define GLU_TESS_ERROR7 100157 /* */
142#define GLU_TESS_ERROR8 100158 /* */
jtgafb833d1999-08-19 00:55:39 +0000143
Brian Paulfbd8f211999-11-11 01:22:25 +0000144/* NURBS */
145#define GLU_AUTO_LOAD_MATRIX 100200
146#define GLU_CULLING 100201
Kendall Bennetta7311921999-11-11 03:21:43 +0000147#define GLU_PARAMETRIC_TOLERANCE 100202
Brian Paulfbd8f211999-11-11 01:22:25 +0000148#define GLU_SAMPLING_TOLERANCE 100203
149#define GLU_DISPLAY_MODE 100204
150#define GLU_SAMPLING_METHOD 100205
151#define GLU_U_STEP 100206
152#define GLU_V_STEP 100207
jtgafb833d1999-08-19 00:55:39 +0000153
Brian Paulfbd8f211999-11-11 01:22:25 +0000154#define GLU_PATH_LENGTH 100215
155#define GLU_PARAMETRIC_ERROR 100216
156#define GLU_DOMAIN_DISTANCE 100217
jtgafb833d1999-08-19 00:55:39 +0000157
Brian Paulfbd8f211999-11-11 01:22:25 +0000158#define GLU_MAP1_TRIM_2 100210
159#define GLU_MAP1_TRIM_3 100211
jtgafb833d1999-08-19 00:55:39 +0000160
Brian Paulfbd8f211999-11-11 01:22:25 +0000161#define GLU_OUTLINE_POLYGON 100240
162#define GLU_OUTLINE_PATCH 100241
jtgafb833d1999-08-19 00:55:39 +0000163
Brian Paulfbd8f211999-11-11 01:22:25 +0000164#define GLU_NURBS_ERROR1 100251 /* spline order un-supported */
165#define GLU_NURBS_ERROR2 100252 /* too few knots */
166#define GLU_NURBS_ERROR3 100253 /* valid knot range is empty */
167#define GLU_NURBS_ERROR4 100254 /* decreasing knot sequence */
168#define GLU_NURBS_ERROR5 100255 /* knot multiplicity > spline order */
169#define GLU_NURBS_ERROR6 100256 /* endcurve() must follow bgncurve() */
170#define GLU_NURBS_ERROR7 100257 /* bgncurve() must precede endcurve() */
171#define GLU_NURBS_ERROR8 100258 /* ctrlarray or knot vector is NULL */
172#define GLU_NURBS_ERROR9 100259 /* can't draw pwlcurves */
173#define GLU_NURBS_ERROR10 100260 /* missing gluNurbsCurve() */
174#define GLU_NURBS_ERROR11 100261 /* missing gluNurbsSurface() */
175#define GLU_NURBS_ERROR12 100262 /* endtrim() must precede endsurface() */
176#define GLU_NURBS_ERROR13 100263 /* bgnsurface() must precede endsurface() */
177#define GLU_NURBS_ERROR14 100264 /* curve of improper type passed as trim curve */
178#define GLU_NURBS_ERROR15 100265 /* bgnsurface() must precede bgntrim() */
179#define GLU_NURBS_ERROR16 100266 /* endtrim() must follow bgntrim() */
180#define GLU_NURBS_ERROR17 100267 /* bgntrim() must precede endtrim()*/
181#define GLU_NURBS_ERROR18 100268 /* invalid or missing trim curve*/
182#define GLU_NURBS_ERROR19 100269 /* bgntrim() must precede pwlcurve() */
183#define GLU_NURBS_ERROR20 100270 /* pwlcurve referenced twice*/
184#define GLU_NURBS_ERROR21 100271 /* pwlcurve and nurbscurve mixed */
185#define GLU_NURBS_ERROR22 100272 /* improper usage of trim data type */
186#define GLU_NURBS_ERROR23 100273 /* nurbscurve referenced twice */
187#define GLU_NURBS_ERROR24 100274 /* nurbscurve and pwlcurve mixed */
188#define GLU_NURBS_ERROR25 100275 /* nurbssurface referenced twice */
189#define GLU_NURBS_ERROR26 100276 /* invalid property */
190#define GLU_NURBS_ERROR27 100277 /* endsurface() must follow bgnsurface() */
191#define GLU_NURBS_ERROR28 100278 /* intersecting or misoriented trim curves */
192#define GLU_NURBS_ERROR29 100279 /* intersecting trim curves */
193#define GLU_NURBS_ERROR30 100280 /* UNUSED */
194#define GLU_NURBS_ERROR31 100281 /* unconnected trim curves */
195#define GLU_NURBS_ERROR32 100282 /* unknown knot error */
196#define GLU_NURBS_ERROR33 100283 /* negative vertex count encountered */
197#define GLU_NURBS_ERROR34 100284 /* negative byte-stride */
198#define GLU_NURBS_ERROR35 100285 /* unknown type descriptor */
199#define GLU_NURBS_ERROR36 100286 /* null control point reference */
200#define GLU_NURBS_ERROR37 100287 /* duplicate point on pwlcurve */
jtgafb833d1999-08-19 00:55:39 +0000201
Brian Paul9331b671999-11-23 22:41:10 +0000202/* GLU 1.3 and later */
203#define GLU_NURBS_MODE ?
204
205
Brian Paulfbd8f211999-11-11 01:22:25 +0000206/* Errors */
207#define GLU_INVALID_ENUM 100900
208#define GLU_INVALID_VALUE 100901
209#define GLU_OUT_OF_MEMORY 100902
210#define GLU_INCOMPATIBLE_GL_VERSION 100903
jtgafb833d1999-08-19 00:55:39 +0000211
Brian Paul9331b671999-11-23 22:41:10 +0000212/* GLU 1.1 and later */
Brian Paulfbd8f211999-11-11 01:22:25 +0000213#define GLU_VERSION 100800
214#define GLU_EXTENSIONS 100801
Gareth Hughes2856b531999-09-10 02:03:31 +0000215
Brian Paul9331b671999-11-23 22:41:10 +0000216
Brian Paulf8860232000-07-11 14:11:04 +0000217/*** GLU 1.0 tessellation ***/
Gareth Hughes2856b531999-09-10 02:03:31 +0000218
Brian Paulfbd8f211999-11-11 01:22:25 +0000219/* Contour types */
220#define GLU_CW 100120
221#define GLU_CCW 100121
222#define GLU_INTERIOR 100122
223#define GLU_EXTERIOR 100123
224#define GLU_UNKNOWN 100124
Gareth Hughes2856b531999-09-10 02:03:31 +0000225
Brian Paulfbd8f211999-11-11 01:22:25 +0000226/* Tessellator */
227#define GLU_BEGIN GLU_TESS_BEGIN
228#define GLU_VERTEX GLU_TESS_VERTEX
229#define GLU_END GLU_TESS_END
230#define GLU_ERROR GLU_TESS_ERROR
231#define GLU_EDGE_FLAG GLU_TESS_EDGE_FLAG
jtgafb833d1999-08-19 00:55:39 +0000232
233
Brian Paulf8860232000-07-11 14:11:04 +0000234
jtgafb833d1999-08-19 00:55:39 +0000235#if defined(__BEOS__)
Gareth Hughes2856b531999-09-10 02:03:31 +0000236 /* The BeOS does something funky and makes these typedefs in one
237 * of its system headers.
238 */
jtgafb833d1999-08-19 00:55:39 +0000239#else
Brian Paulf8860232000-07-11 14:11:04 +0000240
241#if defined GLU_VERSION_1_2
Gareth Hughes2856b531999-09-10 02:03:31 +0000242 typedef struct GLUquadric GLUquadricObj;
243 typedef struct GLUnurbs GLUnurbsObj;
Gareth Hughes2856b531999-09-10 02:03:31 +0000244 /* FIXME: We need to implement the other 1.3 typedefs - GH */
245 typedef struct GLUtesselator GLUtesselator;
Gareth Hughes49e0bc41999-09-14 03:23:08 +0000246 typedef GLUtesselator GLUtriangulatorObj;
Brian Paulf8860232000-07-11 14:11:04 +0000247#else
248 /* GLU 1.1 and older */
249 typedef struct GLUquadric GLUquadricObj;
250 typedef struct GLUtriangulatorObj GLUtriangulatorObj;
251 typedef struct GLUnurbs GLUnurbsObj;
252#endif
253
jtgafb833d1999-08-19 00:55:39 +0000254#endif
255
256
257
258#if defined(__BEOS__) || defined(__QUICKDRAW__)
259#pragma export on
260#endif
261
262
263/*
264 *
265 * Miscellaneous functions
266 *
267 */
268
269GLUAPI void GLAPIENTRY gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
Brian Paulfbd8f211999-11-11 01:22:25 +0000270 GLdouble centerx, GLdouble centery,
271 GLdouble centerz,
272 GLdouble upx, GLdouble upy, GLdouble upz );
jtgafb833d1999-08-19 00:55:39 +0000273
274
275GLUAPI void GLAPIENTRY gluOrtho2D( GLdouble left, GLdouble right,
Brian Paulfbd8f211999-11-11 01:22:25 +0000276 GLdouble bottom, GLdouble top );
jtgafb833d1999-08-19 00:55:39 +0000277
278
279GLUAPI void GLAPIENTRY gluPerspective( GLdouble fovy, GLdouble aspect,
Brian Paulfbd8f211999-11-11 01:22:25 +0000280 GLdouble zNear, GLdouble zFar );
jtgafb833d1999-08-19 00:55:39 +0000281
282
283GLUAPI void GLAPIENTRY gluPickMatrix( GLdouble x, GLdouble y,
Brian Paulfbd8f211999-11-11 01:22:25 +0000284 GLdouble width, GLdouble height,
285 const GLint viewport[4] );
jtgafb833d1999-08-19 00:55:39 +0000286
287GLUAPI GLint GLAPIENTRY gluProject( GLdouble objx, GLdouble objy, GLdouble objz,
jtgafb833d1999-08-19 00:55:39 +0000288 const GLdouble modelMatrix[16],
289 const GLdouble projMatrix[16],
290 const GLint viewport[4],
Brian Paulfbd8f211999-11-11 01:22:25 +0000291 GLdouble *winx, GLdouble *winy,
292 GLdouble *winz );
293
294GLUAPI GLint GLAPIENTRY gluUnProject( GLdouble winx, GLdouble winy,
295 GLdouble winz,
296 const GLdouble modelMatrix[16],
297 const GLdouble projMatrix[16],
298 const GLint viewport[4],
299 GLdouble *objx, GLdouble *objy,
300 GLdouble *objz );
jtgafb833d1999-08-19 00:55:39 +0000301
302GLUAPI const GLubyte* GLAPIENTRY gluErrorString( GLenum errorCode );
303
304
305
306/*
307 *
308 * Mipmapping and image scaling
309 *
310 */
311
312GLUAPI GLint GLAPIENTRY gluScaleImage( GLenum format,
Brian Paulf8860232000-07-11 14:11:04 +0000313 GLsizei widthin, GLsizei heightin,
Brian Paulfbd8f211999-11-11 01:22:25 +0000314 GLenum typein, const void *datain,
Brian Paulf8860232000-07-11 14:11:04 +0000315 GLsizei widthout, GLsizei heightout,
Brian Paulfbd8f211999-11-11 01:22:25 +0000316 GLenum typeout, void *dataout );
jtgafb833d1999-08-19 00:55:39 +0000317
318GLUAPI GLint GLAPIENTRY gluBuild1DMipmaps( GLenum target, GLint components,
Brian Paulf8860232000-07-11 14:11:04 +0000319 GLsizei width, GLenum format,
Brian Paulfbd8f211999-11-11 01:22:25 +0000320 GLenum type, const void *data );
jtgafb833d1999-08-19 00:55:39 +0000321
322GLUAPI GLint GLAPIENTRY gluBuild2DMipmaps( GLenum target, GLint components,
Brian Paulf8860232000-07-11 14:11:04 +0000323 GLsizei width, GLsizei height,
Brian Paulfbd8f211999-11-11 01:22:25 +0000324 GLenum format,
325 GLenum type, const void *data );
jtgafb833d1999-08-19 00:55:39 +0000326
327
328
329/*
330 *
331 * Quadrics
332 *
333 */
334
335GLUAPI GLUquadricObj* GLAPIENTRY gluNewQuadric( void );
336
337GLUAPI void GLAPIENTRY gluDeleteQuadric( GLUquadricObj *state );
338
339GLUAPI void GLAPIENTRY gluQuadricDrawStyle( GLUquadricObj *quadObject,
Brian Paulfbd8f211999-11-11 01:22:25 +0000340 GLenum drawStyle );
jtgafb833d1999-08-19 00:55:39 +0000341
342GLUAPI void GLAPIENTRY gluQuadricOrientation( GLUquadricObj *quadObject,
Brian Paulfbd8f211999-11-11 01:22:25 +0000343 GLenum orientation );
jtgafb833d1999-08-19 00:55:39 +0000344
345GLUAPI void GLAPIENTRY gluQuadricNormals( GLUquadricObj *quadObject,
Brian Paulfbd8f211999-11-11 01:22:25 +0000346 GLenum normals );
jtgafb833d1999-08-19 00:55:39 +0000347
348GLUAPI void GLAPIENTRY gluQuadricTexture( GLUquadricObj *quadObject,
Brian Paulfbd8f211999-11-11 01:22:25 +0000349 GLboolean textureCoords );
jtgafb833d1999-08-19 00:55:39 +0000350
351GLUAPI void GLAPIENTRY gluQuadricCallback( GLUquadricObj *qobj,
Brian Paulfbd8f211999-11-11 01:22:25 +0000352 GLenum which,
353 void (GLCALLBACK *fn)() );
jtgafb833d1999-08-19 00:55:39 +0000354
355GLUAPI void GLAPIENTRY gluCylinder( GLUquadricObj *qobj,
Brian Paulfbd8f211999-11-11 01:22:25 +0000356 GLdouble baseRadius,
357 GLdouble topRadius,
358 GLdouble height,
359 GLint slices, GLint stacks );
jtgafb833d1999-08-19 00:55:39 +0000360
361GLUAPI void GLAPIENTRY gluSphere( GLUquadricObj *qobj,
Brian Paulf8860232000-07-11 14:11:04 +0000362 GLdouble radius,
363 GLint slices, GLint stacks );
jtgafb833d1999-08-19 00:55:39 +0000364
365GLUAPI void GLAPIENTRY gluDisk( GLUquadricObj *qobj,
Brian Paulfbd8f211999-11-11 01:22:25 +0000366 GLdouble innerRadius, GLdouble outerRadius,
367 GLint slices, GLint loops );
jtgafb833d1999-08-19 00:55:39 +0000368
Brian Paulf8860232000-07-11 14:11:04 +0000369GLUAPI void GLAPIENTRY gluPartialDisk( GLUquadricObj *qobj,
370 GLdouble innerRadius,
Brian Paulfbd8f211999-11-11 01:22:25 +0000371 GLdouble outerRadius, GLint slices,
372 GLint loops, GLdouble startAngle,
373 GLdouble sweepAngle );
jtgafb833d1999-08-19 00:55:39 +0000374
375
376
377/*
378 *
379 * Nurbs
380 *
381 */
382
383GLUAPI GLUnurbsObj* GLAPIENTRY gluNewNurbsRenderer( void );
384
385GLUAPI void GLAPIENTRY gluDeleteNurbsRenderer( GLUnurbsObj *nobj );
386
387GLUAPI void GLAPIENTRY gluLoadSamplingMatrices( GLUnurbsObj *nobj,
Brian Paulfbd8f211999-11-11 01:22:25 +0000388 const GLfloat modelMatrix[16],
389 const GLfloat projMatrix[16],
390 const GLint viewport[4] );
jtgafb833d1999-08-19 00:55:39 +0000391
392GLUAPI void GLAPIENTRY gluNurbsProperty( GLUnurbsObj *nobj, GLenum property,
Brian Paulfbd8f211999-11-11 01:22:25 +0000393 GLfloat value );
jtgafb833d1999-08-19 00:55:39 +0000394
395GLUAPI void GLAPIENTRY gluGetNurbsProperty( GLUnurbsObj *nobj, GLenum property,
Brian Paulfbd8f211999-11-11 01:22:25 +0000396 GLfloat *value );
jtgafb833d1999-08-19 00:55:39 +0000397
398GLUAPI void GLAPIENTRY gluBeginCurve( GLUnurbsObj *nobj );
399
400GLUAPI void GLAPIENTRY gluEndCurve( GLUnurbsObj * nobj );
401
402GLUAPI void GLAPIENTRY gluNurbsCurve( GLUnurbsObj *nobj, GLint nknots,
Brian Paulfbd8f211999-11-11 01:22:25 +0000403 GLfloat *knot, GLint stride,
404 GLfloat *ctlarray, GLint order,
405 GLenum type );
jtgafb833d1999-08-19 00:55:39 +0000406
407GLUAPI void GLAPIENTRY gluBeginSurface( GLUnurbsObj *nobj );
408
409GLUAPI void GLAPIENTRY gluEndSurface( GLUnurbsObj * nobj );
410
411GLUAPI void GLAPIENTRY gluNurbsSurface( GLUnurbsObj *nobj,
Brian Paulfbd8f211999-11-11 01:22:25 +0000412 GLint sknot_count, GLfloat *sknot,
413 GLint tknot_count, GLfloat *tknot,
414 GLint s_stride, GLint t_stride,
415 GLfloat *ctlarray,
416 GLint sorder, GLint torder,
417 GLenum type );
jtgafb833d1999-08-19 00:55:39 +0000418
419GLUAPI void GLAPIENTRY gluBeginTrim( GLUnurbsObj *nobj );
420
421GLUAPI void GLAPIENTRY gluEndTrim( GLUnurbsObj *nobj );
422
423GLUAPI void GLAPIENTRY gluPwlCurve( GLUnurbsObj *nobj, GLint count,
Brian Paulf8860232000-07-11 14:11:04 +0000424 GLfloat *array,
425 GLint stride, GLenum type );
jtgafb833d1999-08-19 00:55:39 +0000426
427GLUAPI void GLAPIENTRY gluNurbsCallback( GLUnurbsObj *nobj, GLenum which,
Brian Paulfbd8f211999-11-11 01:22:25 +0000428 void (GLCALLBACK *fn)() );
jtgafb833d1999-08-19 00:55:39 +0000429
430
431
432/*
433 *
Gareth Hughes2856b531999-09-10 02:03:31 +0000434 * Polygon tessellation
jtgafb833d1999-08-19 00:55:39 +0000435 *
436 */
437
Brian Paulf8860232000-07-11 14:11:04 +0000438#ifdef GLU_VERSION_1_2
439
Gareth Hughes2856b531999-09-10 02:03:31 +0000440GLUAPI GLUtesselator* GLAPIENTRY gluNewTess( void );
jtgafb833d1999-08-19 00:55:39 +0000441
Gareth Hughes2856b531999-09-10 02:03:31 +0000442GLUAPI void GLAPIENTRY gluDeleteTess( GLUtesselator *tobj );
jtgafb833d1999-08-19 00:55:39 +0000443
Gareth Hughes2856b531999-09-10 02:03:31 +0000444GLUAPI void GLAPIENTRY gluTessBeginPolygon( GLUtesselator *tobj,
445 void *polygon_data );
jtgafb833d1999-08-19 00:55:39 +0000446
Gareth Hughes2856b531999-09-10 02:03:31 +0000447GLUAPI void GLAPIENTRY gluTessBeginContour( GLUtesselator *tobj );
jtgafb833d1999-08-19 00:55:39 +0000448
Gareth Hughes2856b531999-09-10 02:03:31 +0000449GLUAPI void GLAPIENTRY gluTessVertex( GLUtesselator *tobj, GLdouble coords[3],
450 void *vertex_data );
jtgafb833d1999-08-19 00:55:39 +0000451
Gareth Hughes2856b531999-09-10 02:03:31 +0000452GLUAPI void GLAPIENTRY gluTessEndContour( GLUtesselator *tobj );
jtgafb833d1999-08-19 00:55:39 +0000453
Gareth Hughes2856b531999-09-10 02:03:31 +0000454GLUAPI void GLAPIENTRY gluTessEndPolygon( GLUtesselator *tobj );
455
456GLUAPI void GLAPIENTRY gluTessProperty( GLUtesselator *tobj, GLenum which,
457 GLdouble value );
458
459GLUAPI void GLAPIENTRY gluTessNormal( GLUtesselator *tobj, GLdouble x,
460 GLdouble y, GLdouble z );
461
462GLUAPI void GLAPIENTRY gluTessCallback( GLUtesselator *tobj, GLenum which,
463 void (GLCALLBACK *fn)() );
464
465GLUAPI void GLAPIENTRY gluGetTessProperty( GLUtesselator *tobj, GLenum which,
466 GLdouble *value );
467
Brian Paulf8860232000-07-11 14:11:04 +0000468#else
Gareth Hughes2856b531999-09-10 02:03:31 +0000469
Brian Paulf8860232000-07-11 14:11:04 +0000470GLUAPI GLUtriangulatorObj* GLAPIENTRY gluNewTess( void );
Gareth Hughes2856b531999-09-10 02:03:31 +0000471
Brian Paulf8860232000-07-11 14:11:04 +0000472GLUAPI void GLAPIENTRY gluTessCallback( GLUtriangulatorObj *tobj, GLenum which,
473 void (GLCALLBACK *fn)() );
Gareth Hughes2856b531999-09-10 02:03:31 +0000474
Brian Paulf8860232000-07-11 14:11:04 +0000475GLUAPI void GLAPIENTRY gluDeleteTess( GLUtriangulatorObj *tobj );
476
477GLUAPI void GLAPIENTRY gluBeginPolygon( GLUtriangulatorObj *tobj );
478
479GLUAPI void GLAPIENTRY gluEndPolygon( GLUtriangulatorObj *tobj );
480
481GLUAPI void GLAPIENTRY gluNextContour( GLUtriangulatorObj *tobj, GLenum type );
482
483GLUAPI void GLAPIENTRY gluTessVertex( GLUtriangulatorObj *tobj, GLdouble v[3],
484 void *data );
485
486#endif
487
jtgafb833d1999-08-19 00:55:39 +0000488
489
490
491/*
492 *
493 * New functions in GLU 1.1
494 *
495 */
496
497GLUAPI const GLubyte* GLAPIENTRY gluGetString( GLenum name );
498
499
Brian Paulf893f031999-09-11 11:34:21 +0000500
Brian Paul9331b671999-11-23 22:41:10 +0000501/*
502 *
503 * GLU 1.3 functions
504 *
505 */
506
Brian Paulf8860232000-07-11 14:11:04 +0000507#ifdef GLU_VERSION_1_3
508
Brian Paul9331b671999-11-23 22:41:10 +0000509GLUAPI GLboolean GLAPIENTRY
Brian Paulf8860232000-07-11 14:11:04 +0000510gluCheckExtension( const char *extName, const GLubyte *extString );
Brian Paul9331b671999-11-23 22:41:10 +0000511
Brian Paulf8860232000-07-11 14:11:04 +0000512#endif
Brian Paul9331b671999-11-23 22:41:10 +0000513
514
515
jtgafb833d1999-08-19 00:55:39 +0000516#if defined(__BEOS__) || defined(__QUICKDRAW__)
517#pragma export off
518#endif
519
520
521#ifdef macintosh
522 #pragma enumsalwaysint reset
523 #if PRAGMA_IMPORT_SUPPORTED
524 #pragma import off
525 #endif
526#endif
527
528
529#ifdef __cplusplus
530}
531#endif
532
533
Brian Paulf8860232000-07-11 14:11:04 +0000534#endif