loading scene from file
This commit is contained in:
parent
8554b33cd6
commit
024349a59f
7 changed files with 44 additions and 29 deletions
12
kubo_wall.c
12
kubo_wall.c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue