Changeset 2848 in orxonox.OLD for orxonox/trunk/importer
- Timestamp:
- Nov 13, 2004, 12:49:28 AM (20 years ago)
- Location:
- orxonox/trunk/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/array.cc
r2847 r2848 40 40 delete last; 41 41 } 42 delete [] array; 42 if (finalized) 43 delete [] array; 43 44 } 44 45 -
orxonox/trunk/importer/framework.cc
r2847 r2848 5 5 WindowHandler wHandler; // Create an instance of the whandler basecode class 6 6 Object* obj; 7 Object* obj2; 8 Object* obj3; 7 9 float rotator = 0.0; 8 10 GLfloat whiteLight[] = {1.0, 1.0, 0.0,1.0}; … … 50 52 else if (argc>=2) 51 53 obj = new Object(argv[1]); 52 else obj = new Object(); 54 else 55 obj = new Object(); 56 53 57 GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0}; 54 58 glLightfv(GL_LIGHT0, GL_DIFFUSE, whiteLight); … … 89 93 90 94 // Kill the GL & SDL screens 95 delete obj; 91 96 wHandler.KillGLWindow(); 92 97 // And quit -
orxonox/trunk/importer/object.cc
r2847 r2848 194 194 } 195 195 196 // case vt196 // case VertexTextureCoordinate 197 197 else if (!strncmp(Buffer, "vt ", 2)) 198 198 { 199 199 readVertexTexture(Buffer+3); 200 200 } 201 // case group 202 else if (!strncmp(Buffer, "g", 1)) 203 { 204 printf("ERROR GROUPS NOT IMPLEMENTED YET\n"); 205 } 201 206 } 202 207 OBJ_FILE->close();
Note: See TracChangeset
for help on using the changeset viewer.