Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4684 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Jun 24, 2005, 12:57:36 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the bounding volumes now get rendered at the right place

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/world_entity.cc

    r4682 r4684  
    201201
    202202
     203void WorldEntity::drawBVTree(int depth, int drawMode)
     204{
     205  glMatrixMode(GL_MODELVIEW);
     206  glPushMatrix();
     207  float matrix[4][4];
     208
     209  /* translate */
     210  glTranslatef (this->getAbsCoor ().x,
     211                this->getAbsCoor ().y,
     212                this->getAbsCoor ().z);
     213  /* rotate */
     214  this->getAbsDir ().matrix (matrix);
     215  glMultMatrixf((float*)matrix);
     216
     217  if (this->obbTree)
     218    this->obbTree->drawBV(depth, drawMode);
     219  glPopMatrix();
     220}
     221
    203222/**
    204223   \brief this handles incoming command messages
  • orxonox/trunk/src/world_entities/world_entity.h

    r4682 r4684  
    5555  void processDraw ();
    5656  virtual void draw ();
    57   inline void drawBVTree(int depth, int drawMode) { this->obbTree->drawBV(depth, drawMode); }
     57  void drawBVTree(int depth, int drawMode);
    5858  virtual void tick (float time);
    5959
Note: See TracChangeset for help on using the changeset viewer.