kubo/kubo_wall.h

28 lines
510 B
C

#ifndef KUBO_WALL_H
#define KUBO_WALL_H
#include <stdlib.h>
#include <raylib.h>
#define KUBO_WALL_INIT_VERTICES 4
enum kubo_wall_state {
KUBO_WALL_INIT,
KUBO_WALL_DRAWING,
KUBO_WALL_DONE
};
struct kubo_wall {
Vector2 *vertices;
unsigned int num_vertices;
unsigned int num_vertices_alloc;
enum kubo_wall_state state;
};
struct kubo_wall *kubo_wall_init();
void kubo_wall_cleanup(struct kubo_wall *wall);
bool kubo_wall_append(struct kubo_wall *wall, Vector2 vertex);
#endif