Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
splash_screen.h File Reference

Declares the splash screen workflow. More...

#include <functional>
#include <hal/video.h>
#include <SDL.h>
Include dependency graph for splash_screen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void splash::show_splash_screen (SDL_Window *window, const VIDEO_MODE &videoMode, const std::function< bool()> &keepShowing)
 Show the splash screen until the supplied callback reports completion.
 
void splash::show_splash_screen (SDL_Window *window, const VIDEO_MODE &videoMode, unsigned int durationMilliseconds=1500U)
 Show the splash screen for a fixed duration.
 

Detailed Description

Declares the splash screen workflow.

Function Documentation

◆ show_splash_screen() [1/2]

void splash::show_splash_screen ( SDL_Window * window,
const VIDEO_MODE & videoMode,
const std::function< bool()> & keepShowing )

Show the splash screen until the supplied callback reports completion.

Parameters
windowSDL window used for splash rendering.
videoModeActive video mode used to size the splash layout.
keepShowingCallback that returns true while the splash screen should remain visible.

◆ show_splash_screen() [2/2]

void splash::show_splash_screen ( SDL_Window * window,
const VIDEO_MODE & videoMode,
unsigned int durationMilliseconds = 1500U )

Show the splash screen for a fixed duration.

Parameters
windowSDL window used for splash rendering.
videoModeActive video mode used to size the splash layout.
durationMillisecondsSplash duration in milliseconds.