blob: 9020b1a90ae2a31a0541c03f5adc0fecd3d98946 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <SDL2/SDL.h>
#include <iostream>
#include <vector>
class WindowManager {
public:
WindowManager();
virtual ~WindowManager();
bool initWindow();
void destroyWindow();
SDL_Renderer * getRenderer();
private:
const int SCREEN_WIDTH = 800;
const int SCREEN_HEIGHT = 600;
SDL_Window * window = NULL;
SDL_Renderer * renderer = NULL;
};
|