Init, drawing walls semi-works
This commit is contained in:
parent
befe4a84c9
commit
09cc69d38d
8 changed files with 287 additions and 0 deletions
28
kubo_wall.h
Normal file
28
kubo_wall.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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_STARTED,
|
||||
KUBO_WALL_DONE
|
||||
};
|
||||
|
||||
struct kubo_wall {
|
||||
Vector2 *vertices;
|
||||
unsigned int num_vertices;
|
||||
unsigned int num_vertices_alloc;
|
||||
|
||||
enum kubo_wall_state wall_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
|
||||
Loading…
Add table
Add a link
Reference in a new issue