diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/shooter/main.cpp | 2 | ||||
-rw-r--r-- | examples/simplegame/main.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/shooter/main.cpp b/examples/shooter/main.cpp index e38bf53b..5d80c350 100644 --- a/examples/shooter/main.cpp +++ b/examples/shooter/main.cpp @@ -11,6 +11,7 @@ using std::cout; int main(int argc, char **argv) { + yage::init(); yage::Window window; window.create("Shooter example", 800, 600); @@ -166,4 +167,5 @@ int main(int argc, char **argv) window.swapBuffer(); } + yage::quit(); } diff --git a/examples/simplegame/main.cpp b/examples/simplegame/main.cpp index ed6b78f3..bea3bc8d 100644 --- a/examples/simplegame/main.cpp +++ b/examples/simplegame/main.cpp @@ -18,7 +18,7 @@ using namespace yage; int main() { - + yage::init(); Logger logger; srand(time(nullptr)); Window window; @@ -109,4 +109,5 @@ int main() } i = (i + 1) % 30; } + yage::quit(); } |