ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/entity.C
(Generate patch)

Comparing libgender/entity.C (file contents):
Revision 1.60 by root, Tue Nov 2 23:26:46 2004 UTC vs.
Revision 1.61 by root, Thu Nov 4 04:46:58 2004 UTC

123 123
124void geometry_sphere::draw (view &ctx) 124void geometry_sphere::draw (view &ctx)
125{ 125{
126 int n = min (100, max (15, (int)(ctx.pixfact * radius) / 10)); 126 int n = min (100, max (15, (int)(ctx.pixfact * radius) / 10));
127 127
128 m->enable (ctx);
128 GLUquadric *quad = gluNewQuadric (); 129 GLUquadric *quad = gluNewQuadric ();
129 gluQuadricTexture (quad, true); 130 gluQuadricTexture (quad, true);
130 gluSphere (quad, radius, n, n); 131 gluSphere (quad, radius, n, n);
131 gluDeleteQuadric (quad); 132 gluDeleteQuadric (quad);
133 m->disable (ctx);
132} 134}
133 135
134///////////////////////////////////////////////////////////////////////////// 136/////////////////////////////////////////////////////////////////////////////
135 137
136void geometry_transform::update () 138void geometry_transform::update ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines