#include "gluos.h"
#include "glrenderer.h"
Go to the source code of this file.
|
void | glu_LOD_eval_list (GLUnurbs *nurb, int level) |
|
GLUnurbs *GLAPIENTRY | gluNewNurbsRenderer (void) |
|
void GLAPIENTRY | gluDeleteNurbsRenderer (GLUnurbs *r) |
|
void GLAPIENTRY | gluDeleteNurbsTessellatorEXT (GLUnurbsObj *r) |
|
void GLAPIENTRY | gluBeginSurface (GLUnurbs *r) |
|
void GLAPIENTRY | gluBeginCurve (GLUnurbs *r) |
|
void GLAPIENTRY | gluEndCurve (GLUnurbs *r) |
|
void GLAPIENTRY | gluEndSurface (GLUnurbs *r) |
|
void GLAPIENTRY | gluBeginTrim (GLUnurbs *r) |
|
void GLAPIENTRY | gluEndTrim (GLUnurbs *r) |
|
void GLAPIENTRY | gluPwlCurve (GLUnurbs *r, GLint count, INREAL array[], GLint stride, GLenum type) |
|
void GLAPIENTRY | gluNurbsCurve (GLUnurbs *r, GLint nknots, INREAL knot[], GLint stride, INREAL ctlarray[], GLint order, GLenum type) |
|
void GLAPIENTRY | gluNurbsSurface (GLUnurbs *r, GLint sknot_count, GLfloat *sknot, GLint tknot_count, GLfloat *tknot, GLint s_stride, GLint t_stride, GLfloat *ctlarray, GLint sorder, GLint torder, GLenum type) |
|
void GLAPIENTRY | gluLoadSamplingMatrices (GLUnurbs *r, const GLfloat modelMatrix[16], const GLfloat projMatrix[16], const GLint viewport[4]) |
|
void GLAPIENTRY | gluNurbsProperty (GLUnurbs *r, GLenum property, GLfloat value) |
|
void GLAPIENTRY | gluGetNurbsProperty (GLUnurbs *r, GLenum property, GLfloat *value) |
|
void GLAPIENTRY | gluNurbsCallback (GLUnurbs *r, GLenum which, _GLUfuncptr fn) |
|
void GLAPIENTRY | gluNurbsCallbackDataEXT (GLUnurbs *r, void *userData) |
|
void GLAPIENTRY | gluNurbsCallbackData (GLUnurbs *r, void *userData) |
|
◆ glu_LOD_eval_list()
Definition at line 60 of file glinterface.cc.
61{
63}
void LOD_eval_list(int level)
◆ gluBeginCurve()
Definition at line 99 of file glinterface.cc.
100{
102}
GLdouble GLdouble GLdouble r
◆ gluBeginSurface()
Definition at line 89 of file glinterface.cc.
90{
91#ifdef DOWN_LOAD_NURBS
92surfcount++;
93tempTrim = OTL_make(10,10);
94#endif
96}
◆ gluBeginTrim()
Definition at line 131 of file glinterface.cc.
132{
133#ifdef DOWN_LOAD_NURBS
134OTL_bgnTrim(tempTrim);
135#endif
136
138}
◆ gluDeleteNurbsRenderer()
◆ gluDeleteNurbsTessellatorEXT()
◆ gluEndCurve()
◆ gluEndSurface()
Definition at line 111 of file glinterface.cc.
112{
113#ifdef DOWN_LOAD_NURBS
114if(surfcount == 1)
115 otn = OTN_make(1);
116OTN_insert(otn, tempNurb, tempTrim);
117if(surfcount >= 1)
118{
119#ifdef DEBUG
121#endif
122OTN_write(otn, "out.otn");
123
124}
125#endif
126
128}
◆ gluEndTrim()
Definition at line 141 of file glinterface.cc.
142{
143#ifdef DOWN_LOAD_NURBS
144OTL_endTrim(tempTrim);
145#endif
147}
◆ gluGetNurbsProperty()
Definition at line 359 of file glinterface.cc.
360{
362
365 if (
r->getautoloadmode()) {
367 } else {
369 }
370 break;
375 } else {
377 }
378 break;
391 break;
394 break;
397 break;
398
401 break;
404 break;
407 if (nurbsValue ==
N_FILL) {
411 } else {
413 }
414 break;
415
419 else
421 break;
422
423 default:
425 return;
426 }
427}
#define GLU_OUTLINE_PATCH
#define GLU_AUTO_LOAD_MATRIX
#define GLU_NURBS_RENDERER
#define GLU_SAMPLING_TOLERANCE
#define GLU_OBJECT_PARAMETRIC_ERROR
#define GLU_OBJECT_PATH_LENGTH
#define GLU_DOMAIN_DISTANCE
#define GLU_OUTLINE_POLYGON
#define GLU_PARAMETRIC_ERROR
#define GLU_PARAMETRIC_TOLERANCE
#define GLU_NURBS_TESSELLATOR
#define GLU_SAMPLING_METHOD
#define N_OBJECTSPACE_PARA
#define N_OBJECTSPACE_PATH
#define N_PIXEL_TOLERANCE
#define N_PARAMETRICDISTANCE
#define N_ERROR_TOLERANCE
◆ gluLoadSamplingMatrices()
Definition at line 235 of file glinterface.cc.
238{
239 r->useGLMatrices(modelMatrix, projMatrix, viewport);
240}
◆ gluNewNurbsRenderer()
◆ gluNurbsCallback()
Definition at line 430 of file glinterface.cc.
431{
446 break;
447
450 break;
451 default:
453 return;
454 }
455}
#define GLU_NURBS_TEXTURE_COORD
#define GLU_NURBS_VERTEX_DATA
#define GLU_NURBS_TEXTURE_COORD_DATA
#define GLU_NURBS_COLOR_DATA
#define GLU_NURBS_BEGIN_DATA
#define GLU_NURBS_END_DATA
#define GLU_NURBS_NORMAL_DATA
static GLenum _GLUfuncptr fn
◆ gluNurbsCallbackData()
Definition at line 466 of file glinterface.cc.
467{
469}
#define gluNurbsCallbackDataEXT
◆ gluNurbsCallbackDataEXT()
Definition at line 459 of file glinterface.cc.
460{
461 r->setNurbsCallbackData(userData);
462}
◆ gluNurbsCurve()
Definition at line 173 of file glinterface.cc.
175{
176#ifdef DOWN_LOAD_NURBS
178#endif
179
180 int realType;
181
185 break;
188 break;
189 default:
191 break;
192 }
193
195 realType);
196}
GLuint GLuint GLsizei GLenum type
GLuint GLdouble GLdouble GLint GLint order
◆ gluNurbsProperty()
Definition at line 243 of file glinterface.cc.
244{
246
249 r->setautoloadmode(
value);
250 return;
251
255 } else {
257 }
262 return;
263
271 r->set_is_domain_distance_sampling(1);
272
275 r->setautoloadmode( 0.0 );
276 r->setSamplingMatrixIdentity();
279 r->setautoloadmode( 0.0 );
280 r->setSamplingMatrixIdentity();
281 } else {
283 return;
284 }
285
290 return;
291
297 return;
298
304 return;
305
306
308
315 } else {
317 return;
318 }
320
321 break;
322
328
329
330 r->set_domain_distance_u_rate(
value);
331 break;
332
338
339
340 r->set_domain_distance_v_rate(
value);
341 break;
342
345 r->put_callbackFlag(0);
347 r->put_callbackFlag(1);
348 else
350 break;
351
352 default:
354 return;
355 }
356}
#define GLU_INVALID_VALUE
◆ gluNurbsSurface()
void GLAPIENTRY gluNurbsSurface |
( |
GLUnurbs * |
r, |
|
|
GLint |
sknot_count, |
|
|
GLfloat * |
sknot, |
|
|
GLint |
tknot_count, |
|
|
GLfloat * |
tknot, |
|
|
GLint |
s_stride, |
|
|
GLint |
t_stride, |
|
|
GLfloat * |
ctlarray, |
|
|
GLint |
sorder, |
|
|
GLint |
torder, |
|
|
GLenum |
type |
|
) |
| |
Definition at line 199 of file glinterface.cc.
204{
205#ifdef DOWN_LOAD_NURBS
206 {
207 int dimension;
210 dimension = 3;
211 break;
213 dimension = 4;
214 break;
215 default:
216 fprintf(
stderr,
"error in glinterface.c++, type no implemented\n");
218 }
219tempNurb = nurbSurfMake(sknot_count, sknot,
220 tknot_count, tknot,
221 sorder, torder,
222 dimension,
223 ctlarray,
224 s_stride, t_stride);
225
226 }
227#endif
228
229 r->nurbssurface(sknot_count, sknot, tknot_count, tknot,
231 ctlarray, sorder, torder,
type);
232}
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
◆ gluPwlCurve()
Definition at line 150 of file glinterface.cc.
152{
153#ifdef DOWN_LOAD_NURBS
155#endif
156
157 int realType;
161 break;
164 break;
165 default:
167 break;
168 }
170}
GLuint GLuint GLsizei count