summary refs log tree commit diff stats
path: root/src/main.cpp
blob: d51da7d11734a0b9c772e00633374a02f2886ef3 (plain) (blame)
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
#include <ctime>
#include <list>
#include <cstdlib>
#include "renderer.h"
#include "muxer.h"
#include "game.h"

int main()
{
  srand(time(NULL));

  GLFWwindow* window = initRenderer();
  glfwSwapInterval(1);

  initMuxer();

  // Put this in a block so game goes out of scope before we destroy the renderer
  {
    Game game {window};
    game.execute();
  }

  destroyMuxer();
  destroyRenderer();

  return 0;
}