← Back to team overview

yade-dev team mailing list archive

gluUse in GLDrawSphere

 

CVosurgi, why did you comment this out if it does nothing by default?
... Wondering (and reverting). V.


  1542    cosurgi     /*if(glutUse){
  1404    eudoxos         Real r= (static_cast<Sphere*>(gm.get()))->radius;
  1404    eudoxos         glMaterialv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE,
Vector3f(gm->diffuseColor[0],gm->diffuseColor[1],gm->diffuseColor[2]));
  1404    eudoxos         glColor3v(gm->diffuseColor);
  1404    eudoxos         if(glutNormalize)  
 glPushAttrib(GL_NORMALIZE); // as per
http://lists.apple.com/archives/Mac-opengl/2002/Jul/msg00085.html
  1404    eudoxos              if (gm->wire || wire)
glutWireSphere(r,glutSlices,glutStacks);
  1404    eudoxos             else glutSolidSphere(r,glutSlices,glutStacks);
  1404    eudoxos         if(glutNormalize) glPopAttrib();
  1404    eudoxos         return;
  1542    cosurgi     }*/