diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-25 12:27:32 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-25 12:27:32 +0000 |
commit | 022a4bdd81332ce67d799be6a06afb42ae45ac2e (patch) | |
tree | 52aab4ac82cd99d49a94eff8734ec904e0adde54 /examples/shooter | |
parent | 16915d86d4b866c1fcce7523b0d34e8343ff52fc (diff) | |
download | YAGE-022a4bdd81332ce67d799be6a06afb42ae45ac2e.tar.gz YAGE-022a4bdd81332ce67d799be6a06afb42ae45ac2e.zip |
[Build] Added examples and improved build for them.
Diffstat (limited to 'examples/shooter')
-rw-r--r-- | examples/shooter/main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/shooter/main.cpp b/examples/shooter/main.cpp new file mode 100644 index 00000000..d28af83e --- /dev/null +++ b/examples/shooter/main.cpp @@ -0,0 +1,22 @@ +#include <yage/yage.h> + +#include <iostream> + +using std::cout; + +int main(int argc, char** argv) +{ + cout << "Starting Shooter example...\n"; + + yage::Window window; + window.create("Shooter example", 1920, 1080); + + while(!window.shouldClose()) { + window.pollEvents(); + window.clearBuffer(); + + + + window.swapBuffer(); + } +} |