Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
SplashWidget.h
1#pragma once
2
3#include "Widget.h"
4
5class SplashWidget : public Widget
6{
7public:
8 SplashWidget(WidgetSubsystem* parentSubsystem) : Widget(parentSubsystem) {}
9
10public:
11 void ShowSplashScreen();
12 void CloseSplashScreen();
13
14public:
15 virtual void Tick(double deltaTime) override;
16 virtual void Render() override;
17
18protected:
19 virtual void Start() override;
20
21private:
22 bool m_wantsToShow = false;
23 double m_timeShowingScreen = 0.0;
24 std::string m_loadingText = std::string("Loading");
25
26 uint32_t m_splashImageID = 0;
27 int m_splashImageWidth = -1;
28 int m_splashImageHeight = -1;
29};
Definition SplashWidget.h:6
Definition WidgetSubsystem.h:7
Definition Widget.h:16