Allow user to add splash image to splash screen.

This commit is contained in:
Chandler Cox
2024-12-24 12:12:59 -06:00
parent 0f847335c3
commit 0c645cbc78
2 changed files with 66 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#pragma once
#include "Engine/Content/Assets/Texture.h"
#include "Engine/Core/Types/DateTime.h"
#include "Engine/Platform/Window.h"
@@ -18,6 +19,7 @@ private:
Window* _window = nullptr;
Font* _titleFont = nullptr;
Font* _subtitleFont = nullptr;
Texture* _splashTexture = nullptr;
String _title;
DateTime _startTime;
String _infoText;
@@ -78,4 +80,5 @@ private:
void OnDraw();
bool HasLoadedFonts() const;
void OnFontLoaded(Asset* asset);
void OnTextureLoaded(Asset* asset);
};