summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-10 00:41:59 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-10 00:41:59 -0400
commit7f0e8c7ef70c62814c274f110367db92f01cbb26 (patch)
tree750bcfec923a826609034ebe9185014521400c68 /src/main.cpp
parentb53826079429939cdfbda073608cb85be8ba0738 (diff)
downloadtherapy-7f0e8c7ef70c62814c274f110367db92f01cbb26.tar.gz
therapy-7f0e8c7ef70c62814c274f110367db92f01cbb26.tar.bz2
therapy-7f0e8c7ef70c62814c274f110367db92f01cbb26.zip
C++11'd everything!
Also moved location information from physics components into entity.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index c552d2a..e37c2dd 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -8,7 +8,15 @@ int main()
8{ 8{
9 srand(time(NULL)); 9 srand(time(NULL));
10 10
11 Game::getInstance().execute(); 11 GLFWwindow* window = initRenderer();
12
13 // Put this in a block so game goes out of scope before we destroy the renderer
14 {
15 Game game;
16 game.execute(window);
17 }
18
19 destroyRenderer();
12 20
13 return 0; 21 return 0;
14} 22}