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() {
FT_Done_FreeType(kekData.freetype);
Defaults::destroy();
Physics::destroy();
Input::destroy();
UI::destroy();
Resource::destroy();
FT_Done_FreeType(kekData.freetype);
}
void setActiveScene(Scene *scene) {
kekData.activeScene = scene;
}
Player *getPlayer() {
return kekData.player;
}
}

View File

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