blob: b4f2b78902d272f10b3a9a0e86aeb07086d33625 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <SDL2/SDL.h>
class WindowManager{
public:
WindowManager();
virtual ~WindowManager();
bool loadMedia();
void update();
bool init();
void close();
bool initWindow();
void destroyWindow();
SDL_Renderer* getRenderer();
private:
//Loads media
//Frees media and shuts down SDL
const int SCREEN_WIDTH = 800;
const int SCREEN_HEIGHT = 600;
SDL_Window* window = NULL;
SDL_Renderer* renderer = NULL;
};
|