old-Testgame/renderer/main.h

17 lines
360 B
C
Raw Permalink Normal View History

2016-08-27 19:59:52 +00:00
#ifndef __RENDERER_MAIN_H
#define __RENDERER_MAIN_H
#include <SDL.h>
class MainClass {
private:
MainClass() {};
protected:
SDL_Window* window;
virtual auto tick() -> bool = 0;
virtual auto init() -> bool = 0;
public:
MainClass(int width, int height);
virtual ~MainClass();
virtual auto start() -> void;
virtual auto stop() -> void =0;
};
#endif