Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
splash_widget.h
1#pragma once
2
3#include "gluten/widgets/widget.h"
4
5class splash_widget : public gluten::widget
6{
7public:
8 splash_widget(gluten::widget_subsystem* parentSubsystem) : widget(parentSubsystem) {}
9
10public:
11 void show_splash_screen();
12 void close_splash_screen();
13
14protected:
15 virtual void start_implementation() override;
16 virtual void tick_implementation(double deltaTime) override;
17 virtual void render_implementation() override;
18
19private:
20 bool m_wantsToShow = false;
21 double m_timeShowingScreen = 0.0;
22 std::string m_loadingText = std::string("Loading");
23
24 uint32_t m_splashImageID = 0;
25 int m_splashImageWidth = -1;
26 int m_splashImageHeight = -1;
27};
Definition splash_widget.h:6