PDA

View Full Version : Nurbs Tassellator



gabriele.cuccolini
11-22-2016, 05:32 AM
down vote
favorite
I'm using OPEN GL (version 4.5). I'm writing a code for NURBS rendering with gluNurbsSurface. My idea is to get the tassellation obtained from the OPEN GL to obtain the polygons triangolation on the surface. My sample of code is:


GLUNurbsObj *theNurb;
theNurb = gluNewNurbsRenderer();

gluNurbsProperty(theNurb, GLU_NURBS_MODE, GLU_NURBS_TASSELLATOR);


But I have an error about GLU_NURBS_MODE and GLU_NURBS_TASSELATOR that are not defined. Why? Maybe my version of OPEN GL is to recent? thank you