parent
f82851d6d3
commit
1f0a314e9c
14 changed files with 62 additions and 14 deletions
@ -0,0 +1,6 @@ |
||||
#include "Layer.h" |
||||
|
||||
namespace Bk { |
||||
Layer::Layer(const std::string& name) |
||||
: name(name) {} |
||||
} |
@ -0,0 +1,18 @@ |
||||
#pragma once |
||||
#include <bkpch.h> |
||||
|
||||
namespace Bk { |
||||
class Layer
|
||||
{ |
||||
public: |
||||
Layer(const std::string& name = "Layer"); |
||||
virtual ~Layer() {} |
||||
|
||||
virtual void on_attach() {} |
||||
virtual void on_detach() {} |
||||
virtual void on_event() {} |
||||
virtual void on_update() {} |
||||
private: |
||||
std::string name; |
||||
};
|
||||
} |
@ -0,0 +1,7 @@ |
||||
#pragma once |
||||
|
||||
#include <bakara/events/event.h> |
||||
#include <bakara/events/app_event.h> |
||||
#include <bakara/events/window_event.h> |
||||
#include <bakara/events/mouse_event.h> |
||||
#include <bakara/events/key_event.h> |
Loading…
Reference in New Issue