Changeset 2933 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 20, 2004, 7:00:25 PM (20 years ago)
- Location:
- orxonox/trunk/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/framework.cc
r2932 r2933 1 1 #include "framework.h" 2 2 3 int verbose = 4;3 int verbose = 1; 4 4 5 5 void DrawGLScene() … … 12 12 glMatrixMode(GL_PROJECTION); 13 13 glLoadIdentity(); 14 gluPerspective(45.0f,500/375,0.1f, 100.0f);15 gluLookAt ( 5*sin(rotatorP),7.5,5*cos(rotatorP), 0,0,0, 0,1,0);14 gluPerspective(45.0f,500/375,0.1f,dist * 5.0f); 15 gluLookAt (dist*sin(rotatorP),dist ,dist*cos(rotatorP), 0,0,0, 0,1,0); 16 16 17 17 obj->draw(); … … 62 62 rotatorP = .0; 63 63 rotatorV = .0; 64 dist = 5.0; 64 65 // Build the font from a TGA image font.tga in the data directory 65 66 // Hide the mouse cursor … … 83 84 case SDL_MOUSEBUTTONDOWN: 84 85 if (event.button.button == 4) 85 printf("MouseWheel up\n"); 86 { 87 printf("MouseWheel up\n"); 88 dist *= .5; 89 } 86 90 else if (event.button.button == 5) 87 printf("MouseWheel down\n"); 91 { 92 printf("MouseWheel down\n"); 93 dist *= 2; 94 } 88 95 else 89 96 { -
orxonox/trunk/importer/framework.h
r2932 r2933 8 8 float rotatorP; 9 9 float rotatorV; 10 float dist; 10 11 11 12 WindowHandler wHandler; // Create an instance of the whandler basecode class
Note: See TracChangeset
for help on using the changeset viewer.