aboutsummaryrefslogtreecommitdiff
path: root/gameloop/include/window.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-09-18 15:11:04 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-09-18 15:11:04 +0200
commit61e382cedd71127033f91551298607e2e78c3809 (patch)
treedb946bf0dac5cbb504ac7875fb323243d2a6db74 /gameloop/include/window.h
parent7eafe293868d5d3875d0bec147e22a266e4ec86c (diff)
gameloop save
Diffstat (limited to 'gameloop/include/window.h')
-rw-r--r--gameloop/include/window.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/gameloop/include/window.h b/gameloop/include/window.h
index b4f2b78..cfde0e9 100644
--- a/gameloop/include/window.h
+++ b/gameloop/include/window.h
@@ -1,20 +1,18 @@
#pragma once
#include <SDL2/SDL.h>
+#include <vector>
+#include "gameObject.h"
+#include <iostream>
class WindowManager{
public:
WindowManager();
virtual ~WindowManager();
- bool loadMedia();
- void update();
- bool init();
- void close();
+ void render(std::vector<GameObject*> objects);
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;