aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shooter/main.cpp
blob: 12cf218d0913194ee561f61f78a4916be188bd69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <yage/yage.h>

#include "glad/glad.h"

using std::cout;

int main(int argc, char **argv)
{
    yage::Window window;
    window.create("Shooter example", 800, 600);

    yage::Shader shader("examples/resources/textureshader.vert",
                        "examples/resources/textureshader.frag");

    while (!window.shouldClose()) {
        window.pollEvents();
        window.clearBuffer();

        window.swapBuffer();
    }
}