Fix Freetype, Add Engine::getPlayer()

This commit is contained in:
MrLetsplay 2023-09-13 16:48:43 +02:00
parent bee6e14b08
commit 4744e9f98a
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 7 additions and 1 deletions

View File

@ -300,16 +300,20 @@ int start() {
} }
void exit() { void exit() {
FT_Done_FreeType(kekData.freetype);
Defaults::destroy(); Defaults::destroy();
Physics::destroy(); Physics::destroy();
Input::destroy(); Input::destroy();
UI::destroy(); UI::destroy();
Resource::destroy(); Resource::destroy();
FT_Done_FreeType(kekData.freetype);
} }
void setActiveScene(Scene *scene) { void setActiveScene(Scene *scene) {
kekData.activeScene = scene; kekData.activeScene = scene;
} }
Player *getPlayer() {
return kekData.player;
}
} }

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include "player.h"
#include "scene.h" #include "scene.h"
namespace kek::Engine { namespace kek::Engine {
@ -9,5 +10,6 @@ int start();
void exit(); void exit();
void setActiveScene(Scene *scene); void setActiveScene(Scene *scene);
Player *getPlayer();
} }