HostInterface: Add a helper to display a 'Loading Screen' during long startup

This commit is contained in:
Connor McLaughlin
2020-02-16 00:15:16 +09:00
parent 9ddb3a8c7a
commit 1e0e802fa4
4 changed files with 48 additions and 0 deletions

View File

@ -82,6 +82,10 @@ public:
/// Returns a path relative to the user directory.
std::string GetUserDirectoryRelativePath(const char* format, ...) const;
/// Displays a loading screen with the logo, rendered with ImGui. Use when executing possibly-time-consuming tasks
/// such as compiling shaders when starting up.
void DisplayLoadingScreen(const char* message, int progress_min = -1, int progress_max = -1, int progress_value = -1);
protected:
enum : u32
{