diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 22:33:43 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 22:33:43 +0100 |
| commit | b1e857cf1471d1871a9396696b22fa531da98249 (patch) | |
| tree | 3923008a8653057698cb339faf6dcfa92e18364b /project-base/tests/test_window.c | |
| parent | 106bb7fcadf637cec883648916cc8d19529d6199 (diff) | |
add projbase to repo
Diffstat (limited to 'project-base/tests/test_window.c')
| -rw-r--r-- | project-base/tests/test_window.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/project-base/tests/test_window.c b/project-base/tests/test_window.c new file mode 100644 index 0000000..537ac52 --- /dev/null +++ b/project-base/tests/test_window.c @@ -0,0 +1,20 @@ +static void update_render_main(platform_window* window) +{ + +} + +s32 test_open_window(int argc, char** argv) { + platform_init(argc, argv, CONFIG_DIRECTORY); + + platform_window *window = platform_open_window("Example1", + 500, 500, 800, 600, 500, 500, update_render_main); + + if (platform_is_graphical()) { + error_if(!platform_window_is_valid(window)); + } + + platform_destroy_window(window); + platform_destroy(); + + success; +}
\ No newline at end of file |
