Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5499 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Nov 7, 2005, 10:56:58 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Load_Param2 changed, to load Models with, or without scale.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.cc

    r5498 r5499  
    7575
    7676  // Model Loading
    77   LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel)
     77  LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel, false, NULL, 1.0f)
    7878      .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;
    7979
    80   // HACK
    81   LoadParam<WorldEntity>(root, "scaled-model", this, &WorldEntity::loadModelWithScale)
    82       .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;
    8380}
    8481
     
    9087 * @todo fix this, so it only has one loadModel-Function.
    9188*/
    92 void WorldEntity::loadModelWithScale(const char* fileName, float scaling)
     89void WorldEntity::loadModel(const char* fileName, float scaling)
    9390{
    9491  if (this->model)
Note: See TracChangeset for help on using the changeset viewer.