Fix Freetype, Add Engine::getPlayer()
This commit is contained in:
parent
bee6e14b08
commit
4744e9f98a
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user