Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7005 in orxonox.OLD for branches/current_cd/src/world_entities


Ignore:
Timestamp:
Feb 3, 2006, 9:34:57 AM (19 years ago)
Author:
patrick
Message:

cd: work flush

Location:
branches/current_cd/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/current_cd/src/world_entities/world_entity.cc

    r6911 r7005  
    211211  if (this->models[0] != NULL)
    212212  {
    213     this->obbTree = new OBBTree(depth, models[0]->getModelInfo());
     213    this->obbTree = new OBBTree(depth, models[0]->getModelInfo(), this);
    214214    return true;
    215215  }
     
    461461 * @param drawMode the mode to draw this entity under
    462462 */
    463 void WorldEntity::drawBVTree(unsigned int depth, int drawMode) const
     463void WorldEntity::drawBVTree(int depth, int drawMode) const
    464464{
    465465  glMatrixMode(GL_MODELVIEW);
     
    473473  glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    474474
     475
    475476  if (this->obbTree)
    476477    this->obbTree->drawBV(depth, drawMode);
     478
     479
    477480  glPopMatrix();
    478481}
  • branches/current_cd/src/world_entities/world_entity.h

    r6911 r7005  
    22 * @file world_entity.h
    33 * Definition of the basic WorldEntity
    4 */
     4 */
    55
    66#ifndef _WORLD_ENTITY_H
     
    3939  void setModel(Model* model, unsigned int modelNumber = 0);
    4040  Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; };
    41   bool buildObbTree(int depth);
    4241
    4342  inline void loadMD2Texture(const char* fileName) { this->md2TextureFileName = fileName; }
     
    5453  virtual void draw () const;
    5554
     55  bool buildObbTree(int depth);
    5656  virtual void collidesWith (WorldEntity* entity, const Vector& location);
    57   void drawBVTree(unsigned int depth, int drawMode) const;
    5857  /** @returns a reference to the obb tree of this worldentity */
    5958  inline BVTree* getOBBTree() const { return this->obbTree; };
    60 
     59  void drawBVTree(int depth, int drawMode) const;
    6160
    6261  void debugWE() { this->debugEntity(); }
Note: See TracChangeset for help on using the changeset viewer.