2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 19:51:22 +00:00
metaforce/Runtime/GuiSys/CSplashScreen.hpp
Luke Street f80813b9cc Transition all Textured/ColoredQuad usages
- Upload textures using staging buffer
- Fixes SetOrtho logic
- More work on thermal visor rendering (still WIP)
- Rework Dawn backend initialization
- Support MoltenVK on Metal
- Various fixes & cleanup
2022-05-23 20:26:35 -04:00

30 lines
789 B
C++

#pragma once
#include "Runtime/CIOWin.hpp"
#include "Runtime/CToken.hpp"
#include "Runtime/Graphics/CTexture.hpp"
namespace metaforce {
class CSplashScreen : public CIOWin {
public:
enum class ESplashScreen { Nintendo, Retro, Dolby };
enum class EProgressivePhase { Before, During, After };
private:
ESplashScreen x14_which;
float x18_splashTimeout = 2.f;
// float x1c_progSelectionTimeout = 0.f;
// EProgressivePhase x20_progressivePhase = EProgressivePhase::Before;
// bool x24_progressiveSelection = true;
bool x25_textureLoaded = false;
TLockedToken<CTexture> x28_texture;
public:
explicit CSplashScreen(ESplashScreen);
EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) override;
void Draw() override;
};
} // namespace metaforce