Changeset 3211 in orxonox.OLD for orxonox/trunk/src/importer
- Timestamp:
- Dec 18, 2004, 12:56:24 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/importer/framework.cc
r3208 r3211 40 40 // glRotatef (180, dir.x, dir.y, dir.z); 41 41 glMultMatrixf (*matQ); 42 obj->draw(); 42 if (obj) 43 obj->draw(); 43 44 44 45 glPopMatrix(); … … 203 204 } 204 205 break; 206 207 208 case SDL_KEYDOWN: 209 switch (event.key.keysym.sym) 210 { 211 case SDLK_x: 212 delete obj; 213 obj = NULL; 214 break; 215 case SDLK_c: 216 if (!obj) 217 obj = new Object(argv[1]); 218 break; 219 } 220 break; 205 221 206 222 // If a quit event was recieved … … 224 240 225 241 // Kill the GL & SDL screens 226 delete obj; 242 if (obj) 243 delete obj; 227 244 wHandler.KillGLWindow(); 228 245 // And quit
Note: See TracChangeset
for help on using the changeset viewer.