please, help me!!!
Hello,
In my code I have :
theNurb = gluNewNurbsRenderer();
gluNurbsProperty(theNurb, GLU_NURBS_MODE, GLU_NURBS_TESSELLATOR);
gluNurbsProperty(theNurb, GLU_SAMPLING_TOLERANCE, 100.0);
gluNurbsProperty(theNurb, GLU_DISPLAY_MODE, GLU_FILL);
gluNurbsCallback(theNurb, GLU_ERROR, nurbsError);
gluNurbsCallback(theNurb, GLU_NURBS_BEGIN, beginCallback);
gluNurbsCallback(theNurb, GLU_NURBS_VERTEX, vertexCallback);
gluNurbsCallback(theNurb, GLU_NURBS_NORMAL, normalCallback);
gluNurbsCallback(theNurb, GLU_NURBS_END, endCallback);
When I compile it I have :
error C2065: ''GLU_NURBS_MODE'' : undeclared identifier
error C2065: ''GLU_NURBS_TESSELLATOR'' : undeclared identifier
error C2664: ''gluNurbsCallback'' : cannot convert parameter 3 from ''void (unsigned int)'' to ''void (__stdcall *)(void)''
None of the functions with this name in scope match the target type
error C2065: ''GLU_NURBS_BEGIN'' : undeclared identifier
error C2065: ''GLU_NURBS_VERTEX'' : undeclared identifier
error C2065: ''GLU_NURBS_NORMAL'' : undeclared identifier
error C2065: ''GLU_NURBS_END'' : undeclared identifier
It''s a piece of code from the red book...
I include glut.h at the beginning...
I am linking glu32.lib glut32.lib and opengl.lib, but it''s seems to be before the linking...
I''m stuck...I have no ideas about the problem...
Any ideas?
Thank you...
add
#include < gl/glu.h >
after you include glut.h
EDIT: fixed post
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
Edited by - Jallen on December 6, 2001 6:57:04 PM
#include < gl/glu.h >
after you include glut.h
EDIT: fixed post
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
Edited by - Jallen on December 6, 2001 6:57:04 PM
Thats because GLU_NURBS_MODE is from an extension, you need to find an updated glext.h file (look at developer.nvidia.com) or copy the values out of the extension specification located here:
http://oss.sgi.com/projects/ogl-sample/registry/EXT/nurbs_tessellator.txt
Jason A.
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
http://oss.sgi.com/projects/ogl-sample/registry/EXT/nurbs_tessellator.txt
Jason A.
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement