object3d_additions

object3d_additions - = Add the following pure virtual...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// ==================================================================== // Add the following pure virtual function to Object3D and define it // in each of its subclasses. The paint routine is responsible for // making the OpenGL calls to draw the object to the screen. // ==================================================================== #include <GL/gl.h> virtual void paint(void) = 0; // ==================================================================== // Below are some OpenGL commands that will be essential for // implementing the paint routines. // // Use the glPushMatrix() and glPopMatrix() commands to save the // current transformation to the stack or restore a transformation // matrix from the top of the stack. // ==================================================================== glPushMatrix(); glPopMatrix(); // ==================================================================== // These routines are used to translate, rotate, or scale an object // The indicated transformation will modify the current matrix, and
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/14/2011 for the course EECS 6.837 taught by Professor Durand during the Fall '03 term at MIT.

Page1 / 2

object3d_additions - = Add the following pure virtual...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online