NVM Fixed.

This commit is contained in:
2024-10-01 01:09:06 -04:00
parent c5ec19c0c6
commit b5f54831b2
2 changed files with 4 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
#include <Client/Scene.hpp>
#include <JGL/types/Texture.h>
#include <JGL/types/Font.h>
namespace CaveGame::Client
{
@@ -24,7 +25,7 @@ namespace CaveGame::Client
float splash_timer = 5.f;
float load_percent = 0.f;
JGL::Texture splash;
JGL::Font* font = nullptr;
JGL::Font font;
Vector2 window_size;
};

View File

@@ -3,7 +3,7 @@
CaveGame::Client::Splash::Splash() : Scene()
{
font = new JGL::Font();
font = JGL::Font();
}
void CaveGame::Client::Splash::Draw()
@@ -69,7 +69,7 @@ void CaveGame::Client::Splash::Unload() {
Scene::Unload();
}
void CaveGame::Client::Splash::PassFont(JGL::Font* passed) {
void CaveGame::Client::Splash::PassFont(JGL::Font passed) {
font = passed;
}