- Timestamp:
- Dec 25, 2005, 4:07:53 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/base_object.cc
r6280 r6281 100 100 } 101 101 102 102 103 /** 103 104 * @brief queries for the ClassID of the Leaf Class (the last made class of this type -
trunk/src/world_entities/creatures/md2_creature.cc
r6253 r6281 262 262 void MD2Creature::draw () const 263 263 { 264 this->drawLODsafe(); 265 264 WorldEntity::draw(); 266 265 // this->cameraConnNode.debugDraw(0); 267 266 } -
trunk/src/world_entities/space_ships/helicopter.cc
r6222 r6281 404 404 void Helicopter::draw() const 405 405 { 406 this->drawLODsafe();406 WorldEntity::draw(); 407 407 408 408 this->getWeaponManager()->draw(); -
trunk/src/world_entities/space_ships/space_ship.cc
r6243 r6281 115 115 PRINTF(4)("SPACESHIP INIT\n"); 116 116 117 EventHandler::getInstance()->grabEvents(true);117 //EventHandler::getInstance()->grabEvents(true); 118 118 119 119 bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false; … … 264 264 void SpaceShip::draw () const 265 265 { 266 this->drawLODsafe(); 267 266 WorldEntity::draw(); 268 267 this->getWeaponManager()->draw(); 269 268 -
trunk/src/world_entities/test_entity.cc
r6278 r6281 95 95 96 96 97 98 void TestEntity::draw () const99 {100 this->drawLODsafe();101 }102 -
trunk/src/world_entities/test_entity.h
r6278 r6281 28 28 virtual void tick (float time); 29 29 virtual void collidesWith(WorldEntity* entity, const Vector& location); 30 virtual void draw () const;31 30 32 31 private: -
trunk/src/world_entities/world_entity.cc
r6222 r6281 286 286 void WorldEntity::draw() const 287 287 { 288 this->drawLODsafe(); 289 } 290 291 292 /** 293 * this functions draws the model automaticaly in multiple LOD 294 */ 295 void WorldEntity::drawLODsafe() const 296 { 297 if (!unlikely(this->models.empty())) 288 //PRINTF(0)("(%s::%s)\n", this->getClassName(), this->getName()); 289 // assert(!unlikely(this->models.empty())); 298 290 { 299 291 glMatrixMode(GL_MODELVIEW); … … 325 317 } 326 318 } 319 327 320 328 321 /** -
trunk/src/world_entities/world_entity.h
r6222 r6281 56 56 57 57 virtual void draw () const; 58 void drawLODsafe() const;59 58 60 59 virtual void collidesWith (WorldEntity* entity, const Vector& location);
Note: See TracChangeset
for help on using the changeset viewer.