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

Implements the splash screen workflow. More...

#include "src/splash/splash_screen.h"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <string>
#include <hal/xbox.h>
#include <SDL.h>
#include <SDL_image.h>
#include <windows.h>
#include "src/logging/logger.h"
#include "src/os.h"
#include "src/splash/splash_layout.h"
Include dependency graph for splash_screen.cpp:

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

Implements 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.