18.07.2014 Views

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting <strong>OpenGL</strong> State<br />

(cont’d.)<br />

2. Turning on a rendering mode<br />

glEnable() / glDisable()<br />

3. Configuring the specifics of a particular<br />

rendering mode<br />

• Each mode has unique commands for setting<br />

its values<br />

glMaterialfv()

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

Saved successfully!

Ooh no, something went wrong!