Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2005, 6:29:20 PM (20 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: removed the md2 loader stuff from the world and implemented it in the testentity class, where its more local and makes more sense

Location:
orxonox/branches/md2_loader/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/world_entities/test_entity.cc

    r4151 r4152  
    2020#include "stdincl.h"
    2121#include "model.h"
     22#include "md2Model.h"
    2223
    2324using namespace std;
     
    2728TestEntity::TestEntity () : WorldEntity()
    2829{
    29   this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);
     30 //This is for md2 test purposes only! if this is seen in the trunk: hit me :)
     31  MD2Loader* md2loader = new MD2Loader();
     32  this->model = new t3DModel;
     33  this->md2Model = new MD2Model();
     34
     35  md2loader->importMD2(model, "../data/models/jack/tris.md2", "test.bmp");
     36
     37  //this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);
    3038}
    3139
     
    5563  glMultMatrixf((float*)matrix);
    5664 
    57   this->model->draw();
     65  //this->model->draw();
     66  /* TESTGING TESTING TESTING */
     67  this->md2Model->draw(this->model);
    5868
    5969  glPopMatrix();
  • orxonox/branches/md2_loader/src/world_entities/test_entity.h

    r4151 r4152  
    44#include "world_entity.h"
    55
     6class MD2Loader;
     7class MD2Model;
     8struct t3DModel;
    69
    710class TestEntity : public WorldEntity
     
    2023  virtual void draw ();
    2124
     25 private:
     26  /* TESTING TESTING TESTING */
     27  t3DModel* model;
     28  MD2Model* md2Model;
    2229};
    2330
Note: See TracChangeset for help on using the changeset viewer.