Changeset 4152 in orxonox.OLD for orxonox/branches
- Timestamp:
- May 10, 2005, 6:29:20 PM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/story_entities/world.cc
r4147 r4152 484 484 terrain->setRelCoor(Vector(0,-10,0)); 485 485 this->spawn(terrain); 486 487 488 489 //This is for md2 test purposes only! if this is seen in the trunk: hit me :) 490 MD2Loader* md2loader = new MD2Loader(); 491 this->model = new t3DModel; 492 this->md2Model = new MD2Model(); 493 494 md2loader->importMD2(model, "../data/models/jack/tris.md2", "test.bmp"); 495 496 } 486 } 487 497 488 498 489 void World::loadDebugWorld(int worldID) … … 951 942 } 952 943 delete iterator; 953 954 /* TESTGING TESTING TESTING */955 this->md2Model->draw(this->model);956 944 957 945 glCallList (objectList); -
orxonox/branches/md2_loader/src/story_entities/world.h
r4138 r4152 24 24 class Text; 25 25 26 /* TESTING TESTING TESTING */27 struct t3DModel;28 class MD2Model;29 26 30 27 //! The game world Interface … … 122 119 GarbageCollector* garbageCollector; //!< reference to the garbage collector 123 120 124 /* TESTING TESTING TESTING */125 t3DModel* model;126 MD2Model* md2Model;127 128 129 121 /* function for main-loop */ 130 122 void mainLoop (); -
orxonox/branches/md2_loader/src/world_entities/test_entity.cc
r4151 r4152 20 20 #include "stdincl.h" 21 21 #include "model.h" 22 #include "md2Model.h" 22 23 23 24 using namespace std; … … 27 28 TestEntity::TestEntity () : WorldEntity() 28 29 { 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); 30 38 } 31 39 … … 55 63 glMultMatrixf((float*)matrix); 56 64 57 this->model->draw(); 65 //this->model->draw(); 66 /* TESTGING TESTING TESTING */ 67 this->md2Model->draw(this->model); 58 68 59 69 glPopMatrix(); -
orxonox/branches/md2_loader/src/world_entities/test_entity.h
r4151 r4152 4 4 #include "world_entity.h" 5 5 6 class MD2Loader; 7 class MD2Model; 8 struct t3DModel; 6 9 7 10 class TestEntity : public WorldEntity … … 20 23 virtual void draw (); 21 24 25 private: 26 /* TESTING TESTING TESTING */ 27 t3DModel* model; 28 MD2Model* md2Model; 22 29 }; 23 30
Note: See TracChangeset
for help on using the changeset viewer.