summaryrefslogtreecommitdiff
path: root/prge.h
blob: 90271b300b3808c9eb52b1c54137d8a8a12d34bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef PRGE_H
#define PRGE_H

#include "prb.h"

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"

#include "prge_types.h"
#include "prge_window.h"
#include "prge_input.h"
#include "prge_texture.h"
#include "prge_shader.h"
#include "prge_model.h"
#include "prge_camera.h"
#include "prge_draw.h"
#include "prge_gui.h"
#include "prge_audio.h"

#include "prge_window.c"
#include "prge_input.c"
#include "prge_texture.c"
#include "prge_shader.c"
#include "prge_model.c"
#include "prge_camera.c"
#include "prge_draw.c"
#include "prge_gui.c"
#include "prge_audio.c"

#define PRGE_PERSARENA_SIZE	MB(64)
#define PRGE_TMPARENA_SIZE	MB(32)

void init_prge(PRGEContext *ctx)
{
	MEM0STRUCT(ctx);

	ctx->pa = alloc_arena(PRGE_PERSARENA_SIZE);
	ctx->tmpa = alloc_arena(PRGE_TMPARENA_SIZE);

	ctx->in = init_input();

	ctx->bindir = sys_getbindir(ctx->pa);
	if (ctx->bindir)
		sys_printf("[INFO] : PRGE : Binary path : \"%s\"\n", ctx->bindir);
}

#endif /* PRGE_H */