summaryrefslogtreecommitdiffstats
path: root/test/window_test.cpp
blob: 70fcb1a7382dc55781a2f9fb91f01157a32c6c9f (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
#include "wrapsdl2.hpp"
#include "video.hpp"

#include <iostream>

int main(int argc, char *argv[]) {
    wrapsdl2::initialize();

    {
        wrapsdl2::window win("Window Test", 800, 600);

        std::cout << "press ENTER to show the window" << std::endl;
        std::cin.get();

        win.show();
        win.update();

        std::cout << "press ENTER to quit" << std::endl;
        std::cin.get();
    }

    wrapsdl2::quit();
    return 0;
}