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.

Matrix Operations<br />

• Specify Current Matrix Stack<br />

glMatrixMode( GL_MODELVIEW or GL_PROJECTION )<br />

• Other Matrix or Stack Operations<br />

glLoadIdentity() glPushMatrix()<br />

glPopMatrix()<br />

• Viewport<br />

– usually same as window size<br />

– viewport aspect ratio should be same as projection<br />

transformation or resulting image may be dis<strong>to</strong>rted<br />

glViewport( x, y, width, height )

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

Saved successfully!

Ooh no, something went wrong!