Simplify code in #3119

This commit is contained in:
Wojtek Figat
2025-08-24 13:37:48 +02:00
parent 687c283533
commit d6c75b3f86
2 changed files with 22 additions and 39 deletions

View File

@@ -3,6 +3,7 @@
#pragma once
#include "Engine/Content/Assets/Texture.h"
#include "Engine/Content/AssetReference.h"
#include "Engine/Core/Types/DateTime.h"
#include "Engine/Platform/Window.h"
@@ -19,11 +20,12 @@ private:
Window* _window = nullptr;
Font* _titleFont = nullptr;
Font* _subtitleFont = nullptr;
Texture* _splashTexture = nullptr;
AssetReference<Texture> _splashTexture;
String _title;
DateTime _startTime;
String _infoText;
float _dpiScale, _width, _height;
float _dpiScale;
Float2 _size;
StringView _quote;
public:
@@ -80,5 +82,5 @@ private:
void OnDraw();
bool HasLoadedFonts() const;
void OnFontLoaded(Asset* asset);
void OnTextureLoaded(Asset* asset);
void OnSplashLoaded();
};