diff options
Diffstat (limited to 'src/platform.hpp')
-rw-r--r-- | src/platform.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/platform.hpp b/src/platform.hpp new file mode 100644 index 0000000..55b91df --- /dev/null +++ b/src/platform.hpp @@ -0,0 +1,24 @@ +#ifndef PLATFORM_HPP_ +#define PLATFORM_HPP_ + +#include <cstdint> +#include <SDL.h> + +class Platform { + public: + Platform( + const char* title, int windowWidth, int windowHeight, int textureWidth, int textureHeight + ); + ~Platform(); + + public: + void Update(const void* buffer, int pitch); + bool ProcessInput(uint8_t* keys); + + private: + SDL_Window* window {}; + SDL_Renderer* renderer {}; + SDL_Texture* texture {}; +}; + +#endif |