Changeset 2938 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 21, 2004, 1:34:16 PM (20 years ago)
- Location:
- orxonox/trunk/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/framework.cc
r2936 r2938 5 5 void DrawGLScene() 6 6 { 7 if (dist > zoomTo +.1) 8 dist -= .1; 9 else if (dist < zoomTo -.1) 10 dist += .1; 7 11 rotatorP += rotatorV; 8 12 … … 65 69 rotatorV = .0; 66 70 dist = 5.0; 71 zoomTo = dist; 67 72 // Build the font from a TGA image font.tga in the data directory 68 73 // Hide the mouse cursor … … 88 93 { 89 94 printf("MouseWheel up\n"); 90 dist*= .5;95 zoomTo *= .5; 91 96 } 92 97 else if (event.button.button == 5) 93 98 { 94 99 printf("MouseWheel down\n"); 95 dist*= 2;100 zoomTo *= 2; 96 101 } 97 102 else -
orxonox/trunk/importer/framework.h
r2933 r2938 9 9 float rotatorV; 10 10 float dist; 11 float zoomTo; 11 12 12 13 WindowHandler wHandler; // Create an instance of the whandler basecode class
Note: See TracChangeset
for help on using the changeset viewer.