diff options
Diffstat (limited to 'context.c')
| -rw-r--r-- | context.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/context.c b/context.c new file mode 100644 index 0000000..5e84c02 --- /dev/null +++ b/context.c @@ -0,0 +1,17 @@ +#include "macros.h" +#include "sys.h" + +#include "context.h" + +struct prge_context +init_prge(i32 width, i32 height) +{ + struct prge_context ctx = {0}; + ctx.pers = alloc_arena(megabytes(64)); + ctx.temp = alloc_arena(megabytes(16)); + ctx.in = init_input(); + ctx.width = width; + ctx.height = height; + ctx.basedir = get_basedir(&ctx.pers); + return ctx; +} |
