- Timestamp:
- Jul 3, 2005, 5:04:20 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4771 r4785 139 139 140 140 // cycling properties 141 const TiXmlElement* element = root->FirstChildElement(); 142 while (element != NULL) 141 if (root != NULL) 143 142 { 144 LoadParam<PNode>(root, "parent", this, &PNode::addChild, true) 145 .describe("adds a new Child to the current Node."); 146 147 element = element->NextSiblingElement(); 143 const TiXmlElement* element = root->FirstChildElement(); 144 while (element != NULL) 145 { 146 LoadParam<PNode>(root, "parent", this, &PNode::addChild, true) 147 .describe("adds a new Child to the current Node."); 148 149 element = element->NextSiblingElement(); 150 } 148 151 } 149 152 } -
orxonox/trunk/src/subprojects/framework.cc
r4724 r4785 33 33 // create parser 34 34 IniParser parser (DEFAULT_CONFIG_FILE); 35 36 GraphicsEngine::getInstance()->initFromIniFile(&parser); 37 38 LightManager::getInstance(); 39 35 40 if( parser.getSection (CONFIG_SECTION_DATA) == -1) 36 41 { … … 198 203 break; 199 204 case SDL_VIDEORESIZE: 200 GraphicsEngine::getInstance()->resolutionChanged( &event.resize);205 GraphicsEngine::getInstance()->resolutionChanged(event.resize); 201 206 break; 202 207 case SDL_KEYDOWN: … … 280 285 this->init(); 281 286 287 camera = new Camera(); 288 State::getInstance()->setCamera(camera, camera->getTarget()); 289 camera->setAbsCoor(Vector(10, 10, 10)); 290 282 291 this->isFinished = false; 283 292 284 293 this->lastFrame = 0; 285 // Create a new OpenGL window with the title "Cone3D Basecode" at 286 // 640x480x32, fullscreen and check for errors along the way 287 GraphicsEngine::getInstance(); 288 289 LightManager::getInstance(); 290 glEnable(GL_TEXTURE_2D); 294 291 295 292 296 // Build the font from a TGA image font.tga in the data directory … … 298 302 for (int i = 0; i < 4; i++) 299 303 backgroundColor[i] = 0; 300 301 camera = new Camera();302 303 State::getInstance()->setCamera(camera, camera->getTarget());304 305 camera->setAbsCoor(Vector(10, 10, 10));306 307 304 } 308 305
Note: See TracChangeset
for help on using the changeset viewer.