Source

pyGAP / game / inc / platform / game_loop.h

Full commit
#ifndef _PLATFORM_GAME_LOOP_
#define _PLATFORM_GAME_LOOP_

//#include "platform/renderer.h"
//#include "platform/clock.h"


namespace platform {
class Renderer;
class Clock;
class CommandManager;


class GameLoop
{
public:
    GameLoop() {}
    virtual ~GameLoop() {}

    virtual void init() {};
    virtual int loop(Renderer* renderer, Clock* clock, CommandManager* commands) = 0;
    virtual void finish() {};

private:
    GameLoop(const GameLoop&);
    GameLoop& operator=(const GameLoop&);
};


} // namespace platform


#endif // _PLATFORM_GAME_LOOP_