23.10.2014 Views

3D Objects in OpenGL

3D Objects in OpenGL

3D Objects in OpenGL

SHOW MORE
SHOW LESS

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 />

Controll<strong>in</strong>g Quadrics Attributes<br />

void gluQuadricDrawStyle(<br />

GLUquadric qobj, GLenum drawStyle);<br />

<br />

For the quadrics object qobj, drawStyle controls the render<strong>in</strong>g<br />

style. Legal values for drawStyle are GLU_POINT, GLU_LINE,<br />

GLU_SILHOUETTE, and GLU_FILL.<br />

GLUquadric qobj = gluNewQuadric();<br />

gluQuadricDrawStyle(qobj, GLU_LINE);<br />

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!