separate command handling
This commit is contained in:
parent
90db87bec9
commit
0be3768867
11 changed files with 143 additions and 52 deletions
22
main.c
22
main.c
|
|
@ -1,12 +1,33 @@
|
|||
/*
|
||||
* 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);
|
||||
|
|
@ -23,6 +44,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
kubo_window_cleanup();
|
||||
kubo_context_cleanup(&context);
|
||||
kubo_command_cleanup();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue