aboutsummaryrefslogtreecommitdiff
path: root/gameloop/include/window.h
blob: cfde0e9af81696a2460d6ba59a14b090f7ffaf62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include <SDL2/SDL.h>
#include <vector>
#include "gameObject.h"
#include <iostream>
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;
};