aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simplegame.cpp
blob: 0692574a5e95d25995fe886e21ebd993396bb2a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <yage.cpp>

using namespace yage;

int main()
{
    Window window;

    window.create("Simple Game", 800, 640);

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

        SpriteBatch sp;
        sp.begin();

        window.pollEvents();
        window.swapBuffer();
    }
}