Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7055 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Feb 6, 2006, 2:52:14 PM (19 years ago)
Author:
patrick
Message:

trunk: md2 scaling patch

Location:
trunk/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/md2Model.cc

    r6645 r7055  
    7575  \brief simple constructor initializing all variables
    7676*/
    77 MD2Model::MD2Model(const char* modelFileName, const char* skinFileName)
     77MD2Model::MD2Model(const char* modelFileName, const char* skinFileName, float scale)
    7878{
    7979  /* this creates the data container via ressource manager */
     
    8282    PRINTF(0)("The model was not found, MD2Model Loader finished abnormaly. Update the data-repos\n");
    8383
     84  this->data->scaleFactor = scaleFactor;
    8485  this->scaleFactor = this->data->scaleFactor;
    8586
  • trunk/src/lib/graphics/importer/md2Model.h

    r6222 r7055  
    178178{
    179179 public:
    180   MD2Data(const char* modelFileName, const char* skinFileName);
     180   MD2Data(const char* modelFileName, const char* skinFileName);
    181181  virtual ~MD2Data();
    182182
     
    212212
    213213public:
    214   MD2Model(const char* modelFileName, const char* skinFileName = NULL);
     214  MD2Model(const char* modelFileName, const char* skinFileName = NULL, float scale = 1.0f);
    215215  virtual ~MD2Model();
    216216
Note: See TracChangeset for help on using the changeset viewer.