deleted commented out old code and todo comment
This commit is contained in:
@@ -9,10 +9,6 @@ Layer::Layer(const std::string &name, bool isActive) : m_LayerName(name), m_isAc
|
|||||||
|
|
||||||
void Layer::QueueTransition(std::unique_ptr<Layer> toLayer) {
|
void Layer::QueueTransition(std::unique_ptr<Layer> toLayer) {
|
||||||
auto &layerStack = Application::Get().GetLayerStack();
|
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
|
|
||||||
auto &layerStack = Application::Get().m_LayerStack;
|
|
||||||
|
|
||||||
LayerCommand command;
|
LayerCommand command;
|
||||||
command.action = LayerAction::Transition;
|
command.action = LayerAction::Transition;
|
||||||
@@ -20,12 +16,5 @@ void Layer::QueueTransition(std::unique_ptr<Layer> toLayer) {
|
|||||||
command.newLayer = std::move(toLayer);
|
command.newLayer = std::move(toLayer);
|
||||||
|
|
||||||
layerStack.SubmitCommand(std::move(command));
|
layerStack.SubmitCommand(std::move(command));
|
||||||
|
|
||||||
// for (auto &layer : layerStack) {
|
|
||||||
// if (layer.get() == this) {
|
|
||||||
// layer = std::move(toLayer);
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
} // namespace SakuraVNE
|
} // namespace SakuraVNE
|
||||||
|
|||||||
Reference in New Issue
Block a user