Skip to main content

Intros

warning

Currently only .webp is supported for intros. You do not need RAWRBOX.RESOURCES as render will handle the file loading and presenting

Allows the user to add a custom splash screen / intro

render->addIntro("./content/my_intro.webp", <intro speed>, <cover>, <background color>);

You can then use onIntroCompleted to detect when the intro is completed

render->onIntroCompleted += [this]() {};

If no intro is being played or the screen is black, it means the update method is missing the rawrbox::Window::update() call.

You can also skip all intros by calling

render->skipIntros(true);