diff options
Diffstat (limited to 'examples/shooter/main.cpp')
-rw-r--r-- | examples/shooter/main.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/shooter/main.cpp b/examples/shooter/main.cpp index d28af83e..12cf218d 100644 --- a/examples/shooter/main.cpp +++ b/examples/shooter/main.cpp @@ -1,22 +1,21 @@ #include <yage/yage.h> -#include <iostream> +#include "glad/glad.h" using std::cout; -int main(int argc, char** argv) +int main(int argc, char **argv) { - cout << "Starting Shooter example...\n"; - yage::Window window; - window.create("Shooter example", 1920, 1080); + window.create("Shooter example", 800, 600); + + yage::Shader shader("examples/resources/textureshader.vert", + "examples/resources/textureshader.frag"); - while(!window.shouldClose()) { + while (!window.shouldClose()) { window.pollEvents(); window.clearBuffer(); - - window.swapBuffer(); } } |