loading scene from file

This commit is contained in:
Luka Jankovic 2025-07-25 15:30:08 +02:00
parent 8554b33cd6
commit 024349a59f
7 changed files with 44 additions and 29 deletions

8
main.c
View file

@ -8,13 +8,13 @@
int main(int argc, char *argv[]) {
if (argc == 2) {
kubo_file_parse(argv[1]);
}
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)) {