3D Objects in OpenGL
3D Objects in OpenGL
3D Objects in OpenGL
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
GLU <strong>3D</strong> <strong>Objects</strong><br />
void gluPartialDisk( GLUquadric qobj,<br />
<br />
double <strong>in</strong>nerRadius, double outerRadius,<br />
<strong>in</strong>t slices, <strong>in</strong>t r<strong>in</strong>gs,<br />
double startAngle, double sweepAngle);<br />
Draws a partial disk on the z = 0 plane. A partial disk is similar to a complete<br />
disk, <strong>in</strong> terms of outerRadius, <strong>in</strong>nerRadius, slices, and r<strong>in</strong>gs.<br />
The difference is that only a portion of a partial disk is drawn, start<strong>in</strong>g from<br />
startAngle through startAngle + sweepAngle.<br />
GLUquadric qobj = gluNewQuadric();<br />
gluQuadricDrawStyle(qobj, GLU_FILL);<br />
gluPartialDisk(qobj, 0.0, 1.0, 20, 4, 0.0, 225.0);<br />
18