Changeset 4245 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 20, 2005, 11:28:43 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4228 r4245 33 33 #include "skybox.h" 34 34 #include "satellite.h" 35 #include "test_entity.h" 35 36 #include "terrain.h" 36 37 #include "light.h" … … 41 42 #include "animation_player.h" 42 43 #include "particle_engine.h" 44 #include "graphics_engine.h" 43 45 44 46 #include "command_node.h" … … 50 52 51 53 #include "substring.h" 54 55 52 56 53 57 using namespace std; … … 199 203 200 204 delete WorldInterface::getInstance(); 201 202 205 delete this->nullParent; 203 206 delete this->entities; … … 206 209 delete this->particleEngine; 207 210 TextEngine::getInstance()->flush(); 208 209 211 delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence. 210 212 //delete garbagecollecor … … 258 260 this->localCamera = new Camera(); 259 261 this->localCamera->setName ("camera"); 262 263 GraphicsEngine::getInstance()->displayFPS(true); 260 264 } 261 265 … … 388 392 this->localPlayer->addChild (this->localCamera); 389 393 394 390 395 lightMan->setAmbientColor(.1,.1,.1); 391 396 lightMan->addLight(); … … 395 400 // lightMan->setPosition(20, 10, -20); 396 401 // lightMan->setDiffuseColor(0,0,0); 397 lightMan->debug();402 //lightMan->debug(); 398 403 lightMan->setPosition(-5.0, 10.0, -40.0); 399 404 … … 416 421 glNewList (objectList, GL_COMPILE); 417 422 418 trackManager->drawGraph(.01); 419 trackManager->debug(2); 423 424 //trackManager->drawGraph(.01); 425 //trackManager->debug(2); 420 426 glEndList(); 421 427 … … 423 429 terrain->setRelCoor(Vector(0,-10,0)); 424 430 this->spawn(terrain); 431 425 432 426 433 … … 434 441 435 442 particleEngine->addConnection(emitter, system); 436 } 443 444 WorldEntity* testEntity = new TestEntity(); 445 //testEntity->setRelCoor(Vector(570, 10, -15)); 446 testEntity->setRelCoor(Vector(25, -10, -20)); 447 testEntity->setRelDir(Quaternion(M_PI, Vector(0, 1, 0))); 448 this->spawn(testEntity); 449 this->localPlayer->addChild(testEntity); 450 } 451 437 452 438 453 void World::loadDebugWorld(int worldID) … … 1136 1151 this->trackManager->tick(this->dt); 1137 1152 this->localCamera->tick(this->dt); 1153 AnimationPlayer::getInstance()->tick(this->dtS); 1154 1155 particleEngine->tick(this->dtS); 1138 1156 this->garbageCollector->tick(this->dtS); 1139 1140 AnimationPlayer::getInstance()->tick(this->dtS); 1141 particleEngine->tick(this->dtS); 1157 1158 /* actualy the Graphics Engine should tick the world not the other way around... 1159 but since we like the things not too complicated we got it this way around 1160 until there is need or time to do it the other way around. 1161 \todo: GraphicsEngine ticks world: separation of processes and data... 1162 */ 1163 GraphicsEngine::getInstance()->tick(this->dtS); 1142 1164 } 1143 1165 this->lastFrame = currentFrame;
Note: See TracChangeset
for help on using the changeset viewer.