aboutsummaryrefslogtreecommitdiff
path: root/src/platform.hpp
blob: 55b91df6ef20de15261b36b803965c1ab98b00b4 (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
#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