Changeset 1883 in orxonox.OLD for orxonox/trunk/core/orxonox.cc
- Timestamp:
- May 10, 2004, 12:36:58 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/orxonox.cc
r1879 r1883 26 26 /* class definition header */ 27 27 #include "orxonox.h" 28 #include "environment.h" 28 29 29 30 … … 70 71 { 71 72 glutInit(&argc, argv); 72 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB); 73 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); 74 glEnable(GL_DEPTH_TEST); 73 75 glutInitWindowSize(500, 500); 74 76 //glutFullScreen(); … … 93 95 glClearColor(0.0, 0.0, 0.0, 0.0); 94 96 world = new World; 97 (*world).initEnvironement(); 95 98 Player* localPlayer = new Player; 96 99 io = new InputOutput(world, localPlayer); 97 100 (*world).addPlayer(localPlayer); 98 // (*localPlayer).addIO(io);99 100 //glutIgnoreKeyRepeat(1); /* for win32 */101 //glutSetKeyRepeat(GLUT_KEY_REPEAT_OFF); /* for linux X11 */ 101 Environment *env = new Environment; 102 (*world).addEnv(env); 103 104 102 105 glutSpecialFunc(specFunc); 103 106 glutSpecialUpFunc(releaseKey); … … 144 147 break; 145 148 case 27: 149 case 'q': 146 150 quitGame(); 147 151 break; … … 208 212 void Orxonox::display() 209 213 { 210 glClear(GL_COLOR_BUFFER_BIT );214 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 211 215 212 216 glColor3f(0.0, 0.5, 0.6);
Note: See TracChangeset
for help on using the changeset viewer.