49#include "oglTrimNurbs.h"
50static int surfcount = 0;
51static oglTrimNurbs* otn =
NULL;
52nurbSurf* tempNurb =
NULL;
53oglTrimLoops* tempTrim =
NULL;
93tempTrim = OTL_make(10,10);
113#ifdef DOWN_LOAD_NURBS
116OTN_insert(otn, tempNurb, tempTrim);
122OTN_write(otn,
"out.otn");
133#ifdef DOWN_LOAD_NURBS
134OTL_bgnTrim(tempTrim);
143#ifdef DOWN_LOAD_NURBS
144OTL_endTrim(tempTrim);
153#ifdef DOWN_LOAD_NURBS
176#ifdef DOWN_LOAD_NURBS
205#ifdef DOWN_LOAD_NURBS
216 fprintf(
stderr,
"error in glinterface.c++, type no implemented\n");
219tempNurb = nurbSurfMake(sknot_count, sknot,
229 r->nurbssurface(sknot_count, sknot, tknot_count, tknot,
231 ctlarray, sorder, torder,
type);
237 const GLint viewport[4])
239 r->useGLMatrices(modelMatrix, projMatrix, viewport);
249 r->setautoloadmode(
value);
271 r->set_is_domain_distance_sampling(1);
275 r->setautoloadmode( 0.0 );
276 r->setSamplingMatrixIdentity();
279 r->setautoloadmode( 0.0 );
280 r->setSamplingMatrixIdentity();
330 r->set_domain_distance_u_rate(
value);
340 r->set_domain_distance_v_rate(
value);
345 r->put_callbackFlag(0);
347 r->put_callbackFlag(1);
365 if (
r->getautoloadmode()) {
407 if (nurbsValue ==
N_FILL) {
461 r->setNurbsCallbackData(userData);
void LOD_eval_list(int level)
#define GLU_OUTLINE_PATCH
#define GLU_AUTO_LOAD_MATRIX
#define GLU_NURBS_RENDERER
#define GLU_SAMPLING_TOLERANCE
#define GLU_OBJECT_PARAMETRIC_ERROR
#define GLU_NURBS_TEXTURE_COORD
#define GLU_OBJECT_PATH_LENGTH
#define GLU_NURBS_VERTEX_DATA
#define GLU_DOMAIN_DISTANCE
#define GLU_NURBS_TEXTURE_COORD_DATA
#define GLU_NURBS_COLOR_DATA
#define GLU_OUTLINE_POLYGON
#define GLU_PARAMETRIC_ERROR
#define GLU_NURBS_BEGIN_DATA
#define GLU_PARAMETRIC_TOLERANCE
#define GLU_NURBS_END_DATA
#define GLU_NURBS_TESSELLATOR
#define GLU_NURBS_NORMAL_DATA
#define GLU_SAMPLING_METHOD
#define GLU_INVALID_VALUE
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLdouble GLdouble GLdouble r
GLuint GLdouble GLdouble GLint GLint order
void GLAPIENTRY gluDeleteNurbsTessellatorEXT(GLUnurbsObj *r)
void glu_LOD_eval_list(GLUnurbs *nurb, int level)
GLUnurbs *GLAPIENTRY gluNewNurbsRenderer(void)
#define gluLoadSamplingMatrices
#define gluNurbsCallbackDataEXT
#define gluDeleteNurbsRenderer
#define gluGetNurbsProperty
#define gluNurbsCallbackData
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
#define N_OBJECTSPACE_PARA
#define N_OBJECTSPACE_PATH
#define N_PIXEL_TOLERANCE
#define N_PARAMETRICDISTANCE
#define N_ERROR_TOLERANCE
static GLenum _GLUfuncptr fn
void(WINAPI * _GLUfuncptr)(void)