Files
OpenEngine/open_engine/include/open_engine/layer.hpp
2026-01-25 16:12:32 +01:00

30 lines
671 B
C++

#ifndef LAYER_HPP
#define LAYER_HPP
#include "events/event.hpp"
namespace OpenEngine {
class Layer
{
public:
Layer(const std::string& name = "layer")
: debug_name(name)
{
};
virtual ~Layer() = default;
virtual void OnAttach() {};
virtual void OnDetach() {};
virtual void OnUpdate() {};
virtual void OnImGuiRender() {};
virtual void OnEvent(Event& event) {};
inline const std::string& GetName() const { return debug_name; };
protected:
std::string debug_name = "";
};
}
#endif // LAYER_HPP