Brian Paul | a6f09fa | 1999-10-22 10:47:01 +0000 | [diff] [blame^] | 1 | /* $Id: glu.h,v 1.11 1999/10/22 10:47:01 brianp Exp $ */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2 | |
| 3 | /* |
| 4 | * Mesa 3-D graphics library |
| 5 | * Version: 3.1 |
| 6 | * Copyright (C) 1995-1999 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 | |
| 24 | /* |
| 25 | * $Log: glu.h,v $ |
Brian Paul | a6f09fa | 1999-10-22 10:47:01 +0000 | [diff] [blame^] | 26 | * Revision 1.11 1999/10/22 10:47:01 brianp |
| 27 | * define GLUAPI, GLAPIENTRY and GLCALLBACK to nothing if not using Mesa's gl.h |
| 28 | * |
Ted Jump | 01db31b | 1999-09-19 10:04:01 +0000 | [diff] [blame] | 29 | * Revision 1.10 1999/09/19 10:04:01 tjump |
| 30 | * Changed name 'glGetProcAddressEXT' to 'gluGetProcAddressEXT' |
Ted Jump | 725ec81 | 1999-09-19 02:03:18 +0000 | [diff] [blame] | 31 | * |
Brian Paul | 1bf28c4 | 1999-09-17 12:21:36 +0000 | [diff] [blame] | 32 | * Revision 1.8 1999/09/17 12:21:36 brianp |
| 33 | * glGetProcAddressEXT changes to accomodate Win32 and non-Win32 |
| 34 | * |
Ted Jump | 3849b44 | 1999-09-17 02:44:19 +0000 | [diff] [blame] | 35 | * Revision 1.7 1999/09/17 02:44:19 tjump |
| 36 | * I changed the xxxGetProcAddressEXT function declarations to be more |
| 37 | * MSVC friendly. Brianp - could you verify that they describe and operate |
| 38 | * as intended on Linux/ETC platforms? |
| 39 | * |
Brian Paul | 1447677 | 1999-09-16 16:54:22 +0000 | [diff] [blame] | 40 | * Revision 1.6 1999/09/16 16:54:22 brianp |
| 41 | * GLU_EXT_get_proc_address clean-up |
| 42 | * |
Gareth Hughes | 49e0bc4 | 1999-09-14 03:23:08 +0000 | [diff] [blame] | 43 | * Revision 1.5 1999/09/14 03:23:08 gareth |
| 44 | * Fixed GLUtriangulatorObj again (spelling). |
| 45 | * |
Gareth Hughes | 32c658b | 1999-09-14 01:32:58 +0000 | [diff] [blame] | 46 | * Revision 1.4 1999/09/14 01:32:58 gareth |
| 47 | * Fixed definition of GLUtriangluatorObj for 1.3 tessellator. |
| 48 | * |
Brian Paul | f893f03 | 1999-09-11 11:34:21 +0000 | [diff] [blame] | 49 | * Revision 1.3 1999/09/11 11:34:21 brianp |
| 50 | * added GLU_EXT_get_proc_address |
| 51 | * |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 52 | * Revision 1.2 1999/09/10 02:08:18 gareth |
| 53 | * Added GLU 1.3 tessellation (except winding rule code). |
| 54 | * |
| 55 | * Revision 1.1.1.1 1999/08/19 00:55:40 jtg |
| 56 | * Imported sources |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 57 | * |
| 58 | * Revision 3.6 1999/02/14 03:39:45 brianp |
| 59 | * updated for BeOS R4 |
| 60 | * |
| 61 | * Revision 3.5 1999/01/03 03:02:55 brianp |
| 62 | * now using GLAPI and GLAPIENTRY keywords, misc Windows changes (Ted Jump) |
| 63 | * |
| 64 | * Revision 3.4 1998/12/01 02:34:27 brianp |
| 65 | * applied Mark Kilgard's patches from November 30, 1998 |
| 66 | * |
| 67 | * Revision 3.3 1998/11/17 01:14:02 brianp |
| 68 | * minor changes for OpenStep compilation (pete@ohm.york.ac.uk) |
| 69 | * |
| 70 | * Revision 3.2 1998/07/26 01:36:27 brianp |
| 71 | * changes for Windows compilation per Ted Jump |
| 72 | * |
| 73 | * Revision 3.1 1998/06/23 00:33:08 brianp |
| 74 | * added some WIN32 APIENTRY, CALLBACK stuff (Eric Lassauge) |
| 75 | * |
| 76 | * Revision 3.0 1998/02/20 05:06:01 brianp |
| 77 | * initial rev |
| 78 | * |
| 79 | */ |
| 80 | |
| 81 | |
| 82 | #ifndef GLU_H |
| 83 | #define GLU_H |
| 84 | |
| 85 | |
| 86 | #if defined(USE_MGL_NAMESPACE) |
| 87 | #include "glu_mangle.h" |
| 88 | #endif |
| 89 | |
| 90 | |
| 91 | #ifdef __cplusplus |
| 92 | extern "C" { |
| 93 | #endif |
| 94 | |
| 95 | |
| 96 | #include "GL/gl.h" |
| 97 | |
| 98 | /* to facilitate clean DLL building ... */ |
| 99 | #if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__)) |
| 100 | # if defined(_MSC_VER) && defined(BUILD_GLU32) /* tag specify we're building mesa as a DLL */ |
| 101 | # define GLUAPI __declspec(dllexport) |
| 102 | # elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */ |
| 103 | # define GLUAPI __declspec(dllimport) |
| 104 | # else /* for use with static link lib build of Win32 edition only */ |
| 105 | # define GLUAPI extern |
| 106 | # endif /* _STATIC_MESA support */ |
| 107 | #else |
| 108 | # define GLUAPI extern |
| 109 | #endif /* WIN32 / CYGWIN32 bracket */ |
| 110 | |
| 111 | #ifdef macintosh |
| 112 | #pragma enumsalwaysint on |
| 113 | #if PRAGMA_IMPORT_SUPPORTED |
| 114 | #pragma import on |
| 115 | #endif |
| 116 | #endif |
| 117 | |
Brian Paul | a6f09fa | 1999-10-22 10:47:01 +0000 | [diff] [blame^] | 118 | #ifndef GLUAPI |
| 119 | #define GLUAPI |
| 120 | #endif |
| 121 | |
| 122 | #ifndef GLAPIENTRY |
| 123 | #define GLAPIENTRY |
| 124 | #endif |
| 125 | |
| 126 | #ifndef GLCALLBACK |
| 127 | #define GLCALLBACK |
| 128 | #endif |
| 129 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 130 | |
| 131 | #define GLU_VERSION_1_1 1 |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 132 | #define GLU_VERSION_1_2 1 |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 133 | |
| 134 | |
| 135 | #define GLU_TRUE GL_TRUE |
| 136 | #define GLU_FALSE GL_FALSE |
| 137 | |
| 138 | |
| 139 | enum { |
| 140 | /* Normal vectors */ |
| 141 | GLU_SMOOTH = 100000, |
| 142 | GLU_FLAT = 100001, |
| 143 | GLU_NONE = 100002, |
| 144 | |
| 145 | /* Quadric draw styles */ |
| 146 | GLU_POINT = 100010, |
| 147 | GLU_LINE = 100011, |
| 148 | GLU_FILL = 100012, |
| 149 | GLU_SILHOUETTE = 100013, |
| 150 | |
| 151 | /* Quadric orientation */ |
| 152 | GLU_OUTSIDE = 100020, |
| 153 | GLU_INSIDE = 100021, |
| 154 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 155 | /* Tessellator */ |
| 156 | GLU_TESS_BEGIN = 100100, |
| 157 | GLU_TESS_VERTEX = 100101, |
| 158 | GLU_TESS_END = 100102, |
| 159 | GLU_TESS_ERROR = 100103, |
| 160 | GLU_TESS_EDGE_FLAG = 100104, |
| 161 | GLU_TESS_COMBINE = 100105, |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 162 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 163 | GLU_TESS_BEGIN_DATA = 100106, |
| 164 | GLU_TESS_VERTEX_DATA = 100107, |
| 165 | GLU_TESS_END_DATA = 100108, |
| 166 | GLU_TESS_ERROR_DATA = 100109, |
| 167 | GLU_TESS_EDGE_FLAG_DATA = 100110, |
| 168 | GLU_TESS_COMBINE_DATA = 100111, |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 169 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 170 | /* Winding rules */ |
| 171 | GLU_TESS_WINDING_ODD = 100130, |
| 172 | GLU_TESS_WINDING_NONZERO = 100131, |
| 173 | GLU_TESS_WINDING_POSITIVE = 100132, |
| 174 | GLU_TESS_WINDING_NEGATIVE = 100133, |
| 175 | GLU_TESS_WINDING_ABS_GEQ_TWO = 100134, |
| 176 | |
| 177 | /* Tessellation properties */ |
| 178 | GLU_TESS_WINDING_RULE = 100140, |
| 179 | GLU_TESS_BOUNDARY_ONLY = 100141, |
| 180 | GLU_TESS_TOLERANCE = 100142, |
| 181 | |
| 182 | /* Tessellation errors */ |
| 183 | GLU_TESS_ERROR1 = 100151, /* Missing gluBeginPolygon */ |
| 184 | GLU_TESS_ERROR2 = 100152, /* Missing gluBeginContour */ |
| 185 | GLU_TESS_ERROR3 = 100153, /* Missing gluEndPolygon */ |
| 186 | GLU_TESS_ERROR4 = 100154, /* Missing gluEndContour */ |
| 187 | GLU_TESS_ERROR5 = 100155, /* */ |
| 188 | GLU_TESS_ERROR6 = 100156, /* */ |
| 189 | GLU_TESS_ERROR7 = 100157, /* */ |
| 190 | GLU_TESS_ERROR8 = 100158, /* */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 191 | |
| 192 | /* NURBS */ |
| 193 | GLU_AUTO_LOAD_MATRIX = 100200, |
| 194 | GLU_CULLING = 100201, |
| 195 | GLU_PARAMETRIC_TOLERANCE= 100202, |
| 196 | GLU_SAMPLING_TOLERANCE = 100203, |
| 197 | GLU_DISPLAY_MODE = 100204, |
| 198 | GLU_SAMPLING_METHOD = 100205, |
| 199 | GLU_U_STEP = 100206, |
| 200 | GLU_V_STEP = 100207, |
| 201 | |
| 202 | GLU_PATH_LENGTH = 100215, |
| 203 | GLU_PARAMETRIC_ERROR = 100216, |
| 204 | GLU_DOMAIN_DISTANCE = 100217, |
| 205 | |
| 206 | GLU_MAP1_TRIM_2 = 100210, |
| 207 | GLU_MAP1_TRIM_3 = 100211, |
| 208 | |
| 209 | GLU_OUTLINE_POLYGON = 100240, |
| 210 | GLU_OUTLINE_PATCH = 100241, |
| 211 | |
| 212 | GLU_NURBS_ERROR1 = 100251, /* spline order un-supported */ |
| 213 | GLU_NURBS_ERROR2 = 100252, /* too few knots */ |
| 214 | GLU_NURBS_ERROR3 = 100253, /* valid knot range is empty */ |
| 215 | GLU_NURBS_ERROR4 = 100254, /* decreasing knot sequence */ |
| 216 | GLU_NURBS_ERROR5 = 100255, /* knot multiplicity > spline order */ |
| 217 | GLU_NURBS_ERROR6 = 100256, /* endcurve() must follow bgncurve() */ |
| 218 | GLU_NURBS_ERROR7 = 100257, /* bgncurve() must precede endcurve() */ |
| 219 | GLU_NURBS_ERROR8 = 100258, /* ctrlarray or knot vector is NULL */ |
| 220 | GLU_NURBS_ERROR9 = 100259, /* can't draw pwlcurves */ |
| 221 | GLU_NURBS_ERROR10 = 100260, /* missing gluNurbsCurve() */ |
| 222 | GLU_NURBS_ERROR11 = 100261, /* missing gluNurbsSurface() */ |
| 223 | GLU_NURBS_ERROR12 = 100262, /* endtrim() must precede endsurface() */ |
| 224 | GLU_NURBS_ERROR13 = 100263, /* bgnsurface() must precede endsurface() */ |
| 225 | GLU_NURBS_ERROR14 = 100264, /* curve of improper type passed as trim curve */ |
| 226 | GLU_NURBS_ERROR15 = 100265, /* bgnsurface() must precede bgntrim() */ |
| 227 | GLU_NURBS_ERROR16 = 100266, /* endtrim() must follow bgntrim() */ |
| 228 | GLU_NURBS_ERROR17 = 100267, /* bgntrim() must precede endtrim()*/ |
| 229 | GLU_NURBS_ERROR18 = 100268, /* invalid or missing trim curve*/ |
| 230 | GLU_NURBS_ERROR19 = 100269, /* bgntrim() must precede pwlcurve() */ |
| 231 | GLU_NURBS_ERROR20 = 100270, /* pwlcurve referenced twice*/ |
| 232 | GLU_NURBS_ERROR21 = 100271, /* pwlcurve and nurbscurve mixed */ |
| 233 | GLU_NURBS_ERROR22 = 100272, /* improper usage of trim data type */ |
| 234 | GLU_NURBS_ERROR23 = 100273, /* nurbscurve referenced twice */ |
| 235 | GLU_NURBS_ERROR24 = 100274, /* nurbscurve and pwlcurve mixed */ |
| 236 | GLU_NURBS_ERROR25 = 100275, /* nurbssurface referenced twice */ |
| 237 | GLU_NURBS_ERROR26 = 100276, /* invalid property */ |
| 238 | GLU_NURBS_ERROR27 = 100277, /* endsurface() must follow bgnsurface() */ |
| 239 | GLU_NURBS_ERROR28 = 100278, /* intersecting or misoriented trim curves */ |
| 240 | GLU_NURBS_ERROR29 = 100279, /* intersecting trim curves */ |
| 241 | GLU_NURBS_ERROR30 = 100280, /* UNUSED */ |
| 242 | GLU_NURBS_ERROR31 = 100281, /* unconnected trim curves */ |
| 243 | GLU_NURBS_ERROR32 = 100282, /* unknown knot error */ |
| 244 | GLU_NURBS_ERROR33 = 100283, /* negative vertex count encountered */ |
| 245 | GLU_NURBS_ERROR34 = 100284, /* negative byte-stride */ |
| 246 | GLU_NURBS_ERROR35 = 100285, /* unknown type descriptor */ |
| 247 | GLU_NURBS_ERROR36 = 100286, /* null control point reference */ |
| 248 | GLU_NURBS_ERROR37 = 100287, /* duplicate point on pwlcurve */ |
| 249 | |
| 250 | /* Errors */ |
| 251 | GLU_INVALID_ENUM = 100900, |
| 252 | GLU_INVALID_VALUE = 100901, |
| 253 | GLU_OUT_OF_MEMORY = 100902, |
| 254 | GLU_INCOMPATIBLE_GL_VERSION = 100903, |
| 255 | |
| 256 | /* New in GLU 1.1 */ |
| 257 | GLU_VERSION = 100800, |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 258 | GLU_EXTENSIONS = 100801, |
| 259 | |
| 260 | /*** GLU 1.0 tessellation - obsolete! ***/ |
| 261 | |
| 262 | /* Contour types */ |
| 263 | GLU_CW = 100120, |
| 264 | GLU_CCW = 100121, |
| 265 | GLU_INTERIOR = 100122, |
| 266 | GLU_EXTERIOR = 100123, |
| 267 | GLU_UNKNOWN = 100124, |
| 268 | |
| 269 | /* Tessellator */ |
| 270 | GLU_BEGIN = GLU_TESS_BEGIN, |
| 271 | GLU_VERTEX = GLU_TESS_VERTEX, |
| 272 | GLU_END = GLU_TESS_END, |
| 273 | GLU_ERROR = GLU_TESS_ERROR, |
| 274 | GLU_EDGE_FLAG = GLU_TESS_EDGE_FLAG |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 275 | }; |
| 276 | |
| 277 | |
| 278 | /* |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 279 | * These are the GLU 1.1 typedefs. GLU 1.3 has different ones! |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 280 | */ |
| 281 | #if defined(__BEOS__) |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 282 | /* The BeOS does something funky and makes these typedefs in one |
| 283 | * of its system headers. |
| 284 | */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 285 | #else |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 286 | typedef struct GLUquadric GLUquadricObj; |
| 287 | typedef struct GLUnurbs GLUnurbsObj; |
| 288 | |
| 289 | /* FIXME: We need to implement the other 1.3 typedefs - GH */ |
| 290 | typedef struct GLUtesselator GLUtesselator; |
Gareth Hughes | 49e0bc4 | 1999-09-14 03:23:08 +0000 | [diff] [blame] | 291 | typedef GLUtesselator GLUtriangulatorObj; |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 292 | #endif |
| 293 | |
| 294 | |
| 295 | |
| 296 | #if defined(__BEOS__) || defined(__QUICKDRAW__) |
| 297 | #pragma export on |
| 298 | #endif |
| 299 | |
| 300 | |
| 301 | /* |
| 302 | * |
| 303 | * Miscellaneous functions |
| 304 | * |
| 305 | */ |
| 306 | |
| 307 | GLUAPI void GLAPIENTRY gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez, |
| 308 | GLdouble centerx, GLdouble centery, |
| 309 | GLdouble centerz, |
| 310 | GLdouble upx, GLdouble upy, GLdouble upz ); |
| 311 | |
| 312 | |
| 313 | GLUAPI void GLAPIENTRY gluOrtho2D( GLdouble left, GLdouble right, |
| 314 | GLdouble bottom, GLdouble top ); |
| 315 | |
| 316 | |
| 317 | GLUAPI void GLAPIENTRY gluPerspective( GLdouble fovy, GLdouble aspect, |
| 318 | GLdouble zNear, GLdouble zFar ); |
| 319 | |
| 320 | |
| 321 | GLUAPI void GLAPIENTRY gluPickMatrix( GLdouble x, GLdouble y, |
| 322 | GLdouble width, GLdouble height, |
| 323 | const GLint viewport[4] ); |
| 324 | |
| 325 | GLUAPI GLint GLAPIENTRY gluProject( GLdouble objx, GLdouble objy, GLdouble objz, |
| 326 | const GLdouble modelMatrix[16], |
| 327 | const GLdouble projMatrix[16], |
| 328 | const GLint viewport[4], |
| 329 | GLdouble *winx, GLdouble *winy, |
| 330 | GLdouble *winz ); |
| 331 | |
| 332 | GLUAPI GLint GLAPIENTRY gluUnProject( GLdouble winx, GLdouble winy, |
| 333 | GLdouble winz, |
| 334 | const GLdouble modelMatrix[16], |
| 335 | const GLdouble projMatrix[16], |
| 336 | const GLint viewport[4], |
| 337 | GLdouble *objx, GLdouble *objy, |
| 338 | GLdouble *objz ); |
| 339 | |
| 340 | GLUAPI const GLubyte* GLAPIENTRY gluErrorString( GLenum errorCode ); |
| 341 | |
| 342 | |
| 343 | |
| 344 | /* |
| 345 | * |
| 346 | * Mipmapping and image scaling |
| 347 | * |
| 348 | */ |
| 349 | |
| 350 | GLUAPI GLint GLAPIENTRY gluScaleImage( GLenum format, |
| 351 | GLint widthin, GLint heightin, |
| 352 | GLenum typein, const void *datain, |
| 353 | GLint widthout, GLint heightout, |
| 354 | GLenum typeout, void *dataout ); |
| 355 | |
| 356 | GLUAPI GLint GLAPIENTRY gluBuild1DMipmaps( GLenum target, GLint components, |
| 357 | GLint width, GLenum format, |
| 358 | GLenum type, const void *data ); |
| 359 | |
| 360 | GLUAPI GLint GLAPIENTRY gluBuild2DMipmaps( GLenum target, GLint components, |
| 361 | GLint width, GLint height, |
| 362 | GLenum format, |
| 363 | GLenum type, const void *data ); |
| 364 | |
| 365 | |
| 366 | |
| 367 | /* |
| 368 | * |
| 369 | * Quadrics |
| 370 | * |
| 371 | */ |
| 372 | |
| 373 | GLUAPI GLUquadricObj* GLAPIENTRY gluNewQuadric( void ); |
| 374 | |
| 375 | GLUAPI void GLAPIENTRY gluDeleteQuadric( GLUquadricObj *state ); |
| 376 | |
| 377 | GLUAPI void GLAPIENTRY gluQuadricDrawStyle( GLUquadricObj *quadObject, |
| 378 | GLenum drawStyle ); |
| 379 | |
| 380 | GLUAPI void GLAPIENTRY gluQuadricOrientation( GLUquadricObj *quadObject, |
| 381 | GLenum orientation ); |
| 382 | |
| 383 | GLUAPI void GLAPIENTRY gluQuadricNormals( GLUquadricObj *quadObject, |
| 384 | GLenum normals ); |
| 385 | |
| 386 | GLUAPI void GLAPIENTRY gluQuadricTexture( GLUquadricObj *quadObject, |
| 387 | GLboolean textureCoords ); |
| 388 | |
| 389 | GLUAPI void GLAPIENTRY gluQuadricCallback( GLUquadricObj *qobj, |
| 390 | GLenum which, void (GLCALLBACK *fn)() ); |
| 391 | |
| 392 | GLUAPI void GLAPIENTRY gluCylinder( GLUquadricObj *qobj, |
| 393 | GLdouble baseRadius, |
| 394 | GLdouble topRadius, |
| 395 | GLdouble height, |
| 396 | GLint slices, GLint stacks ); |
| 397 | |
| 398 | GLUAPI void GLAPIENTRY gluSphere( GLUquadricObj *qobj, |
| 399 | GLdouble radius, GLint slices, GLint stacks ); |
| 400 | |
| 401 | GLUAPI void GLAPIENTRY gluDisk( GLUquadricObj *qobj, |
| 402 | GLdouble innerRadius, GLdouble outerRadius, |
| 403 | GLint slices, GLint loops ); |
| 404 | |
| 405 | GLUAPI void GLAPIENTRY gluPartialDisk( GLUquadricObj *qobj, GLdouble innerRadius, |
| 406 | GLdouble outerRadius, GLint slices, |
| 407 | GLint loops, GLdouble startAngle, |
| 408 | GLdouble sweepAngle ); |
| 409 | |
| 410 | |
| 411 | |
| 412 | /* |
| 413 | * |
| 414 | * Nurbs |
| 415 | * |
| 416 | */ |
| 417 | |
| 418 | GLUAPI GLUnurbsObj* GLAPIENTRY gluNewNurbsRenderer( void ); |
| 419 | |
| 420 | GLUAPI void GLAPIENTRY gluDeleteNurbsRenderer( GLUnurbsObj *nobj ); |
| 421 | |
| 422 | GLUAPI void GLAPIENTRY gluLoadSamplingMatrices( GLUnurbsObj *nobj, |
| 423 | const GLfloat modelMatrix[16], |
| 424 | const GLfloat projMatrix[16], |
| 425 | const GLint viewport[4] ); |
| 426 | |
| 427 | GLUAPI void GLAPIENTRY gluNurbsProperty( GLUnurbsObj *nobj, GLenum property, |
| 428 | GLfloat value ); |
| 429 | |
| 430 | GLUAPI void GLAPIENTRY gluGetNurbsProperty( GLUnurbsObj *nobj, GLenum property, |
| 431 | GLfloat *value ); |
| 432 | |
| 433 | GLUAPI void GLAPIENTRY gluBeginCurve( GLUnurbsObj *nobj ); |
| 434 | |
| 435 | GLUAPI void GLAPIENTRY gluEndCurve( GLUnurbsObj * nobj ); |
| 436 | |
| 437 | GLUAPI void GLAPIENTRY gluNurbsCurve( GLUnurbsObj *nobj, GLint nknots, |
| 438 | GLfloat *knot, GLint stride, |
| 439 | GLfloat *ctlarray, GLint order, |
| 440 | GLenum type ); |
| 441 | |
| 442 | GLUAPI void GLAPIENTRY gluBeginSurface( GLUnurbsObj *nobj ); |
| 443 | |
| 444 | GLUAPI void GLAPIENTRY gluEndSurface( GLUnurbsObj * nobj ); |
| 445 | |
| 446 | GLUAPI void GLAPIENTRY gluNurbsSurface( GLUnurbsObj *nobj, |
| 447 | GLint sknot_count, GLfloat *sknot, |
| 448 | GLint tknot_count, GLfloat *tknot, |
| 449 | GLint s_stride, GLint t_stride, |
| 450 | GLfloat *ctlarray, |
| 451 | GLint sorder, GLint torder, |
| 452 | GLenum type ); |
| 453 | |
| 454 | GLUAPI void GLAPIENTRY gluBeginTrim( GLUnurbsObj *nobj ); |
| 455 | |
| 456 | GLUAPI void GLAPIENTRY gluEndTrim( GLUnurbsObj *nobj ); |
| 457 | |
| 458 | GLUAPI void GLAPIENTRY gluPwlCurve( GLUnurbsObj *nobj, GLint count, |
| 459 | GLfloat *array, GLint stride, GLenum type ); |
| 460 | |
| 461 | GLUAPI void GLAPIENTRY gluNurbsCallback( GLUnurbsObj *nobj, GLenum which, |
| 462 | void (GLCALLBACK *fn)() ); |
| 463 | |
| 464 | |
| 465 | |
| 466 | /* |
| 467 | * |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 468 | * Polygon tessellation |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 469 | * |
| 470 | */ |
| 471 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 472 | GLUAPI GLUtesselator* GLAPIENTRY gluNewTess( void ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 473 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 474 | GLUAPI void GLAPIENTRY gluDeleteTess( GLUtesselator *tobj ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 475 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 476 | GLUAPI void GLAPIENTRY gluTessBeginPolygon( GLUtesselator *tobj, |
| 477 | void *polygon_data ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 478 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 479 | GLUAPI void GLAPIENTRY gluTessBeginContour( GLUtesselator *tobj ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 480 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 481 | GLUAPI void GLAPIENTRY gluTessVertex( GLUtesselator *tobj, GLdouble coords[3], |
| 482 | void *vertex_data ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 483 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 484 | GLUAPI void GLAPIENTRY gluTessEndContour( GLUtesselator *tobj ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 485 | |
Gareth Hughes | 2856b53 | 1999-09-10 02:03:31 +0000 | [diff] [blame] | 486 | GLUAPI void GLAPIENTRY gluTessEndPolygon( GLUtesselator *tobj ); |
| 487 | |
| 488 | GLUAPI void GLAPIENTRY gluTessProperty( GLUtesselator *tobj, GLenum which, |
| 489 | GLdouble value ); |
| 490 | |
| 491 | GLUAPI void GLAPIENTRY gluTessNormal( GLUtesselator *tobj, GLdouble x, |
| 492 | GLdouble y, GLdouble z ); |
| 493 | |
| 494 | GLUAPI void GLAPIENTRY gluTessCallback( GLUtesselator *tobj, GLenum which, |
| 495 | void (GLCALLBACK *fn)() ); |
| 496 | |
| 497 | GLUAPI void GLAPIENTRY gluGetTessProperty( GLUtesselator *tobj, GLenum which, |
| 498 | GLdouble *value ); |
| 499 | |
| 500 | /* |
| 501 | * |
| 502 | * Obsolete 1.0 tessellation functions |
| 503 | * |
| 504 | */ |
| 505 | |
| 506 | GLUAPI void GLAPIENTRY gluBeginPolygon( GLUtesselator *tobj ); |
| 507 | |
| 508 | GLUAPI void GLAPIENTRY gluNextContour( GLUtesselator *tobj, GLenum type ); |
| 509 | |
| 510 | GLUAPI void GLAPIENTRY gluEndPolygon( GLUtesselator *tobj ); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 511 | |
| 512 | |
| 513 | |
| 514 | /* |
| 515 | * |
| 516 | * New functions in GLU 1.1 |
| 517 | * |
| 518 | */ |
| 519 | |
| 520 | GLUAPI const GLubyte* GLAPIENTRY gluGetString( GLenum name ); |
| 521 | |
| 522 | |
Brian Paul | f893f03 | 1999-09-11 11:34:21 +0000 | [diff] [blame] | 523 | |
| 524 | /* |
Brian Paul | 1447677 | 1999-09-16 16:54:22 +0000 | [diff] [blame] | 525 | * GLU_EXT_get_proc_address extension |
Brian Paul | f893f03 | 1999-09-11 11:34:21 +0000 | [diff] [blame] | 526 | */ |
Brian Paul | 1447677 | 1999-09-16 16:54:22 +0000 | [diff] [blame] | 527 | /* |
| 528 | * WARNING: this extension is not finalized yet! Do not release code |
| 529 | * which uses this extension yet! It may change! |
| 530 | */ |
Brian Paul | f893f03 | 1999-09-11 11:34:21 +0000 | [diff] [blame] | 531 | #define GLU_EXT_get_proc_address 1 |
Ted Jump | 725ec81 | 1999-09-19 02:03:18 +0000 | [diff] [blame] | 532 | #ifdef GLU_EXT_get_proc_address |
Ted Jump | 01db31b | 1999-09-19 10:04:01 +0000 | [diff] [blame] | 533 | GLUAPI void (GLAPIENTRY *gluGetProcAddressEXT(const GLubyte *procName))(); |
Brian Paul | 1bf28c4 | 1999-09-17 12:21:36 +0000 | [diff] [blame] | 534 | #endif |
Brian Paul | f893f03 | 1999-09-11 11:34:21 +0000 | [diff] [blame] | 535 | |
| 536 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 537 | #if defined(__BEOS__) || defined(__QUICKDRAW__) |
| 538 | #pragma export off |
| 539 | #endif |
| 540 | |
| 541 | |
| 542 | #ifdef macintosh |
| 543 | #pragma enumsalwaysint reset |
| 544 | #if PRAGMA_IMPORT_SUPPORTED |
| 545 | #pragma import off |
| 546 | #endif |
| 547 | #endif |
| 548 | |
| 549 | |
| 550 | #ifdef __cplusplus |
| 551 | } |
| 552 | #endif |
| 553 | |
| 554 | |
| 555 | #endif |