Changeset 7365 in orxonox.OLD for branches/cd/src/world_entities/world_entity.cc
- Timestamp:
- Apr 25, 2006, 3:17:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd/src/world_entities/world_entity.cc
r7230 r7365 207 207 * @param depth the depth to calculate 208 208 */ 209 bool WorldEntity::buildObbTree( unsignedint depth)209 bool WorldEntity::buildObbTree(int depth) 210 210 { 211 211 if (this->obbTree) … … 214 214 if (this->models[0] != NULL) 215 215 { 216 PRINTF(4)("creating obb tree\n"); 217 218 219 this->obbTree = new OBBTree(depth, (sVec3D*)this->models[0]->getVertexArray(), this->models[0]->getVertexCount()); 216 this->obbTree = new OBBTree(depth, models[0]->getModelInfo(), this); 220 217 return true; 221 218 } 222 219 else 223 220 { 224 PRINTF( 2)("could not create obb-tree, because no model was loaded yet\n");221 PRINTF(1)("could not create obb-tree, because no model was loaded yet\n"); 225 222 this->obbTree = NULL; 226 223 return false; … … 468 465 * @param drawMode the mode to draw this entity under 469 466 */ 470 void WorldEntity::drawBVTree( unsignedint depth, int drawMode) const467 void WorldEntity::drawBVTree(int depth, int drawMode) const 471 468 { 472 469 glMatrixMode(GL_MODELVIEW); … … 480 477 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 481 478 479 482 480 if (this->obbTree) 483 481 this->obbTree->drawBV(depth, drawMode); 482 483 484 484 glPopMatrix(); 485 485 }
Note: See TracChangeset
for help on using the changeset viewer.