#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; }