28 lines
489 B
C
28 lines
489 B
C
#include <raylib.h>
|
|
#include <stdio.h>
|
|
|
|
#include "kubo_context.h"
|
|
#include "kubo_window.h"
|
|
|
|
#include "kubo_file.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
struct kubo_context context;
|
|
kubo_context_init(&context);
|
|
|
|
if (argc == 2) {
|
|
context = kubo_file_parse(argv[1]);
|
|
}
|
|
|
|
kubo_window_init();
|
|
|
|
while (!kubo_window_should_close(&context)) {
|
|
kubo_window_tick(&context);
|
|
}
|
|
|
|
kubo_window_cleanup();
|
|
kubo_context_cleanup(&context);
|
|
|
|
return 0;
|
|
}
|