Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2008, 3:50:44 PM (16 years ago)
Author:
rgrieder
Message:
  • removed all our FrameListeners except one (OrxListener will soon be vanished too) —> all timers are now tickable
  • some minor irrelevant changes in orxonox.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/orxonox/objects/Tickable.h

    r900 r916  
    4141#define _Tickable_H__
    4242
    43 #include <OgreFrameListener.h>
    44 
    4543#include "../OrxonoxPrereqs.h"
    4644#include "core/OrxonoxClass.h"
     
    6462    };
    6563
    66 #if 0
    67     //! The TickFrameListener calls the tick(dt) function of all Tickables every frame.
    68     class _OrxonoxExport TickFrameListener : public Ogre::FrameListener
    69     {
    70         private:
    71             /** @brief Gets called before a frame gets rendered. */
    72             bool frameStarted(const Ogre::FrameEvent &evt)
    73             {
    74                 // Iterate through all Tickables and call their tick(dt) function
    75                 for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; )
    76                     (it++)->tick(evt.timeSinceLastFrame);
    77 
    78                 return FrameListener::frameStarted(evt);
    79             }
    80     };
    81 #endif
    8264}
    8365
Note: See TracChangeset for help on using the changeset viewer.