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