diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2023-10-21 21:56:01 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2023-10-21 21:57:47 +0530 |
commit | 31e3a562fe4a44f4367e4398745e48b6d5f688ba (patch) | |
tree | a77bf58f90b69b177930907d8d42c6504487d63a /src/platform.hpp | |
parent | 6f5020bb6c198e475982e207179605b314b1afbe (diff) |
use bits for graphics buffer
Diffstat (limited to 'src/platform.hpp')
-rw-r--r-- | src/platform.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platform.hpp b/src/platform.hpp index 55b91df..90df65d 100644 --- a/src/platform.hpp +++ b/src/platform.hpp @@ -2,6 +2,8 @@ #define PLATFORM_HPP_ #include <cstdint> +#include <bitset> + #include <SDL.h> class Platform { @@ -12,13 +14,12 @@ class Platform { ~Platform(); public: - void Update(const void* buffer, int pitch); + void Update(const std::bitset<4096>& bitset, int videoScale); bool ProcessInput(uint8_t* keys); private: SDL_Window* window {}; SDL_Renderer* renderer {}; - SDL_Texture* texture {}; }; #endif |