Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

sdl_ctimer.cpp

Go to the documentation of this file.
00001 #include "ctimer.h"
00002 
00003 #include <SDL.h>
00004 
00012 namespace SDLDriver {
00013 
00015 class CTimerSystemSDL : public CTimerSystem {
00016 private:
00017   CTimerSystemSDL() { }
00018 
00019 public:
00020   unsigned long get_ticks() { return SDL_GetTicks(); }
00021 
00022   friend class CTimerSystemFactorySDL;
00023 };
00024 
00026 class CTimerSystemFactorySDL : public CTimerSystemFactory {
00027   virtual CTimerSystem *make_singleton() {
00028     return new CTimerSystemSDL();
00029   }
00030 };
00031 
00032   CTimerSystemFactory *make_timer_system_factory() {
00033     return new CTimerSystemFactorySDL();
00034   }
00035 }

Generated on Wed Aug 27 11:58:41 2003 for GFW by doxygen 1.3.3