summaryrefslogtreecommitdiffstats
path: root/test/test1.cpp
blob: 5de357b50d76b30caaf01a4b03f8a8c16fdd9b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "flatland.hpp"
#include "window.hpp"

using namespace flat;

int count = 0;

void loop(float);

int main()
{
    FlatWindow win(600, 900, "Stocazzo");
    flat_status status;

    init_flatland(&win, loop, status, 60);

    return 0;
}

#include <iostream>

using namespace std;

void loop(float dt)
{
    ++count;

    if (count == 100)
        quit_flatland();

    cout << "Loop number: " << count << endl;
}