Changeset 9685 in orxonox.OLD for branches/new_class_id/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Aug 22, 2006, 1:16:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/graphics_engine.cc
r9406 r9685 45 45 #include "util/loading/load_param.h" 46 46 #include "util/loading/factory.h" 47 #include "class_list.h"48 47 49 48 #ifdef __WIN32__ … … 54 53 SHELL_COMMAND(fps, GraphicsEngine, toggleFPSdisplay); 55 54 55 NewObjectListDefinition(GraphicsEngine); 56 56 57 /** 57 58 * @brief standard constructor … … 59 60 GraphicsEngine::GraphicsEngine () 60 61 { 61 this-> setClassID(CL_GRAPHICS_ENGINE, "GraphicsEngine");62 this->registerObject(this, GraphicsEngine::_objectList); 62 63 this->setName("GraphicsEngine"); 63 64 … … 590 591 591 592 // 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 } 593 for (NewObjectList<GraphicsEffect>::const_iterator it = GraphicsEffect::objectList().begin(); 594 it != GraphicsEffect::objectList().end(); 595 ++it) 596 (*it)->tick(dt); 598 597 } 599 598 … … 688 687 { 689 688 case EV_VIDEO_RESIZE: 690 691 692 } 693 } 689 this->resolutionChanged(event.resize); 690 break; 691 } 692 }
Note: See TracChangeset
for help on using the changeset viewer.