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

• Three ways <strong>to</strong> set <strong>OpenGL</strong> state:<br />

1. Set values <strong>to</strong> be used for processing<br />

vertices<br />

• most common methods of setting state<br />

– glColor() / glIndex()<br />

– glNormal()<br />

– glTexCoord()<br />

• state must be set before calling glVertex()

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

Saved successfully!

Ooh no, something went wrong!