First Commit

This commit is contained in:
2022-10-30 23:44:30 +01:00
commit fdd1e361c0
11 changed files with 251 additions and 0 deletions

29
Window.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef WINDOW_H
#define WINDOW_H
#include <SDL2/SDL.h>
#include <string>
#include <functional>
class Window
{
private:
SDL_Window* win;
SDL_Renderer* ren;
SDL_Event* e;
bool Running;
public:
Window(std::string title, int width, int height);
virtual ~Window();
void Setup();
void Draw(std::function<bool(Window*)> f);
void Events();
SDL_Renderer* GetRenderer();
};
#endif /* WINDOW_H */