Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4785 in orxonox.OLD


Ignore:
Timestamp:
Jul 3, 2005, 5:04:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: error in loading of PNode fixed, and the Framework starts again, (also loads the settings of the GraphicsEngine)

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r4771 r4785  
    139139
    140140  // cycling properties
    141   const TiXmlElement* element = root->FirstChildElement();
    142   while (element != NULL)
     141  if (root != NULL)
    143142  {
    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    }
    148151  }
    149152}
  • orxonox/trunk/src/subprojects/framework.cc

    r4724 r4785  
    3333  // create parser
    3434  IniParser parser (DEFAULT_CONFIG_FILE);
     35
     36  GraphicsEngine::getInstance()->initFromIniFile(&parser);
     37
     38  LightManager::getInstance();
     39
    3540  if( parser.getSection (CONFIG_SECTION_DATA) == -1)
    3641  {
     
    198203        break;
    199204      case SDL_VIDEORESIZE:
    200         GraphicsEngine::getInstance()->resolutionChanged(&event.resize);
     205        GraphicsEngine::getInstance()->resolutionChanged(event.resize);
    201206        break;
    202207      case SDL_KEYDOWN:
     
    280285  this->init();
    281286
     287  camera = new Camera();
     288  State::getInstance()->setCamera(camera, camera->getTarget());
     289  camera->setAbsCoor(Vector(10, 10, 10));
     290
    282291  this->isFinished = false;
    283292
    284293  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
    291295
    292296  // Build the font from a TGA image font.tga in the data directory
     
    298302  for (int i = 0; i < 4; i++)
    299303    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 
    307304}
    308305
Note: See TracChangeset for help on using the changeset viewer.