Layers and Events

This commit is contained in:
2025-04-05 22:37:24 -05:00
parent 5c798f8cb7
commit fbfa13a742
7 changed files with 184 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
#include "pch.hpp"
#include "utils/Events/Event.h"
class Layer {
virtual ~Layer() {}
virtual void onRender() = 0;
virtual void onAttach() = 0;
virtual void onDetach() = 0;
virtual bool onEvent(const Event&) = 0;
};