| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/glu.h
Go to the documentation of this file.

    00001 /*
    00002 ** License Applicability. Except to the extent portions of this file are
    00003 ** made subject to an alternative license as permitted in the SGI Free
    00004 ** Software License B, Version 1.1 (the "License"), the contents of this
    00005 ** file are subject only to the provisions of the License. You may not use
    00006 ** this file except in compliance with the License. You may obtain a copy
    00007 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    00008 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    00009 **
    00010 ** http://oss.sgi.com/projects/FreeB
    00011 **
    00012 ** Note that, as provided in the License, the Software is distributed on an
    00013 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
    00014 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
    00015 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
    00016 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
    00017 **
    00018 ** Original Code. The Original Code is: OpenGL Sample Implementation,
    00019 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
    00020 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
    00021 ** Copyright in any portions created by third parties is as indicated
    00022 ** elsewhere herein. All Rights Reserved.
    00023 **
    00024 ** Additional Notice Provisions: This software was created using the
    00025 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
    00026 ** not been independently verified as being compliant with the OpenGL(R)
    00027 ** version 1.2.1 Specification.
    00028 */
    00029
    00030 #ifndef __glu_h__
    00031 #define __glu_h__
    00032
    00033 #if defined(USE_MGL_NAMESPACE)
    00034 #include "glu_mangle.h"
    00035 #endif
    00036
    00037 #include <GL/gl.h>
    00038
    00039 #ifndef GLAPIENTRY
    00040 #define GLAPIENTRY
    00041 #endif
    00042
    00043 #ifndef GLAPIENTRYP
    00044 #define GLAPIENTRYP GLAPIENTRY *
    00045 #endif
    00046
    00047 #ifndef GLAPI
    00048 #define GLAPI
    00049 #endif
    00050
    00051 #ifdef __cplusplus
    00052 extern "C" {
    00053 #endif
    00054
    00055 /*************************************************************/
    00056
    00057 /* Extensions */
    00058 #define GLU_EXT_object_space_tess          1
    00059 #define GLU_EXT_nurbs_tessellator          1
    00060
    00061 /* Boolean */
    00062 #define GLU_FALSE                          0
    00063 #define GLU_TRUE                           1
    00064
    00065 /* Version */
    00066 #define GLU_VERSION_1_1                    1
    00067 #define GLU_VERSION_1_2                    1
    00068 #define GLU_VERSION_1_3                    1
    00069
    00070 /* StringName */
    00071 #define GLU_VERSION                        100800
    00072 #define GLU_EXTENSIONS                     100801
    00073
    00074 /* ErrorCode */
    00075 #define GLU_INVALID_ENUM                   100900
    00076 #define GLU_INVALID_VALUE                  100901
    00077 #define GLU_OUT_OF_MEMORY                  100902
    00078 #define GLU_INCOMPATIBLE_GL_VERSION        100903
    00079 #define GLU_INVALID_OPERATION              100904
    00080
    00081 /* NurbsDisplay */
    00082 /*      GLU_FILL */
    00083 #define GLU_OUTLINE_POLYGON                100240
    00084 #define GLU_OUTLINE_PATCH                  100241
    00085
    00086 /* NurbsCallback */
    00087 #define GLU_NURBS_ERROR                    100103
    00088 #define GLU_ERROR                          100103
    00089 #define GLU_NURBS_BEGIN                    100164
    00090 #define GLU_NURBS_BEGIN_EXT                100164
    00091 #define GLU_NURBS_VERTEX                   100165
    00092 #define GLU_NURBS_VERTEX_EXT               100165
    00093 #define GLU_NURBS_NORMAL                   100166
    00094 #define GLU_NURBS_NORMAL_EXT               100166
    00095 #define GLU_NURBS_COLOR                    100167
    00096 #define GLU_NURBS_COLOR_EXT                100167
    00097 #define GLU_NURBS_TEXTURE_COORD            100168
    00098 #define GLU_NURBS_TEX_COORD_EXT            100168
    00099 #define GLU_NURBS_END                      100169
    00100 #define GLU_NURBS_END_EXT                  100169
    00101 #define GLU_NURBS_BEGIN_DATA               100170
    00102 #define GLU_NURBS_BEGIN_DATA_EXT           100170
    00103 #define GLU_NURBS_VERTEX_DATA              100171
    00104 #define GLU_NURBS_VERTEX_DATA_EXT          100171
    00105 #define GLU_NURBS_NORMAL_DATA              100172
    00106 #define GLU_NURBS_NORMAL_DATA_EXT          100172
    00107 #define GLU_NURBS_COLOR_DATA               100173
    00108 #define GLU_NURBS_COLOR_DATA_EXT           100173
    00109 #define GLU_NURBS_TEXTURE_COORD_DATA       100174
    00110 #define GLU_NURBS_TEX_COORD_DATA_EXT       100174
    00111 #define GLU_NURBS_END_DATA                 100175
    00112 #define GLU_NURBS_END_DATA_EXT             100175
    00113
    00114 /* NurbsError */
    00115 #define GLU_NURBS_ERROR1                   100251
    00116 #define GLU_NURBS_ERROR2                   100252
    00117 #define GLU_NURBS_ERROR3                   100253
    00118 #define GLU_NURBS_ERROR4                   100254
    00119 #define GLU_NURBS_ERROR5                   100255
    00120 #define GLU_NURBS_ERROR6                   100256
    00121 #define GLU_NURBS_ERROR7                   100257
    00122 #define GLU_NURBS_ERROR8                   100258
    00123 #define GLU_NURBS_ERROR9                   100259
    00124 #define GLU_NURBS_ERROR10                  100260
    00125 #define GLU_NURBS_ERROR11                  100261
    00126 #define GLU_NURBS_ERROR12                  100262
    00127 #define GLU_NURBS_ERROR13                  100263
    00128 #define GLU_NURBS_ERROR14                  100264
    00129 #define GLU_NURBS_ERROR15                  100265
    00130 #define GLU_NURBS_ERROR16                  100266
    00131 #define GLU_NURBS_ERROR17                  100267
    00132 #define GLU_NURBS_ERROR18                  100268
    00133 #define GLU_NURBS_ERROR19                  100269
    00134 #define GLU_NURBS_ERROR20                  100270
    00135 #define GLU_NURBS_ERROR21                  100271
    00136 #define GLU_NURBS_ERROR22                  100272
    00137 #define GLU_NURBS_ERROR23                  100273
    00138 #define GLU_NURBS_ERROR24                  100274
    00139 #define GLU_NURBS_ERROR25                  100275
    00140 #define GLU_NURBS_ERROR26                  100276
    00141 #define GLU_NURBS_ERROR27                  100277
    00142 #define GLU_NURBS_ERROR28                  100278
    00143 #define GLU_NURBS_ERROR29                  100279
    00144 #define GLU_NURBS_ERROR30                  100280
    00145 #define GLU_NURBS_ERROR31                  100281
    00146 #define GLU_NURBS_ERROR32                  100282
    00147 #define GLU_NURBS_ERROR33                  100283
    00148 #define GLU_NURBS_ERROR34                  100284
    00149 #define GLU_NURBS_ERROR35                  100285
    00150 #define GLU_NURBS_ERROR36                  100286
    00151 #define GLU_NURBS_ERROR37                  100287
    00152
    00153 /* NurbsProperty */
    00154 #define GLU_AUTO_LOAD_MATRIX               100200
    00155 #define GLU_CULLING                        100201
    00156 #define GLU_SAMPLING_TOLERANCE             100203
    00157 #define GLU_DISPLAY_MODE                   100204
    00158 #define GLU_PARAMETRIC_TOLERANCE           100202
    00159 #define GLU_SAMPLING_METHOD                100205
    00160 #define GLU_U_STEP                         100206
    00161 #define GLU_V_STEP                         100207
    00162 #define GLU_NURBS_MODE                     100160
    00163 #define GLU_NURBS_MODE_EXT                 100160
    00164 #define GLU_NURBS_TESSELLATOR              100161
    00165 #define GLU_NURBS_TESSELLATOR_EXT          100161
    00166 #define GLU_NURBS_RENDERER                 100162
    00167 #define GLU_NURBS_RENDERER_EXT             100162
    00168
    00169 /* NurbsSampling */
    00170 #define GLU_OBJECT_PARAMETRIC_ERROR        100208
    00171 #define GLU_OBJECT_PARAMETRIC_ERROR_EXT    100208
    00172 #define GLU_OBJECT_PATH_LENGTH             100209
    00173 #define GLU_OBJECT_PATH_LENGTH_EXT         100209
    00174 #define GLU_PATH_LENGTH                    100215
    00175 #define GLU_PARAMETRIC_ERROR               100216
    00176 #define GLU_DOMAIN_DISTANCE                100217
    00177
    00178 /* NurbsTrim */
    00179 #define GLU_MAP1_TRIM_2                    100210
    00180 #define GLU_MAP1_TRIM_3                    100211
    00181
    00182 /* QuadricDrawStyle */
    00183 #define GLU_POINT                          100010
    00184 #define GLU_LINE                           100011
    00185 #define GLU_FILL                           100012
    00186 #define GLU_SILHOUETTE                     100013
    00187
    00188 /* QuadricCallback */
    00189 /*      GLU_ERROR */
    00190
    00191 /* QuadricNormal */
    00192 #define GLU_SMOOTH                         100000
    00193 #define GLU_FLAT                           100001
    00194 #define GLU_NONE                           100002
    00195
    00196 /* QuadricOrientation */
    00197 #define GLU_OUTSIDE                        100020
    00198 #define GLU_INSIDE                         100021
    00199
    00200 /* TessCallback */
    00201 #define GLU_TESS_BEGIN                     100100
    00202 #define GLU_BEGIN                          100100
    00203 #define GLU_TESS_VERTEX                    100101
    00204 #define GLU_VERTEX                         100101
    00205 #define GLU_TESS_END                       100102
    00206 #define GLU_END                            100102
    00207 #define GLU_TESS_ERROR                     100103
    00208 #define GLU_TESS_EDGE_FLAG                 100104
    00209 #define GLU_EDGE_FLAG                      100104
    00210 #define GLU_TESS_COMBINE                   100105
    00211 #define GLU_TESS_BEGIN_DATA                100106
    00212 #define GLU_TESS_VERTEX_DATA               100107
    00213 #define GLU_TESS_END_DATA                  100108
    00214 #define GLU_TESS_ERROR_DATA                100109
    00215 #define GLU_TESS_EDGE_FLAG_DATA            100110
    00216 #define GLU_TESS_COMBINE_DATA              100111
    00217
    00218 /* TessContour */
    00219 #define GLU_CW                             100120
    00220 #define GLU_CCW                            100121
    00221 #define GLU_INTERIOR                       100122
    00222 #define GLU_EXTERIOR                       100123
    00223 #define GLU_UNKNOWN                        100124
    00224
    00225 /* TessProperty */
    00226 #define GLU_TESS_WINDING_RULE              100140
    00227 #define GLU_TESS_BOUNDARY_ONLY             100141
    00228 #define GLU_TESS_TOLERANCE                 100142
    00229
    00230 /* TessError */
    00231 #define GLU_TESS_ERROR1                    100151
    00232 #define GLU_TESS_ERROR2                    100152
    00233 #define GLU_TESS_ERROR3                    100153
    00234 #define GLU_TESS_ERROR4                    100154
    00235 #define GLU_TESS_ERROR5                    100155
    00236 #define GLU_TESS_ERROR6                    100156
    00237 #define GLU_TESS_ERROR7                    100157
    00238 #define GLU_TESS_ERROR8                    100158
    00239 #define GLU_TESS_MISSING_BEGIN_POLYGON     100151
    00240 #define GLU_TESS_MISSING_BEGIN_CONTOUR     100152
    00241 #define GLU_TESS_MISSING_END_POLYGON       100153
    00242 #define GLU_TESS_MISSING_END_CONTOUR       100154
    00243 #define GLU_TESS_COORD_TOO_LARGE           100155
    00244 #define GLU_TESS_NEED_COMBINE_CALLBACK     100156
    00245
    00246 /* TessWinding */
    00247 #define GLU_TESS_WINDING_ODD               100130
    00248 #define GLU_TESS_WINDING_NONZERO           100131
    00249 #define GLU_TESS_WINDING_POSITIVE          100132
    00250 #define GLU_TESS_WINDING_NEGATIVE          100133
    00251 #define GLU_TESS_WINDING_ABS_GEQ_TWO       100134
    00252
    00253 /*************************************************************/
    00254
    00255
    00256 #ifdef __cplusplus
    00257 class GLUnurbs;
    00258 class GLUquadric;
    00259 class GLUtesselator;
    00260 #else
    00261 typedef struct GLUnurbs GLUnurbs;
    00262 typedef struct GLUquadric GLUquadric;
    00263 typedef struct GLUtesselator GLUtesselator;
    00264 #endif
    00265
    00266 typedef GLUnurbs GLUnurbsObj;
    00267 typedef GLUquadric GLUquadricObj;
    00268 typedef GLUtesselator GLUtesselatorObj;
    00269 typedef GLUtesselator GLUtriangulatorObj;
    00270
    00271 #define GLU_TESS_MAX_COORD 1.0e150
    00272
    00273 /* Internal convenience typedefs */
    00274 typedef void (GLAPIENTRYP _GLUfuncptr)();
    00275
    00276 GLAPI void GLAPIENTRY gluBeginCurve (GLUnurbs* nurb);
    00277 GLAPI void GLAPIENTRY gluBeginPolygon (GLUtesselator* tess);
    00278 GLAPI void GLAPIENTRY gluBeginSurface (GLUnurbs* nurb);
    00279 GLAPI void GLAPIENTRY gluBeginTrim (GLUnurbs* nurb);
    00280 GLAPI GLint GLAPIENTRY gluBuild1DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data);
    00281 GLAPI GLint GLAPIENTRY gluBuild1DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void *data);
    00282 GLAPI GLint GLAPIENTRY gluBuild2DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data);
    00283 GLAPI GLint GLAPIENTRY gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data);
    00284 GLAPI GLint GLAPIENTRY gluBuild3DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data);
    00285 GLAPI GLint GLAPIENTRY gluBuild3DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
    00286 GLAPI GLboolean GLAPIENTRY gluCheckExtension (const GLubyte *extName, const GLubyte *extString);
    00287 GLAPI void GLAPIENTRY gluCylinder (GLUquadric* quad, GLdouble base, GLdouble top, GLdouble height, GLint slices, GLint stacks);
    00288 GLAPI void GLAPIENTRY gluDeleteNurbsRenderer (GLUnurbs* nurb);
    00289 GLAPI void GLAPIENTRY gluDeleteQuadric (GLUquadric* quad);
    00290 GLAPI void GLAPIENTRY gluDeleteTess (GLUtesselator* tess);
    00291 GLAPI void GLAPIENTRY gluDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops);
    00292 GLAPI void GLAPIENTRY gluEndCurve (GLUnurbs* nurb);
    00293 GLAPI void GLAPIENTRY gluEndPolygon (GLUtesselator* tess);
    00294 GLAPI void GLAPIENTRY gluEndSurface (GLUnurbs* nurb);
    00295 GLAPI void GLAPIENTRY gluEndTrim (GLUnurbs* nurb);
    00296 GLAPI const GLubyte * GLAPIENTRY gluErrorString (GLenum error);
    00297 GLAPI void GLAPIENTRY gluGetNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat* data);
    00298 GLAPI const GLubyte * GLAPIENTRY gluGetString (GLenum name);
    00299 GLAPI void GLAPIENTRY gluGetTessProperty (GLUtesselator* tess, GLenum which, GLdouble* data);
    00300 GLAPI void GLAPIENTRY gluLoadSamplingMatrices (GLUnurbs* nurb, const GLfloat *model, const GLfloat *perspective, const GLint *view);
    00301 GLAPI void GLAPIENTRY gluLookAt (GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, GLdouble centerY, GLdouble centerZ, GLdouble upX, GLdouble upY, GLdouble upZ);
    00302 GLAPI GLUnurbs* GLAPIENTRY gluNewNurbsRenderer (void);
    00303 GLAPI GLUquadric* GLAPIENTRY gluNewQuadric (void);
    00304 GLAPI GLUtesselator* GLAPIENTRY gluNewTess (void);
    00305 GLAPI void GLAPIENTRY gluNextContour (GLUtesselator* tess, GLenum type);
    00306 GLAPI void GLAPIENTRY gluNurbsCallback (GLUnurbs* nurb, GLenum which, _GLUfuncptr CallBackFunc);
    00307 GLAPI void GLAPIENTRY gluNurbsCallbackData (GLUnurbs* nurb, GLvoid* userData);
    00308 GLAPI void GLAPIENTRY gluNurbsCallbackDataEXT (GLUnurbs* nurb, GLvoid* userData);
    00309 GLAPI void GLAPIENTRY gluNurbsCurve (GLUnurbs* nurb, GLint knotCount, GLfloat *knots, GLint stride, GLfloat *control, GLint order, GLenum type);
    00310 GLAPI void GLAPIENTRY gluNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat value);
    00311 GLAPI void GLAPIENTRY gluNurbsSurface (GLUnurbs* nurb, GLint sKnotCount, GLfloat* sKnots, GLint tKnotCount, GLfloat* tKnots, GLint sStride, GLint tStride, GLfloat* control, GLint sOrder, GLint tOrder, GLenum type);
    00312 GLAPI void GLAPIENTRY gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top);
    00313 GLAPI void GLAPIENTRY gluPartialDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep);
    00314 GLAPI void GLAPIENTRY gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar);
    00315 GLAPI void GLAPIENTRY gluPickMatrix (GLdouble x, GLdouble y, GLdouble delX, GLdouble delY, GLint *viewport);
    00316 GLAPI GLint GLAPIENTRY gluProject (GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* winX, GLdouble* winY, GLdouble* winZ);
    00317 GLAPI void GLAPIENTRY gluPwlCurve (GLUnurbs* nurb, GLint count, GLfloat* data, GLint stride, GLenum type);
    00318 GLAPI void GLAPIENTRY gluQuadricCallback (GLUquadric* quad, GLenum which, _GLUfuncptr CallBackFunc);
    00319 GLAPI void GLAPIENTRY gluQuadricDrawStyle (GLUquadric* quad, GLenum draw);
    00320 GLAPI void GLAPIENTRY gluQuadricNormals (GLUquadric* quad, GLenum normal);
    00321 GLAPI void GLAPIENTRY gluQuadricOrientation (GLUquadric* quad, GLenum orientation);
    00322 GLAPI void GLAPIENTRY gluQuadricTexture (GLUquadric* quad, GLboolean texture);
    00323 GLAPI GLint GLAPIENTRY gluScaleImage (GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut);
    00324 GLAPI void GLAPIENTRY gluSphere (GLUquadric* quad, GLdouble radius, GLint slices, GLint stacks);
    00325 GLAPI void GLAPIENTRY gluTessBeginContour (GLUtesselator* tess);
    00326 GLAPI void GLAPIENTRY gluTessBeginPolygon (GLUtesselator* tess, GLvoid* data);
    00327 GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
    00328 GLAPI void GLAPIENTRY gluTessEndContour (GLUtesselator* tess);
    00329 GLAPI void GLAPIENTRY gluTessEndPolygon (GLUtesselator* tess);
    00330 GLAPI void GLAPIENTRY gluTessNormal (GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ);
    00331 GLAPI void GLAPIENTRY gluTessProperty (GLUtesselator* tess, GLenum which, GLdouble data);
    00332 GLAPI void GLAPIENTRY gluTessVertex (GLUtesselator* tess, GLdouble *location, GLvoid* data);
    00333 GLAPI GLint GLAPIENTRY gluUnProject (GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* objX, GLdouble* objY, GLdouble* objZ);
    00334 GLAPI GLint GLAPIENTRY 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);
    00335
    00336 #ifdef __cplusplus
    00337 }
    00338 #endif
    00339
    00340 #endif /* __glu_h__ */

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines