Simplify code in #3119
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user