Source

pyGAP / game / inc / platform / game_loop.h

Full commit
#ifndef _PLATFORM_GAME_LOOP_
#define _PLATFORM_GAME_LOOP_


namespace platform {
class Renderer;
class Clock;


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

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

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


} // namespace platform


#endif // _PLATFORM_GAME_LOOP_