First render of the physics
This commit is contained in:
11
Window.h
11
Window.h
@@ -10,18 +10,21 @@ class Window
|
||||
private:
|
||||
SDL_Window* win;
|
||||
SDL_Renderer* ren;
|
||||
SDL_Event* e;
|
||||
SDL_Event e;
|
||||
|
||||
bool Running;
|
||||
|
||||
public:
|
||||
|
||||
bool step = false;
|
||||
|
||||
Window(std::string title, int width, int height);
|
||||
virtual ~Window();
|
||||
|
||||
void Setup();
|
||||
void Draw(std::function<bool(Window*)> f);
|
||||
void Events();
|
||||
void Draw(std::function<bool(Window*)> setup, std::function<bool(Window*)> draw);
|
||||
void Events(std::function<bool(Window*)> draw);
|
||||
|
||||
void DrawCircle(SDL_Renderer*, int, int, int, bool);
|
||||
|
||||
SDL_Renderer* GetRenderer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user