From 818f818f583881156eb279c71b1359bf2c4f3580 Mon Sep 17 00:00:00 2001 From: pryazha Date: Sun, 12 Oct 2025 15:25:23 +0500 Subject: change identation, maybe will change back, add own gl functions loading, and glx example --- context.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 context.c (limited to 'context.c') 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; +} -- cgit v1.2.3-70-g09d2