Changeset 2759 in orxonox.OLD for orxonox/branches/importer/importer/framework.cc
- Timestamp:
- Nov 9, 2004, 2:23:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/importer/importer/framework.cc
r2748 r2759 5 5 WindowHandler wHandler; // Create an instance of the whandler basecode class 6 6 Object* obj; 7 7 float rotator = 0.0; 8 8 9 9 void DrawGLScene() 10 10 { 11 11 rotator +=.0001; 12 12 13 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 13 14 glLoadIdentity(); // Reset the view 14 15 16 glMatrixMode(GL_PROJECTION); // Select The Projection Matrix 17 glLoadIdentity(); 18 gluPerspective(45.0f,500/375,0.1f,100.0f); 19 gluLookAt (10*sin(rotator),5,10*cos(rotator), 0,0,0, 0,1,0); 20 15 21 obj->draw(); 22 23 16 24 17 25 SDL_GL_SwapBuffers(); // Swap the buffers
Note: See TracChangeset
for help on using the changeset viewer.