blob: 872f84d0e315f4bed93df403e0f99e9c818768f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef PLATFORM_HPP_
#define PLATFORM_HPP_
#include <cstdint>
#include <bitset>
#include <SDL.h>
class Platform {
public:
Platform(
const char* title, int windowWidth, int windowHeight, int textureWidth, int textureHeight
);
~Platform();
public:
void Update(const std::bitset<2048>& bitset, int videoScale);
bool ProcessInput(std::bitset<16>* keys);
private:
SDL_Window* window {};
SDL_Renderer* renderer {};
};
#endif
|