Fixed compilation errors

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-06-08 19:15:15 +02:00
parent 173d9df4c8
commit 3557199b35
2 changed files with 9 additions and 2 deletions

View File

@@ -13,6 +13,10 @@
{
"path": "./res/scenes",
"mountpoint": "scenes"
},
{
"path": "./res/shaders",
"mountpoint": "shaders"
}
],
"scenes": [

View File

@@ -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) {
@@ -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) {