Copy w32api 2.5 to trunk
[reactos.git] / reactos / w32api / include / GL / glu.h
1 /*
2 ** License Applicability. Except to the extent portions of this file are
3 ** made subject to an alternative license as permitted in the SGI Free
4 ** Software License B, Version 1.1 (the "License"), the contents of this
5 ** file are subject only to the provisions of the License. You may not use
6 ** this file except in compliance with the License. You may obtain a copy
7 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
8 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
9 **
10 ** http://oss.sgi.com/projects/FreeB
11 **
12 ** Note that, as provided in the License, the Software is distributed on an
13 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
14 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
15 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
16 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
17 **
18 ** Original Code. The Original Code is: OpenGL Sample Implementation,
19 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
20 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
21 ** Copyright in any portions created by third parties is as indicated
22 ** elsewhere herein. All Rights Reserved.
23 **
24 ** Additional Notice Provisions: This software was created using the
25 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
26 ** not been independently verified as being compliant with the OpenGL(R)
27 ** version 1.2.1 Specification.
28 */
29
30 #ifndef __glu_h__
31 #define __glu_h__
32 #define _GLU_H
33 #if __GNUC__ >= 3
34 #pragma GCC system_header
35 #endif
36
37 #include <GL/gl.h>
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 /*************************************************************/
44
45 /* Boolean */
46 #define GLU_FALSE 0
47 #define GLU_TRUE 1
48
49 /* Version */
50 #define GLU_VERSION_1_1 1
51 #define GLU_VERSION_1_2 1
52
53 /* StringName */
54 #define GLU_VERSION 100800
55 #define GLU_EXTENSIONS 100801
56
57 /* ErrorCode */
58 #define GLU_INVALID_ENUM 100900
59 #define GLU_INVALID_VALUE 100901
60 #define GLU_OUT_OF_MEMORY 100902
61 #define GLU_INVALID_OPERATION 100904
62
63 /* NurbsDisplay */
64 /* GLU_FILL */
65 #define GLU_OUTLINE_POLYGON 100240
66 #define GLU_OUTLINE_PATCH 100241
67
68 /* NurbsError */
69 #define GLU_NURBS_ERROR1 100251
70 #define GLU_NURBS_ERROR2 100252
71 #define GLU_NURBS_ERROR3 100253
72 #define GLU_NURBS_ERROR4 100254
73 #define GLU_NURBS_ERROR5 100255
74 #define GLU_NURBS_ERROR6 100256
75 #define GLU_NURBS_ERROR7 100257
76 #define GLU_NURBS_ERROR8 100258
77 #define GLU_NURBS_ERROR9 100259
78 #define GLU_NURBS_ERROR10 100260
79 #define GLU_NURBS_ERROR11 100261
80 #define GLU_NURBS_ERROR12 100262
81 #define GLU_NURBS_ERROR13 100263
82 #define GLU_NURBS_ERROR14 100264
83 #define GLU_NURBS_ERROR15 100265
84 #define GLU_NURBS_ERROR16 100266
85 #define GLU_NURBS_ERROR17 100267
86 #define GLU_NURBS_ERROR18 100268
87 #define GLU_NURBS_ERROR19 100269
88 #define GLU_NURBS_ERROR20 100270
89 #define GLU_NURBS_ERROR21 100271
90 #define GLU_NURBS_ERROR22 100272
91 #define GLU_NURBS_ERROR23 100273
92 #define GLU_NURBS_ERROR24 100274
93 #define GLU_NURBS_ERROR25 100275
94 #define GLU_NURBS_ERROR26 100276
95 #define GLU_NURBS_ERROR27 100277
96 #define GLU_NURBS_ERROR28 100278
97 #define GLU_NURBS_ERROR29 100279
98 #define GLU_NURBS_ERROR30 100280
99 #define GLU_NURBS_ERROR31 100281
100 #define GLU_NURBS_ERROR32 100282
101 #define GLU_NURBS_ERROR33 100283
102 #define GLU_NURBS_ERROR34 100284
103 #define GLU_NURBS_ERROR35 100285
104 #define GLU_NURBS_ERROR36 100286
105 #define GLU_NURBS_ERROR37 100287
106
107 /* NurbsSampling */
108 #define GLU_PATH_LENGTH 100215
109 #define GLU_PARAMETRIC_ERROR 100216
110 #define GLU_DOMAIN_DISTANCE 100217
111
112 /* NurbsTrim */
113 #define GLU_MAP1_TRIM_2 100210
114 #define GLU_MAP1_TRIM_3 100211
115
116 /* QuadricDrawStyle */
117 #define GLU_POINT 100010
118 #define GLU_LINE 100011
119 #define GLU_FILL 100012
120 #define GLU_SILHOUETTE 100013
121
122 /* QuadricCallback */
123 /* GLU_ERROR */
124
125 /* QuadricNormal */
126 #define GLU_SMOOTH 100000
127 #define GLU_FLAT 100001
128 #define GLU_NONE 100002
129
130 /* QuadricOrientation */
131 #define GLU_OUTSIDE 100020
132 #define GLU_INSIDE 100021
133
134 /* TessCallback */
135 #define GLU_TESS_BEGIN 100100
136 #define GLU_BEGIN 100100
137 #define GLU_TESS_VERTEX 100101
138 #define GLU_VERTEX 100101
139 #define GLU_TESS_END 100102
140 #define GLU_END 100102
141 #define GLU_TESS_ERROR 100103
142 #define GLU_TESS_EDGE_FLAG 100104
143 #define GLU_EDGE_FLAG 100104
144 #define GLU_TESS_COMBINE 100105
145 #define GLU_TESS_BEGIN_DATA 100106
146 #define GLU_TESS_VERTEX_DATA 100107
147 #define GLU_TESS_END_DATA 100108
148 #define GLU_TESS_ERROR_DATA 100109
149 #define GLU_TESS_EDGE_FLAG_DATA 100110
150 #define GLU_TESS_COMBINE_DATA 100111
151
152 /* TessContour */
153 #define GLU_CW 100120
154 #define GLU_CCW 100121
155 #define GLU_INTERIOR 100122
156 #define GLU_EXTERIOR 100123
157 #define GLU_UNKNOWN 100124
158
159 /* TessProperty */
160 #define GLU_TESS_WINDING_RULE 100140
161 #define GLU_TESS_BOUNDARY_ONLY 100141
162 #define GLU_TESS_TOLERANCE 100142
163
164 /* TessError */
165 #define GLU_TESS_ERROR1 100151
166 #define GLU_TESS_ERROR2 100152
167 #define GLU_TESS_ERROR3 100153
168 #define GLU_TESS_ERROR4 100154
169 #define GLU_TESS_ERROR5 100155
170 #define GLU_TESS_ERROR6 100156
171 #define GLU_TESS_ERROR7 100157
172 #define GLU_TESS_ERROR8 100158
173 #define GLU_TESS_MISSING_BEGIN_POLYGON 100151
174 #define GLU_TESS_MISSING_BEGIN_CONTOUR 100152
175 #define GLU_TESS_MISSING_END_POLYGON 100153
176 #define GLU_TESS_MISSING_END_CONTOUR 100154
177 #define GLU_TESS_COORD_TOO_LARGE 100155
178 #define GLU_TESS_NEED_COMBINE_CALLBACK 100156
179
180 /* TessWinding */
181 #define GLU_TESS_WINDING_ODD 100130
182 #define GLU_TESS_WINDING_NONZERO 100131
183 #define GLU_TESS_WINDING_POSITIVE 100132
184 #define GLU_TESS_WINDING_NEGATIVE 100133
185 #define GLU_TESS_WINDING_ABS_GEQ_TWO 100134
186
187 /* Obsolete. For compatibility with previous Sun OpenGL versions */
188 #define GLU_INCOMPATIBLE_GL_VERSION 100903
189
190
191 /*************************************************************/
192
193
194 #ifdef __cplusplus
195 class GLUnurbs;
196 class GLUquadric;
197 class GLUtesselator;
198 #else
199 typedef struct GLUnurbs GLUnurbs;
200 typedef struct GLUquadric GLUquadric;
201 typedef struct GLUtesselator GLUtesselator;
202 #endif
203
204 typedef GLUnurbs GLUnurbsObj;
205 typedef GLUquadric GLUquadricObj;
206 typedef GLUtesselator GLUtesselatorObj;
207 typedef GLUtesselator GLUtriangulatorObj;
208
209 #define GLU_TESS_MAX_COORD 1.0e150
210
211 /* Internal convenience typedefs */
212 typedef void (APIENTRY *_GLUfuncptr)();
213
214 GLAPI void APIENTRY gluBeginCurve (GLUnurbs* nurb);
215 GLAPI void APIENTRY gluBeginPolygon (GLUtesselator* tess);
216 GLAPI void APIENTRY gluBeginSurface (GLUnurbs* nurb);
217 GLAPI void APIENTRY gluBeginTrim (GLUnurbs* nurb);
218 GLAPI GLint APIENTRY gluBuild1DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void *data);
219 GLAPI GLint APIENTRY gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data);
220 GLAPI void APIENTRY gluCylinder (GLUquadric* quad, GLdouble base, GLdouble top, GLdouble height, GLint slices, GLint stacks);
221 GLAPI void APIENTRY gluDeleteNurbsRenderer (GLUnurbs* nurb);
222 GLAPI void APIENTRY gluDeleteQuadric (GLUquadric* quad);
223 GLAPI void APIENTRY gluDeleteTess (GLUtesselator* tess);
224 GLAPI void APIENTRY gluDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops);
225 GLAPI void APIENTRY gluEndCurve (GLUnurbs* nurb);
226 GLAPI void APIENTRY gluEndPolygon (GLUtesselator* tess);
227 GLAPI void APIENTRY gluEndSurface (GLUnurbs* nurb);
228 GLAPI void APIENTRY gluEndTrim (GLUnurbs* nurb);
229 GLAPI const GLubyte * APIENTRY gluErrorString (GLenum error);
230 GLAPI const wchar_t * APIENTRY gluErrorUnicodeStringEXT (GLenum error);
231 GLAPI void APIENTRY gluGetNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat* data);
232 GLAPI const GLubyte * APIENTRY gluGetString (GLenum name);
233 GLAPI void APIENTRY gluGetTessProperty (GLUtesselator* tess, GLenum which, GLdouble* data);
234 GLAPI void APIENTRY gluLoadSamplingMatrices (GLUnurbs* nurb, const GLfloat *model, const GLfloat *perspective, const GLint *view);
235 GLAPI void APIENTRY gluLookAt (GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, GLdouble centerY, GLdouble centerZ, GLdouble upX, GLdouble upY, GLdouble upZ);
236 GLAPI GLUnurbs* APIENTRY gluNewNurbsRenderer (void);
237 GLAPI GLUquadric* APIENTRY gluNewQuadric (void);
238 GLAPI GLUtesselator* APIENTRY gluNewTess (void);
239 GLAPI void APIENTRY gluNextContour (GLUtesselator* tess, GLenum type);
240 GLAPI void APIENTRY gluNurbsCallback (GLUnurbs* nurb, GLenum which, _GLUfuncptr CallBackFunc);
241 GLAPI void APIENTRY gluNurbsCurve (GLUnurbs* nurb, GLint knotCount, GLfloat *knots, GLint stride, GLfloat *control, GLint order, GLenum type);
242 GLAPI void APIENTRY gluNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat value);
243 GLAPI void APIENTRY gluNurbsSurface (GLUnurbs* nurb, GLint sKnotCount, GLfloat* sKnots, GLint tKnotCount, GLfloat* tKnots, GLint sStride, GLint tStride, GLfloat* control, GLint sOrder, GLint tOrder, GLenum type);
244 GLAPI void APIENTRY gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top);
245 GLAPI void APIENTRY gluPartialDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep);
246 GLAPI void APIENTRY gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar);
247 GLAPI void APIENTRY gluPickMatrix (GLdouble x, GLdouble y, GLdouble delX, GLdouble delY, GLint *viewport);
248 GLAPI GLint APIENTRY gluProject (GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* winX, GLdouble* winY, GLdouble* winZ);
249 GLAPI void APIENTRY gluPwlCurve (GLUnurbs* nurb, GLint count, GLfloat* data, GLint stride, GLenum type);
250 GLAPI void APIENTRY gluQuadricCallback (GLUquadric* quad, GLenum which, _GLUfuncptr CallBackFunc);
251 GLAPI void APIENTRY gluQuadricDrawStyle (GLUquadric* quad, GLenum draw);
252 GLAPI void APIENTRY gluQuadricNormals (GLUquadric* quad, GLenum normal);
253 GLAPI void APIENTRY gluQuadricOrientation (GLUquadric* quad, GLenum orientation);
254 GLAPI void APIENTRY gluQuadricTexture (GLUquadric* quad, GLboolean texture);
255 GLAPI GLint APIENTRY gluScaleImage (GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut);
256 GLAPI void APIENTRY gluSphere (GLUquadric* quad, GLdouble radius, GLint slices, GLint stacks);
257 GLAPI void APIENTRY gluTessBeginContour (GLUtesselator* tess);
258 GLAPI void APIENTRY gluTessBeginPolygon (GLUtesselator* tess, GLvoid* data);
259 GLAPI void APIENTRY gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
260 GLAPI void APIENTRY gluTessEndContour (GLUtesselator* tess);
261 GLAPI void APIENTRY gluTessEndPolygon (GLUtesselator* tess);
262 GLAPI void APIENTRY gluTessNormal (GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ);
263 GLAPI void APIENTRY gluTessProperty (GLUtesselator* tess, GLenum which, GLdouble data);
264 GLAPI void APIENTRY gluTessVertex (GLUtesselator* tess, GLdouble *location, GLvoid* data);
265 GLAPI GLint APIENTRY gluUnProject (GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* objX, GLdouble* objY, GLdouble* objZ);
266 GLAPI GLint APIENTRY gluUnProject4 (GLdouble winX, GLdouble winY, GLdouble winZ, GLdouble clipW, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble nearVal, GLdouble farVal, GLdouble* objX, GLdouble* objY, GLdouble* objZ, GLdouble* objW);
267
268 #ifdef UNICODE
269 #define gluErrorStringWIN gluErrorUnicodeStringEXT
270 #else
271 #define gluErrorStringWIN gluErrorString
272 #endif
273
274 #ifdef __cplusplus
275 }
276 #endif
277
278 #endif /* __glu_h__ */