please, help me!!!

Started by
4 comments, last by ju 22 years, 4 months ago
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...
Hey Ho Let's Go!
Advertisement
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
---I write code.DelphiGL (http://delphigl.cfxweb.net)
no, ''GLU_NURBS_MODE'' is just not defined in glu.h...it''s not so easy...
but thanks..
Hey Ho Let's Go!
you''re not including some header file, it is easy........
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)
---I write code.DelphiGL (http://delphigl.cfxweb.net)
Thank you very much, you''ve been the only one who knew what I was talking about...
Hey Ho Let's Go!

This topic is closed to new replies.

Advertisement