Changeset 2157 for code/branches/objecthierarchy/src
- Timestamp:
- Nov 8, 2008, 5:26:49 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/Scene.cc
r2112 r2157 164 164 return 0; 165 165 } 166 167 void Scene::tick(float dt) 168 { 169 if (!Core::showsGraphics()) 170 { 171 // We need to update the scene nodes if we don't render 172 this->rootSceneNode_->_update(true, false); 173 } 174 } 166 175 } -
code/branches/objecthierarchy/src/orxonox/objects/Scene.h
r2112 r2157 35 35 #include "core/BaseObject.h" 36 36 #include "util/Math.h" 37 #include "objects/Tickable.h" 37 38 38 39 namespace orxonox 39 40 { 40 class _OrxonoxExport Scene : public BaseObject, public Synchronisable 41 class _OrxonoxExport Scene : public BaseObject, public Synchronisable, public Tickable 41 42 { 42 43 public: … … 64 65 { return this->bShadows_; } 65 66 67 virtual void tick(float dt); 68 66 69 private: 67 70 void addObject(BaseObject* object);
Note: See TracChangeset
for help on using the changeset viewer.