too tired to think

This commit is contained in:
Erris
2026-01-31 10:27:40 +01:00
parent 5a25ab5f5f
commit 7b4950dda0
20 changed files with 160 additions and 92 deletions

View File

@@ -1,13 +1,14 @@
#ifndef APPLICATION_HPP
#define APPLICATION_HPP
#include "open_engine/core.hpp"
#include "open_engine/events/application_event.hpp"
#include "open_engine/imgui/imgui_layer.hpp"
#include "open_engine/window/window.hpp"
#include "open_engine/layer_stack.hpp"
#include "open_engine/layer.hpp"
int main(int argc, char **argv);
namespace OpenEngine {
class Application
{
@@ -15,8 +16,6 @@ namespace OpenEngine {
Application();
~Application();
void Run();
virtual void OnEvent(Event& event);
void QueueLayerPush(Ref<Layer> layer);
@@ -30,9 +29,11 @@ namespace OpenEngine {
inline void StopRunning() { running = false; };
private:
void Run();
bool OnWindowClose(WindowCloseEvent& event);
bool OnWindowResize(WindowResizeEvent& event);
private:
inline static Application* instance;
bool running = true;
@@ -40,6 +41,8 @@ namespace OpenEngine {
Ref<ImGuiLayer> imgui_layer;
LayerStack layer_stack;
friend int ::main(int argc, char **argv);
};
// Is defined by client