public override void Render() { Gl.glPushMatrix(); Gl.glTranslated(origin.X, origin.Y, origin.Z); obj.Render(); Gl.glPopMatrix(); }
public void RenderScene() { Gl.glClear(Gl.GL_COLOR_BUFFER_BIT | Gl.GL_DEPTH_BUFFER_BIT); Gl.glMatrixMode(Gl.GL_MODELVIEW); Gl.glLoadIdentity(); camera.Look(); World.Render(); Glut.glutSwapBuffers(); }