This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
SoftwareRasterizer/test/test_wm.c

27 lines
424 B
C
Raw Normal View History

#include <stdio.h>
#include "vm/vm.h"
#include <fbgfx/surface.h>
int main(int argc, char **argv) {
log_init();
input_init();
2015-01-11 23:48:03 -05:00
WINDOW *window = window_init("test_wm", 1024, 768, 320, 240);
if (!window)
return 1;
while (true) {
if (!window_do_events(window))
break;
if (input_is_key_down(KSYM_ESCAPE))
break;
window_render(window);
}
window_destroy(window);
input_destroy();
log_end();
return 0;
}