summaryrefslogtreecommitdiff
path: root/prge.h
diff options
context:
space:
mode:
Diffstat (limited to 'prge.h')
-rw-r--r--prge.h51
1 files changed, 11 insertions, 40 deletions
diff --git a/prge.h b/prge.h
index 90271b3..d9c664b 100644
--- a/prge.h
+++ b/prge.h
@@ -3,45 +3,16 @@
#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);
-}
+#include "types.h"
+#include "input.h"
+#include "texture.h"
+#include "shader.h"
+#include "model.h"
+#include "phys.h"
+#include "camera.h"
+#include "audio.h"
+#include "ctx.h"
+#include "draw.h"
+#include "gui.h"
#endif /* PRGE_H */