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_context.h
Normal file
28
kubo_context.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef KUBO_CONTEXT_H
|
||||
#define KUBO_CONTEXT_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "kubo_wall.h"
|
||||
|
||||
#define KUBO_CONTEXT_NUM_WALLS_ALLOC 4
|
||||
|
||||
struct kubo_context {
|
||||
bool exit_pending;
|
||||
|
||||
struct kubo_wall **walls;
|
||||
unsigned int num_walls;
|
||||
unsigned int num_walls_alloc;
|
||||
};
|
||||
|
||||
struct kubo_context *kubo_context_init();
|
||||
void kubo_context_cleanup(struct kubo_context *context);
|
||||
|
||||
bool kubo_context_add_wall(struct kubo_context *context,
|
||||
struct kubo_wall *wall);
|
||||
|
||||
struct kubo_wall *kubo_context_get_pending_wall(struct kubo_context *context);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue