aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/game.cpp
blob: 01920a9fd6a13020edf5ef44eb1e49b57abbae37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "game.h"
#include "core/renderSystem.h"
#include "facade/SdlContext.h"


Engine::Engine(int windowHeight, int window_with){
	crepe::SdlContext& ctx = crepe::SdlContext::get_instance();
}



void Engine::loop() {

	bool running = true;
	crepe::SdlContext& ctx = crepe::SdlContext::get_instance();
	RenderSystem rendering;

	while (running) {
		ctx.handleEvents(running);

		ctx.clearScreen();

		rendering.render();

		ctx.presentScreen();
	}
}