yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00876
gluUse in GLDrawSphere
-
To:
Yade Development Group <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Václav Šmilauer <eudoxos@xxxxxxxx>
-
Date:
Tue, 20 Jan 2009 18:45:06 +0100
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Lightning/0.8 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666
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 }*/