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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GLUT Callback Functions<br />

• Routine <strong>to</strong> call when something happens<br />

– window resize or redraw<br />

– user input<br />

– animation<br />

• “Register” callbacks with GLUT<br />

glutDisplayFunc( display );<br />

glutIdleFunc( idle );<br />

glutKeyboardFunc( keyboard );

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

Saved successfully!

Ooh no, something went wrong!