From 3557199b35d9e86f942284110c4dfd36a3fbf55b Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Tue, 8 Jun 2021 19:15:15 +0200 Subject: [PATCH] Fixed compilation errors Signed-off-by: Robear Selwans --- res/project/game.proj | 4 ++++ src/main.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/res/project/game.proj b/res/project/game.proj index e4a0dad..5e6a593 100644 --- a/res/project/game.proj +++ b/res/project/game.proj @@ -13,6 +13,10 @@ { "path": "./res/scenes", "mountpoint": "scenes" + }, + { + "path": "./res/shaders", + "mountpoint": "shaders" } ], "scenes": [ diff --git a/src/main.c b/src/main.c index 8c10858..9e88d1f 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,8 @@ #include IMPORT_MODULE_H #define IMPORT_MODULE evmod_game #include IMPORT_MODULE_H +#define IMPORT_MODULE evmod_renderer +#include IMPORT_MODULE_H // Close window when Q is pressed DECLARE_EVENT_LISTENER(keyPressedListener, (KeyPressedEvent *event) { @@ -40,7 +42,7 @@ int main(int argc, char **argv) imports(game_mod , (Game, Object, Camera, Scene)) imports(window_mod , (Window)) imports(input_mod , (Input)) - imports(renderer_mod,(Renderer)) + imports(renderer_mod, (Renderer)) IMPORT_EVENTS_evmod_glfw(window_mod); U32 width = 800; @@ -48,7 +50,6 @@ int main(int argc, char **argv) WindowHandle windowHandle = Window->create(width, height, "Main Window"); Input->setActiveWindow(windowHandle); - Renderer->setWindow(windowHandle); ACTIVATE_EVENT_LISTENER(keyPressedListener, KeyPressedEvent); evstring project_dir = NULL; @@ -125,6 +126,8 @@ int main(int argc, char **argv) rmt_SetCurrentThreadName("Main Thread"); + Renderer->setWindow(windowHandle); + U32 result = 0; while(result == 0) { ev_ProfileCPU(WindowUpdate, 0) {