50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
/*
|
|
* Copyright Luka Jankovic 2025
|
|
*
|
|
* This file is part of Kubo.
|
|
*
|
|
* Kubo is free software: you can redistribute it and/or modify it under the
|
|
* terms of the GNU General Public License as published by the Free Software
|
|
* Foundation, either version 3 of the License, or (at your option) any later
|
|
* version.
|
|
*
|
|
* Kubo is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* Kubo. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <raylib.h>
|
|
#include <stdio.h>
|
|
|
|
#include "kubo_command.h"
|
|
#include "kubo_context.h"
|
|
#include "kubo_window.h"
|
|
|
|
#include "kubo_file.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
kubo_command_init();
|
|
|
|
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);
|
|
kubo_command_cleanup();
|
|
|
|
return 0;
|
|
}
|