Renamed to Project Engine

This commit is contained in:
2024-10-02 00:49:38 -05:00
parent 08115f90ce
commit bf8f92b885
41 changed files with 27 additions and 152 deletions

0
layers/baseLayer.cpp Normal file → Executable file
View File

4
layers/baseLayer.h Normal file → Executable file
View File

@@ -1,5 +1,5 @@
#pragma once
#include "terminal.h"
#include "engine.h"
#include "layer.h"
#include "eventHandler.h"
@@ -29,4 +29,4 @@ class BaseLayer : public Layer {
virtual bool onWindowFocusLost(const WindowEvent*);
virtual bool onWindowMoved(const WindowEvent*);
virtual bool onWindowResize(const WindowEvent*);
};
};

0
layers/layer.cpp Normal file → Executable file
View File

4
layers/layer.h Normal file → Executable file
View File

@@ -1,6 +1,6 @@
#pragma once
#include "terminal.h"
#include "engine.h"
#include "event.h"
@@ -32,4 +32,4 @@ class Layer {
virtual bool onWindowClose(const WindowEvent* event) = 0;
virtual bool onWindowMoved(const WindowEvent* event) = 0;
};
};

0
layers/layerstack.cpp Normal file → Executable file
View File

4
layers/layerstack.h Normal file → Executable file
View File

@@ -1,6 +1,6 @@
#pragma once
#include "terminal.h"
#include "engine.h"
#include "layer.h"
@@ -29,4 +29,4 @@ class LayerStack {
std::vector<Layer*> layers;
std::vector<Layer*>::iterator insert;
bool eventHandled;
};
};

0
layers/overlay.cpp Normal file → Executable file
View File

4
layers/overlay.h Normal file → Executable file
View File

@@ -1,6 +1,6 @@
#pragma once
#include "terminal.h"
#include "engine.h"
#include "layer.h"
@@ -206,4 +206,4 @@ static void ImGui_ImplSDL2_UpdateKeyModifiers(SDL_Keymod sdl_key_mods)
io.AddKeyEvent(ImGuiMod_Shift, (sdl_key_mods & KMOD_SHIFT) != 0);
io.AddKeyEvent(ImGuiMod_Alt, (sdl_key_mods & KMOD_ALT) != 0);
io.AddKeyEvent(ImGuiMod_Super, (sdl_key_mods & KMOD_GUI) != 0);
}
}