aboutsummaryrefslogtreecommitdiff
path: root/src/platform.hpp
blob: 90df65d37ae42c4d309785c001da9c032f434e93 (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<4096>& bitset, int videoScale);
    bool ProcessInput(uint8_t* keys);

  private:
    SDL_Window* window {};
    SDL_Renderer* renderer {};
};

#endif