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
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 splash_widget.h:6