Skip to content

Commit

Permalink
added in recommended nurbs initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Rowan committed Mar 2, 2012
1 parent a725e5f commit 02412ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pp1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
GLdouble viewX, viewY, viewZ; /* view point */

GLUquadricObj *theQuadric;
GLUnurbs *theNurb;

void DrawScene(){
// Replace with your code to draw the torus
Expand Down Expand Up @@ -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);
}


Expand Down

0 comments on commit 02412ee

Please sign in to comment.