2019-09-06 23:58:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2019-09-11 23:20:30 +00:00
|
|
|
#include "Input.hpp"
|
2019-09-06 23:58:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SDL_Window;
|
|
|
|
class SDL_Renderer;
|
|
|
|
class SDL_Texture;
|
|
|
|
|
|
|
|
|
|
|
|
class Platform
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Platform(char const* title, int windowWidth, int windowHeight, int textureWidth, int textureHeight);
|
|
|
|
~Platform();
|
|
|
|
void Update(void const* buffer, int pitch);
|
2019-09-11 23:20:30 +00:00
|
|
|
bool ProcessInput(uint8_t* buttons);
|
2019-09-06 23:58:57 +00:00
|
|
|
|
|
|
|
SDL_Window* window{};
|
|
|
|
SDL_Renderer* renderer{};
|
|
|
|
SDL_Texture* texture{};
|
|
|
|
};
|