aboutsummaryrefslogtreecommitdiff
path: root/mwe/gameloop/include/window.h
blob: 6806a268e35c8eef6100692f4f2207dd656c38e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "gameObject.h"
#include <SDL2/SDL.h>
#include <iostream>
#include <vector>
class WindowManager {
public:
	WindowManager();
	virtual ~WindowManager();
	void render(std::vector<GameObject *> objects);
	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;
};