blob: 5e84c025caac43e099cb266bc9f738c8822b9e66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
|