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

View file

@ -18,17 +18,13 @@
#include "kubo_wall.h"
struct kubo_wall *kubo_wall_init() {
struct kubo_wall *wall = malloc(sizeof(struct kubo_wall));
if (!wall)
return NULL;
void kubo_wall_init(struct kubo_wall *wall) {
if (!wall) {
return;
}
wall->state = KUBO_WALL_INIT;
kubo_vector2_arr_init(&wall->vertices);
return wall;
}
void kubo_wall_cleanup(struct kubo_wall *wall) {