From e46225eda97b022f0487a47d4af8f9ced6ec74a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Fri, 10 Apr 2026 10:52:26 +0200 Subject: [PATCH] added getlayerstack function to application --- SakuraCore/src/Application.h | 1 + SakuraCore/src/Layer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/SakuraCore/src/Application.h b/SakuraCore/src/Application.h index b4cc386..6e77023 100644 --- a/SakuraCore/src/Application.h +++ b/SakuraCore/src/Application.h @@ -84,6 +84,7 @@ public: void SetRunningState(bool isRunning) { m_isRunning = isRunning; } static Application &Get() { return *s_Instance; } + inline LayerStack &GetLayerStack() { return m_LayerStack; } private: bool m_isRunning; diff --git a/SakuraCore/src/Layer.cpp b/SakuraCore/src/Layer.cpp index 91abbdf..036c6ea 100644 --- a/SakuraCore/src/Layer.cpp +++ b/SakuraCore/src/Layer.cpp @@ -8,6 +8,7 @@ namespace SakuraVNE { Layer::Layer(const std::string &name, bool isActive) : m_LayerName(name), m_isActive(isActive) {} void Layer::QueueTransition(std::unique_ptr toLayer) { + auto &layerStack = Application::Get().GetLayerStack(); // TODO: redo this based on the event video // basically handle it like the other layer stuff // put it into a vector and go over the list at the end of the application loop