Jazz2::UI::LoadingHandler class

Handler that only shows the loading indicator.

Base classes

class Jazz2::IStateHandler
Base interface of a state handler, only one handler runs at a time.

Public static variables

static std::int32_t DefaultWidth constexpr
Default width of viewport.
static std::int32_t DefaultHeight constexpr
Default height of viewport.

Constructors, destructors, conversion operators

LoadingHandler(IRootController* root)
LoadingHandler(IRootController* root, Function<bool(IRootController*)>&& callback)
~LoadingHandler() override

Public functions

auto GetViewSize() const -> Vector2i override
Returns viewport size of the handler.
void OnBeginFrame() override
Called at the beginning of each frame.
void OnInitializeViewport(std::int32_t width, std::int32_t height) override
Called when the viewport needs to be initialized (e.g., when the resolution is changed)