Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2005, 10:15:57 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: modified the MD2Model class so it is able to draw the model, very bad style, just debugging the code. Some worse hacks in world class

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

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/story_entities/world.cc

    r4072 r4138  
    5050
    5151#include "substring.h"
     52
     53#include "md2Model.h"
    5254
    5355using namespace std;
     
    473475  terrain->setRelCoor(Vector(0,-10,0));
    474476  this->spawn(terrain);
     477 
     478 
     479
     480  //This is for md2 test purposes only! if this is seen in the trunk: hit me :)
     481  MD2Loader* md2loader = new MD2Loader();
     482  this->model = new t3DModel;
     483  this->md2Model = new MD2Model();
     484 
     485  md2loader->importMD2(model, "test.md2", "test.bmp");
    475486
    476487}
     
    931942    }
    932943  delete iterator;
     944
     945  /* TESTGING TESTING TESTING */
     946  this->md2Model->draw(this->model);
    933947 
    934948  glCallList (objectList);
  • orxonox/branches/md2_loader/src/story_entities/world.h

    r4015 r4138  
    2323class GarbageCollector;
    2424class Text;
     25
     26/* TESTING TESTING TESTING */
     27struct t3DModel;
     28class MD2Model;
    2529
    2630//! The game world Interface
     
    118122  GarbageCollector* garbageCollector; //!< reference to the garbage  collector
    119123
     124  /* TESTING TESTING TESTING */
     125  t3DModel* model;
     126  MD2Model* md2Model;
     127
     128
    120129  /* function for main-loop */
    121130  void mainLoop ();
Note: See TracChangeset for help on using the changeset viewer.