added queuing push and pop logic and having fun with c# integration
This commit is contained in:
@@ -15,14 +15,21 @@ namespace OpenEngine {
|
||||
{
|
||||
public:
|
||||
Application();
|
||||
virtual ~Application() = default;
|
||||
~Application();
|
||||
|
||||
void Run();
|
||||
|
||||
virtual void OnEvent(Event& event);
|
||||
|
||||
void PushLayer(Layer* layer);
|
||||
void PushOverlay(Layer* overlay);
|
||||
//void PushOverlay(Ref<Layer> overlay);
|
||||
//void PopOverlay(Ref<Layer> overlay);
|
||||
|
||||
//void PushLayer(Ref<Layer> layer);
|
||||
//void PopLayer();
|
||||
void QueueLayerPush(Ref<Layer> layer);
|
||||
void QueueLayerPop(Ref<Layer> layer);
|
||||
void QueueOverlayPush(Ref<Layer> layer);
|
||||
void QueueOverlayPop(Ref<Layer> layer);
|
||||
|
||||
inline static Application& Get() { return *instance; }
|
||||
|
||||
@@ -38,7 +45,7 @@ namespace OpenEngine {
|
||||
bool running = true;
|
||||
std::unique_ptr<Window> window;
|
||||
|
||||
ImGuiLayer* imgui_layer;
|
||||
Ref<ImGuiLayer> imgui_layer;
|
||||
LayerStack layer_stack;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user