6#include <nlohmann/json_fwd.hpp>
26 const nlohmann::json &entries,
27 const nlohmann::json &settings);
43 bool Update(
float seconds,
bool skip);
void DrawProgress(SceneRenderer &renderer, float width, float height) const
Draw movie or timed-image progress along the bottom of the output area, fitted to the requested aspec...
bool PlayingVideo() const
~IntroSequence()
Release current sequence resources before renderer destruction.
bool ShowsProgress() const
void ControlVideo(bool pause, int seek, bool restart)
Control the current movie without affecting image or model entries.
IntroSequence & operator=(const IntroSequence &)=delete
Prevent assigning renderer-bound resources.
void Restart()
Start again at the first available entry.
static std::unique_ptr< IntroSequence > Load(SceneRenderer &renderer, const std::filesystem::path &assets, const nlohmann::json &entries, const nlohmann::json &settings)
Validate a pack sequence and resolve its files relative to prepared assets.
IntroSequence(const IntroSequence &)=delete
Prevent copying renderer-bound resources.
void Draw() const
Draw the current entry, preserving image and movie aspect ratios.
bool Update(float seconds, bool skip)
Advance playback and optionally skip the current entry.
The renderer of a frame.
Definition scenerenderer.h:467
Definition assetimport.h:11