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
Gered 648832d939 bit of src tree shuffling. main.cpp to be replaced with test programs
full disclosure: i'm a bit unsure of what is the best way to do this
at this point in time. the end goal with this project is that it
becomes a library to be used by other apps (of course), but need tests
to test various library functionality. unsure how best to organize this
with cmake (and since i'm using clion, i kind of would prefer it works
nicely and integrated with the ide...).

i figure this is going to be a trial and error approach that will
evolve over the next while
2015-01-11 22:52:55 -05:00

27 lines
432 B
C

#include <stdio.h>
#include "vm/vm.h"
#include <fbgfx/surface.h>
int main(int argc, char **argv) {
log_init();
input_init();
WINDOW *window = window_init("Rasterizer Test", 1280, 960, 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;
}