class
#include <Jazz2/UI/Cinematics.h>
Cinematics Handler that plays a cinematic video.
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
- Cinematics(IRootController* root, StringView path, Function<bool(IRootController*, bool)>&& callback)
- ~Cinematics() 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)
- void OnKeyPressed(const KeyboardEvent& event) override
- Called when a key is pressed.
- void OnKeyReleased(const KeyboardEvent& event) override
- Called when a key is released.
- void OnTouchEvent(const TouchEvent& event) override
- Called when a touch event is triggered.