Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r9406 r9869 17 17 18 18 #include "graphics_engine.h" 19 #include "util/loading/resource_manager.h"20 19 #include "state.h" 21 20 … … 28 27 #include "debug.h" 29 28 30 #include " util/preferences.h"29 #include "parser/preferences/preferences.h" 31 30 #include "substring.h" 32 31 #include "text.h" … … 35 34 #include "texture.h" 36 35 37 #include "effects/graphics_effect.h" 38 #include "effects/fog_effect.h" 39 #include "effects/lense_flare.h" 36 #include "graphics_effect.h" 40 37 41 38 #include "shell_command.h" 42 39 #include "loading/load_param_xml.h" 43 40 44 41 #include "parser/tinyxml/tinyxml.h" 45 42 #include "util/loading/load_param.h" 46 43 #include "util/loading/factory.h" 47 #include "class_list.h"48 44 49 45 #ifdef __WIN32__ … … 54 50 SHELL_COMMAND(fps, GraphicsEngine, toggleFPSdisplay); 55 51 52 ObjectListDefinition(GraphicsEngine); 53 56 54 /** 57 55 * @brief standard constructor … … 59 57 GraphicsEngine::GraphicsEngine () 60 58 { 61 this-> setClassID(CL_GRAPHICS_ENGINE, "GraphicsEngine");59 this->registerObject(this, GraphicsEngine::_objectList); 62 60 this->setName("GraphicsEngine"); 63 61 … … 117 115 { 118 116 LoadParamXML(root, "GraphicsEffect", this, GraphicsEngine, loadGraphicsEffects) 119 .describe("loads a graphics effect");117 .describe("loads a graphics effect"); 120 118 } 121 119 … … 590 588 591 589 // tick the graphics effects 592 if (this->graphicsEffects != NULL || (this->graphicsEffects = ClassList::getList(CL_GRAPHICS_EFFECT)) != NULL) 593 { 594 std::list<BaseObject*>::const_iterator it; 595 for (it = this->graphicsEffects->begin(); it != this->graphicsEffects->end(); it++) 596 dynamic_cast<GraphicsEffect*>(*it)->tick(dt); 597 } 590 for (ObjectList<GraphicsEffect>::const_iterator it = GraphicsEffect::objectList().begin(); 591 it != GraphicsEffect::objectList().end(); 592 ++it) 593 (*it)->tick(dt); 598 594 } 599 595 … … 688 684 { 689 685 case EV_VIDEO_RESIZE: 690 691 692 } 693 } 686 this->resolutionChanged(event.resize); 687 break; 688 } 689 }
Note: See TracChangeset
for help on using the changeset viewer.