Changeset 3079 for trunk/src/opengl/mesa/GL
- Timestamp:
- Mar 11, 2000, 10:05:07 AM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/opengl/mesa/GL/glu.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/GL/glu.h
r2945 r3079 1 /* $Id: glu.h,v 1. 2 2000-02-29 13:56:52 sandervlExp $ */1 /* $Id: glu.h,v 1.3 2000-03-11 09:05:07 jeroen Exp $ */ 2 2 3 3 /* … … 38 38 #include "GL/gl.h" 39 39 40 /* to facilitate clean DLL building ... */40 /* to facilitate clean DLL building ... */ 41 41 #if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__)) 42 # if defined(_MSC_VER) && defined(BUILD_GLU32) /* tag specify we're building mesa as a DLL */43 # define GLUAPI __declspec(dllexport)44 # elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */45 # define GLUAPI __declspec(dllimport)46 # else /* for use with static link lib build of Win32 edition only */47 # define GLUAPI extern48 # endif /* _STATIC_MESA support */42 # if defined(_MSC_VER) && defined(BUILD_GLU32) /* tag specify we're building mesa as a DLL */ 43 # define GLUAPI __declspec(dllexport) 44 # elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */ 45 # define GLUAPI __declspec(dllimport) 46 # else /* for use with static link lib build of Win32 edition only */ 47 # define GLUAPI extern 48 # endif /* _STATIC_MESA support */ 49 49 #else 50 # define GLUAPI extern50 # define GLUAPI extern 51 51 #endif /* WIN32 / CYGWIN32 bracket */ 52 52 53 53 #ifdef macintosh 54 #pragma enumsalwaysint on55 #if PRAGMA_IMPORT_SUPPORTED56 #pragma import on57 #endif54 #pragma enumsalwaysint on 55 #if PRAGMA_IMPORT_SUPPORTED 56 #pragma import on 57 #endif 58 58 #endif 59 59 … … 71 71 72 72 73 #define GLU_VERSION_1_1 174 #define GLU_VERSION_1_2 173 #define GLU_VERSION_1_1 1 74 #define GLU_VERSION_1_2 1 75 75 76 76 … … 82 82 83 83 enum { 84 /* Normal vectors */85 GLU_SMOOTH= 100000,86 GLU_FLAT= 100001,87 GLU_NONE= 100002,88 89 /* Quadric draw styles */90 GLU_POINT= 100010,91 GLU_LINE= 100011,92 GLU_FILL= 100012,93 GLU_SILHOUETTE= 100013,94 95 /* Quadric orientation */96 GLU_OUTSIDE= 100020,97 GLU_INSIDE= 100021,98 99 /* Tessellator */100 GLU_TESS_BEGIN= 100100,101 GLU_TESS_VERTEX= 100101,102 GLU_TESS_END= 100102,103 GLU_TESS_ERROR= 100103,104 GLU_TESS_EDGE_FLAG= 100104,105 GLU_TESS_COMBINE= 100105,106 107 GLU_TESS_BEGIN_DATA= 100106,108 GLU_TESS_VERTEX_DATA= 100107,109 GLU_TESS_END_DATA= 100108,110 GLU_TESS_ERROR_DATA= 100109,111 GLU_TESS_EDGE_FLAG_DATA= 100110,112 GLU_TESS_COMBINE_DATA= 100111,113 114 /* Winding rules */115 GLU_TESS_WINDING_ODD= 100130,116 GLU_TESS_WINDING_NONZERO= 100131,117 GLU_TESS_WINDING_POSITIVE= 100132,118 GLU_TESS_WINDING_NEGATIVE= 100133,119 GLU_TESS_WINDING_ABS_GEQ_TWO= 100134,120 121 /* Tessellation properties */122 GLU_TESS_WINDING_RULE= 100140,123 GLU_TESS_BOUNDARY_ONLY= 100141,124 GLU_TESS_TOLERANCE= 100142,125 126 /* Tessellation errors */127 GLU_TESS_ERROR1= 100151, /* Missing gluBeginPolygon */128 GLU_TESS_ERROR2 = 100152, /* Missing gluBeginContour */129 GLU_TESS_ERROR3 = 100153, /* Missing gluEndPolygon */130 GLU_TESS_ERROR4 = 100154, /* Missing gluEndContour */131 GLU_TESS_ERROR5 = 100155, /* */132 GLU_TESS_ERROR6 = 100156, /* */133 GLU_TESS_ERROR7 = 100157, /* */134 GLU_TESS_ERROR8 = 100158, /* */84 /* Normal vectors */ 85 GLU_SMOOTH = 100000, 86 GLU_FLAT = 100001, 87 GLU_NONE = 100002, 88 89 /* Quadric draw styles */ 90 GLU_POINT = 100010, 91 GLU_LINE = 100011, 92 GLU_FILL = 100012, 93 GLU_SILHOUETTE = 100013, 94 95 /* Quadric orientation */ 96 GLU_OUTSIDE = 100020, 97 GLU_INSIDE = 100021, 98 99 /* Tessellator */ 100 GLU_TESS_BEGIN = 100100, 101 GLU_TESS_VERTEX = 100101, 102 GLU_TESS_END = 100102, 103 GLU_TESS_ERROR = 100103, 104 GLU_TESS_EDGE_FLAG = 100104, 105 GLU_TESS_COMBINE = 100105, 106 107 GLU_TESS_BEGIN_DATA = 100106, 108 GLU_TESS_VERTEX_DATA = 100107, 109 GLU_TESS_END_DATA = 100108, 110 GLU_TESS_ERROR_DATA = 100109, 111 GLU_TESS_EDGE_FLAG_DATA = 100110, 112 GLU_TESS_COMBINE_DATA = 100111, 113 114 /* Winding rules */ 115 GLU_TESS_WINDING_ODD = 100130, 116 GLU_TESS_WINDING_NONZERO = 100131, 117 GLU_TESS_WINDING_POSITIVE = 100132, 118 GLU_TESS_WINDING_NEGATIVE = 100133, 119 GLU_TESS_WINDING_ABS_GEQ_TWO = 100134, 120 121 /* Tessellation properties */ 122 GLU_TESS_WINDING_RULE = 100140, 123 GLU_TESS_BOUNDARY_ONLY = 100141, 124 GLU_TESS_TOLERANCE = 100142, 125 126 /* Tessellation errors */ 127 GLU_TESS_ERROR1 = 100151, /* Missing gluBeginPolygon */ 128 GLU_TESS_ERROR2 = 100152, /* Missing gluBeginContour */ 129 GLU_TESS_ERROR3 = 100153, /* Missing gluEndPolygon */ 130 GLU_TESS_ERROR4 = 100154, /* Missing gluEndContour */ 131 GLU_TESS_ERROR5 = 100155, /* */ 132 GLU_TESS_ERROR6 = 100156, /* */ 133 GLU_TESS_ERROR7 = 100157, /* */ 134 GLU_TESS_ERROR8 = 100158, /* */ 135 135 136 136 GLU_TESS_MISSING_BEGIN_POLYGON = GLU_TESS_ERROR1, … … 141 141 GLU_TESS_NEED_COMBINE_CALLBACK = GLU_TESS_ERROR6, 142 142 143 /* NURBS */144 GLU_NURBS_MODE = 100160,145 GLU_NURBS_TESSELLATOR = 100161,146 GLU_NURBS_RENDERER = 100162,147 GLU_NURBS_BEGIN = 100164,148 GLU_NURBS_VERTEX = 100165,149 GLU_NURBS_NORMAL = 100166,150 GLU_NURBS_COLOR = 100167,151 GLU_NURBS_TEXTURE_COORD = 100168,152 GLU_NURBS_END = 100169,153 GLU_NURBS_BEGIN_DATA = 100170,154 GLU_NURBS_VERTEX_DATA = 100171,155 GLU_NURBS_NORMAL_DATA = 100172,156 GLU_NURBS_COLOR_DATA = 100173,157 GLU_NURBS_TEXTURE_COORD_DATA = 100174,158 GLU_NURBS_END_DATA = 100175,159 160 GLU_AUTO_LOAD_MATRIX= 100200,161 GLU_CULLING= 100201,162 GLU_PARAMETRIC_TOLERANCE= 100202,163 GLU_SAMPLING_TOLERANCE= 100203,164 GLU_DISPLAY_MODE= 100204,165 GLU_SAMPLING_METHOD= 100205,166 GLU_U_STEP= 100206,167 GLU_V_STEP= 100207,168 GLU_OBJECT_PARAMETRIC_ERROR = 100208,169 GLU_OBJECT_PATH_LENGTH = 100209,170 171 GLU_MAP1_TRIM_2 = 100210,172 GLU_MAP1_TRIM_3 = 100211,173 174 GLU_PATH_LENGTH= 100215,175 GLU_PARAMETRIC_ERROR= 100216,176 GLU_DOMAIN_DISTANCE= 100217,177 178 GLU_OUTLINE_POLYGON= 100240,179 GLU_OUTLINE_PATCH= 100241,180 181 GLU_ERROR= GLU_TESS_ERROR,143 /* NURBS */ 144 GLU_NURBS_MODE = 100160, 145 GLU_NURBS_TESSELLATOR = 100161, 146 GLU_NURBS_RENDERER = 100162, 147 GLU_NURBS_BEGIN = 100164, 148 GLU_NURBS_VERTEX = 100165, 149 GLU_NURBS_NORMAL = 100166, 150 GLU_NURBS_COLOR = 100167, 151 GLU_NURBS_TEXTURE_COORD = 100168, 152 GLU_NURBS_END = 100169, 153 GLU_NURBS_BEGIN_DATA = 100170, 154 GLU_NURBS_VERTEX_DATA = 100171, 155 GLU_NURBS_NORMAL_DATA = 100172, 156 GLU_NURBS_COLOR_DATA = 100173, 157 GLU_NURBS_TEXTURE_COORD_DATA = 100174, 158 GLU_NURBS_END_DATA = 100175, 159 160 GLU_AUTO_LOAD_MATRIX = 100200, 161 GLU_CULLING = 100201, 162 GLU_PARAMETRIC_TOLERANCE= 100202, 163 GLU_SAMPLING_TOLERANCE = 100203, 164 GLU_DISPLAY_MODE = 100204, 165 GLU_SAMPLING_METHOD = 100205, 166 GLU_U_STEP = 100206, 167 GLU_V_STEP = 100207, 168 GLU_OBJECT_PARAMETRIC_ERROR = 100208, 169 GLU_OBJECT_PATH_LENGTH = 100209, 170 171 GLU_MAP1_TRIM_2 = 100210, 172 GLU_MAP1_TRIM_3 = 100211, 173 174 GLU_PATH_LENGTH = 100215, 175 GLU_PARAMETRIC_ERROR = 100216, 176 GLU_DOMAIN_DISTANCE = 100217, 177 178 GLU_OUTLINE_POLYGON = 100240, 179 GLU_OUTLINE_PATCH = 100241, 180 181 GLU_ERROR = GLU_TESS_ERROR, 182 182 GLU_NURBS_ERROR = GLU_ERROR, /* FIXME: is this correct?? */ 183 183 184 GLU_NURBS_ERROR1 = 100251, /* spline order un-supported */185 GLU_NURBS_ERROR2 = 100252, /* too few knots */186 GLU_NURBS_ERROR3 = 100253, /* valid knot range is empty */187 GLU_NURBS_ERROR4 = 100254, /* decreasing knot sequence */188 GLU_NURBS_ERROR5 = 100255, /* knot multiplicity > spline order */189 GLU_NURBS_ERROR6 = 100256, /* endcurve() must follow bgncurve() */190 GLU_NURBS_ERROR7 = 100257, /* bgncurve() must precede endcurve() */191 GLU_NURBS_ERROR8 = 100258, /* ctrlarray or knot vector is NULL */192 GLU_NURBS_ERROR9 = 100259, /* can't draw pwlcurves */193 GLU_NURBS_ERROR10 = 100260, /* missing gluNurbsCurve() */194 GLU_NURBS_ERROR11 = 100261, /* missing gluNurbsSurface() */195 GLU_NURBS_ERROR12 = 100262, /* endtrim() must precede endsurface() */196 GLU_NURBS_ERROR13 = 100263, /* bgnsurface() must precede endsurface() */197 GLU_NURBS_ERROR14 = 100264, /* curve of improper type passed as trim curve */198 GLU_NURBS_ERROR15 = 100265, /* bgnsurface() must precede bgntrim() */199 GLU_NURBS_ERROR16 = 100266, /* endtrim() must follow bgntrim() */200 GLU_NURBS_ERROR17 = 100267, /* bgntrim() must precede endtrim()*/201 GLU_NURBS_ERROR18 = 100268, /* invalid or missing trim curve*/202 GLU_NURBS_ERROR19 = 100269, /* bgntrim() must precede pwlcurve() */203 GLU_NURBS_ERROR20 = 100270, /* pwlcurve referenced twice*/204 GLU_NURBS_ERROR21 = 100271, /* pwlcurve and nurbscurve mixed */205 GLU_NURBS_ERROR22 = 100272, /* improper usage of trim data type */206 GLU_NURBS_ERROR23 = 100273, /* nurbscurve referenced twice */207 GLU_NURBS_ERROR24 = 100274, /* nurbscurve and pwlcurve mixed */208 GLU_NURBS_ERROR25 = 100275, /* nurbssurface referenced twice */209 GLU_NURBS_ERROR26 = 100276, /* invalid property */210 GLU_NURBS_ERROR27 = 100277, /* endsurface() must follow bgnsurface() */211 GLU_NURBS_ERROR28 = 100278, /* intersecting or misoriented trim curves */212 GLU_NURBS_ERROR29 = 100279, /* intersecting trim curves */213 GLU_NURBS_ERROR30 = 100280, /* UNUSED */214 GLU_NURBS_ERROR31 = 100281, /* unconnected trim curves */215 GLU_NURBS_ERROR32 = 100282, /* unknown knot error */216 GLU_NURBS_ERROR33 = 100283, /* negative vertex count encountered */217 GLU_NURBS_ERROR34 = 100284, /* negative byte-stride */218 GLU_NURBS_ERROR35 = 100285, /* unknown type descriptor */219 GLU_NURBS_ERROR36 = 100286, /* null control point reference */220 GLU_NURBS_ERROR37 = 100287, /* duplicate point on pwlcurve */221 222 /* Errors */223 GLU_INVALID_ENUM= 100900,224 GLU_INVALID_VALUE= 100901,225 GLU_OUT_OF_MEMORY= 100902,226 GLU_INCOMPATIBLE_GL_VERSION= 100903,184 GLU_NURBS_ERROR1 = 100251, /* spline order un-supported */ 185 GLU_NURBS_ERROR2 = 100252, /* too few knots */ 186 GLU_NURBS_ERROR3 = 100253, /* valid knot range is empty */ 187 GLU_NURBS_ERROR4 = 100254, /* decreasing knot sequence */ 188 GLU_NURBS_ERROR5 = 100255, /* knot multiplicity > spline order */ 189 GLU_NURBS_ERROR6 = 100256, /* endcurve() must follow bgncurve() */ 190 GLU_NURBS_ERROR7 = 100257, /* bgncurve() must precede endcurve() */ 191 GLU_NURBS_ERROR8 = 100258, /* ctrlarray or knot vector is NULL */ 192 GLU_NURBS_ERROR9 = 100259, /* can't draw pwlcurves */ 193 GLU_NURBS_ERROR10 = 100260, /* missing gluNurbsCurve() */ 194 GLU_NURBS_ERROR11 = 100261, /* missing gluNurbsSurface() */ 195 GLU_NURBS_ERROR12 = 100262, /* endtrim() must precede endsurface() */ 196 GLU_NURBS_ERROR13 = 100263, /* bgnsurface() must precede endsurface() */ 197 GLU_NURBS_ERROR14 = 100264, /* curve of improper type passed as trim curve */ 198 GLU_NURBS_ERROR15 = 100265, /* bgnsurface() must precede bgntrim() */ 199 GLU_NURBS_ERROR16 = 100266, /* endtrim() must follow bgntrim() */ 200 GLU_NURBS_ERROR17 = 100267, /* bgntrim() must precede endtrim()*/ 201 GLU_NURBS_ERROR18 = 100268, /* invalid or missing trim curve*/ 202 GLU_NURBS_ERROR19 = 100269, /* bgntrim() must precede pwlcurve() */ 203 GLU_NURBS_ERROR20 = 100270, /* pwlcurve referenced twice*/ 204 GLU_NURBS_ERROR21 = 100271, /* pwlcurve and nurbscurve mixed */ 205 GLU_NURBS_ERROR22 = 100272, /* improper usage of trim data type */ 206 GLU_NURBS_ERROR23 = 100273, /* nurbscurve referenced twice */ 207 GLU_NURBS_ERROR24 = 100274, /* nurbscurve and pwlcurve mixed */ 208 GLU_NURBS_ERROR25 = 100275, /* nurbssurface referenced twice */ 209 GLU_NURBS_ERROR26 = 100276, /* invalid property */ 210 GLU_NURBS_ERROR27 = 100277, /* endsurface() must follow bgnsurface() */ 211 GLU_NURBS_ERROR28 = 100278, /* intersecting or misoriented trim curves */ 212 GLU_NURBS_ERROR29 = 100279, /* intersecting trim curves */ 213 GLU_NURBS_ERROR30 = 100280, /* UNUSED */ 214 GLU_NURBS_ERROR31 = 100281, /* unconnected trim curves */ 215 GLU_NURBS_ERROR32 = 100282, /* unknown knot error */ 216 GLU_NURBS_ERROR33 = 100283, /* negative vertex count encountered */ 217 GLU_NURBS_ERROR34 = 100284, /* negative byte-stride */ 218 GLU_NURBS_ERROR35 = 100285, /* unknown type descriptor */ 219 GLU_NURBS_ERROR36 = 100286, /* null control point reference */ 220 GLU_NURBS_ERROR37 = 100287, /* duplicate point on pwlcurve */ 221 222 /* Errors */ 223 GLU_INVALID_ENUM = 100900, 224 GLU_INVALID_VALUE = 100901, 225 GLU_OUT_OF_MEMORY = 100902, 226 GLU_INCOMPATIBLE_GL_VERSION = 100903, 227 227 GLU_INVALID_OPERATION = 100904, 228 228 229 /* New in GLU 1.1 */230 GLU_VERSION= 100800,231 GLU_EXTENSIONS= 100801,232 233 /*** GLU 1.0 tessellation - obsolete! ***/234 235 /* Contour types */236 GLU_CW= 100120,237 GLU_CCW= 100121,238 GLU_INTERIOR= 100122,239 GLU_EXTERIOR= 100123,240 GLU_UNKNOWN= 100124,241 242 /* Tessellator */243 GLU_BEGIN= GLU_TESS_BEGIN,244 GLU_VERTEX= GLU_TESS_VERTEX,245 GLU_END= GLU_TESS_END,246 GLU_EDGE_FLAG= GLU_TESS_EDGE_FLAG229 /* New in GLU 1.1 */ 230 GLU_VERSION = 100800, 231 GLU_EXTENSIONS = 100801, 232 233 /*** GLU 1.0 tessellation - obsolete! ***/ 234 235 /* Contour types */ 236 GLU_CW = 100120, 237 GLU_CCW = 100121, 238 GLU_INTERIOR = 100122, 239 GLU_EXTERIOR = 100123, 240 GLU_UNKNOWN = 100124, 241 242 /* Tessellator */ 243 GLU_BEGIN = GLU_TESS_BEGIN, 244 GLU_VERTEX = GLU_TESS_VERTEX, 245 GLU_END = GLU_TESS_END, 246 GLU_EDGE_FLAG = GLU_TESS_EDGE_FLAG 247 247 }; 248 248 … … 360 360 361 361 GLUAPI void GLAPIENTRY gluQuadricCallback( GLUquadricObj *qobj, 362 GLenum which, void (GLCALLBACK *fn)() ); 362 GLenum which, 363 void (GLCALLBACK *fn)() ); 363 364 364 365 GLUAPI void GLAPIENTRY gluCylinder( GLUquadricObj *qobj, … … 449 450 450 451 GLUAPI void GLAPIENTRY gluTessBeginPolygon( GLUtesselator *tobj, 451 void *polygon_data );452 void *polygon_data ); 452 453 453 454 GLUAPI void GLAPIENTRY gluTessBeginContour( GLUtesselator *tobj ); 454 455 455 456 GLUAPI void GLAPIENTRY gluTessVertex( GLUtesselator *tobj, GLdouble coords[3], 456 void *vertex_data );457 void *vertex_data ); 457 458 458 459 GLUAPI void GLAPIENTRY gluTessEndContour( GLUtesselator *tobj ); … … 461 462 462 463 GLUAPI void GLAPIENTRY gluTessProperty( GLUtesselator *tobj, GLenum which, 463 GLdouble value );464 GLdouble value ); 464 465 465 466 GLUAPI void GLAPIENTRY gluTessNormal( GLUtesselator *tobj, GLdouble x, 466 GLdouble y, GLdouble z );467 GLdouble y, GLdouble z ); 467 468 468 469 GLUAPI void GLAPIENTRY gluTessCallback( GLUtesselator *tobj, GLenum which, 469 void (GLCALLBACK *fn)() );470 void (GLCALLBACK *fn)() ); 470 471 471 472 GLUAPI void GLAPIENTRY gluGetTessProperty( GLUtesselator *tobj, GLenum which, 472 GLdouble *value );473 GLdouble *value ); 473 474 474 475 /* … … 502 503 503 504 #ifdef macintosh 504 #pragma enumsalwaysint reset505 #if PRAGMA_IMPORT_SUPPORTED506 #pragma import off507 #endif505 #pragma enumsalwaysint reset 506 #if PRAGMA_IMPORT_SUPPORTED 507 #pragma import off 508 #endif 508 509 #endif 509 510
Note:
See TracChangeset
for help on using the changeset viewer.
