First render of the physics

This commit is contained in:
2022-11-02 07:44:57 +01:00
parent 303b2cffb1
commit ebd188f1b0
8 changed files with 74 additions and 20 deletions

View File

@@ -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();