Basic Graphics Programming - University of Southern California
Basic Graphics Programming - University of Southern California
Basic Graphics Programming - University of Southern California
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Projection<br />
• Mapping world to screen coordinates<br />
void reshape(int w, int h)<br />
{<br />
glViewport (0, 0, (GLsizei) w, (GLsizei) h);<br />
glMatrixMode (GL_PROJECTION);<br />
glLoadIdentity ();<br />
if (w