Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3398 in orxonox.OLD for orxonox/trunk/src/importer/objModel.cc


Ignore:
Timestamp:
Feb 6, 2005, 11:02:45 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Made the Model-class externalizable
meaning:

  1. There is now a possibility to initialize a Model without adding default vertex info
  2. Then you can add your vertices
  3. Then you can add any other model-specific stuff, like normals/texcoords/Faces
  4. For the time-being Materials have to be handled externaly, but this will change.

PATRICK: if you read this, you should be able, to implement this into the loading-screen, look at src/importer/framework.cc→main and then the big table.

with this aproach the Developer is farther away from OpenGL and closer to logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/importer/objModel.cc

    r3397 r3398  
    109109      PRINTF(0)("Resolved file %s.\n", name);
    110110 
    111   if (this->name) delete this->name;
    112   this->name = new char[strlen(name)+1];
    113   strcpy(this->name, name);
     111  this->setName(name);
    114112  if (this->material)
    115113    this->material->addTexturePath(this->objPath);
Note: See TracChangeset for help on using the changeset viewer.