24#ifndef STELLARLIB_APP_SCENE_HPP
25#define STELLARLIB_APP_SCENE_HPP
74 auto operator=(const
scene &other) noexcept
82 auto operator=(
scene &&other) noexcept
89 virtual
void begin(class context &ctx);
97 virtual constexpr auto
update(class context &ctx)
98 -> std::optional<std::unique_ptr<
scene>> = 0;
104 virtual
void end(class context &ctx);
virtual ~scene() noexcept=0
Destructor.
virtual constexpr auto update(class context &ctx) -> std::optional< std::unique_ptr< scene > >=0
Called once per frame.
virtual void end(class context &ctx)
Called after the last update and before the next scene begins activation.
virtual void begin(class context &ctx)
Called after the previous scene has finished deactivation and before the first update.
scene() noexcept
Default constructor.
Application runtime.
Definition clock.hpp:33