added getlayerstack function to application

This commit is contained in:
2026-04-10 10:52:26 +02:00
parent 5dd3cc1b73
commit e46225eda9
2 changed files with 2 additions and 0 deletions

View File

@@ -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;

View File

@@ -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<Layer> 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