Gered
648832d939
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
27 lines
432 B
C
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;
|
|
}
|