diff options
| author | pryazha <pryadeiniv@mail.ru> | 2025-10-12 15:25:23 +0500 |
|---|---|---|
| committer | pryazha <pryadeiniv@mail.ru> | 2025-10-12 15:25:23 +0500 |
| commit | 818f818f583881156eb279c71b1359bf2c4f3580 (patch) | |
| tree | 874e8d2fdc5334bc70925aa87923791f7662ddb8 /context.c | |
| parent | 3cf987880e384140bf996c37f820ddeea38bc60e (diff) | |
change identation, maybe will change back, add own gl functions loading, and glx example
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; +} |
