diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 00:41:59 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 00:41:59 -0400 |
| commit | 7f0e8c7ef70c62814c274f110367db92f01cbb26 (patch) | |
| tree | 750bcfec923a826609034ebe9185014521400c68 /src/main.cpp | |
| parent | b53826079429939cdfbda073608cb85be8ba0738 (diff) | |
| download | therapy-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.cpp | 10 |
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 | } |
