blob: e37c2dd2c36f8f5893772680e5227d6b78db43d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <ctime>
#include <list>
#include "renderer.h"
#include <cstdlib>
#include "game.h"
int main()
{
srand(time(NULL));
GLFWwindow* window = initRenderer();
// Put this in a block so game goes out of scope before we destroy the renderer
{
Game game;
game.execute(window);
}
destroyRenderer();
return 0;
}
|