From 02412eefcfb612022a49d11e4e796c4026fdf84a Mon Sep 17 00:00:00 2001 From: Bill Rowan Date: Thu, 1 Mar 2012 17:01:12 -0800 Subject: [PATCH] added in recommended nurbs initialization --- pp1.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pp1.cxx b/pp1.cxx index 7b414ba..267d204 100644 --- a/pp1.cxx +++ b/pp1.cxx @@ -23,6 +23,7 @@ GLdouble viewX, viewY, viewZ; /* view point */ GLUquadricObj *theQuadric; +GLUnurbs *theNurb; void DrawScene(){ // Replace with your code to draw the torus @@ -73,6 +74,11 @@ void InitInterfaceDefaults(void){ void MyInit(void){ theQuadric = gluNewQuadric(); + + theNurb = gluNewNurbsRenderer(); + gluNurbsProperty(theNurb, GLU_SAMPLING_METHOD, GLU_DOMAIN_DISTANCE); + gluNurbsProperty(theNurb, GLU_U_STEP, 15); + gluNurbsProperty(theNurb, GLU_V_STEP, 15); }