added getlayerstack function to application
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user