From 08ac57ec67c50e7331685a557642fa57e8e3427d Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 21 Jan 2019 04:48:16 +0100 Subject: Add window test --- test/window_test.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/window_test.cpp (limited to 'test/window_test.cpp') diff --git a/test/window_test.cpp b/test/window_test.cpp new file mode 100644 index 0000000..70fcb1a --- /dev/null +++ b/test/window_test.cpp @@ -0,0 +1,24 @@ +#include "wrapsdl2.hpp" +#include "video.hpp" + +#include + +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; +} -- cgit v1.2.1