OpenGL (cont'd) Setting the View # set the lookat point (view) glMatrixMode(GL_MODELVIEW) glLoadIdentity() vp = self.vp + (sgn * r) lookat = vp + self.vdir() up = self.vu gluLookAt(vp[X], vp[Y], vp[Z], lookat[X], lookat[Y], lookat[Z], up[X], up[Y], up[Z]) self.display() # Execute drawing primitives