Trenchbroom parser work with entities

Fixed lighting
Fixed global position system
Fixed child deletion system.
editor work for custom entities registration
This commit is contained in:
Antoine Pilote
2021-06-23 17:37:54 -04:00
parent 1740a5707f
commit c7dc3cc476
35 changed files with 753 additions and 486 deletions

View File

@@ -26,7 +26,6 @@ void Engine::Init()
PhysicsManager::Get()->Init();
Logger::Log("Physics initialized");
CurrentWindow = Window::Get();
Logger::Log("Window initialized");
@@ -48,22 +47,22 @@ void Engine::Tick()
m_LastFrameTime = time;
// Play mode update vs editor update.
if (Engine::IsPlayMode) {
if (Engine::IsPlayMode)
{
CurrentWindow->Update(timestep);
m_FixedUpdateDifference += timestep;
// Fixed update
if (m_FixedUpdateDifference >= m_FixedUpdateRate)
{
// call update here.
CurrentWindow->FixedUpdate(m_FixedUpdateRate);
m_FixedUpdateDifference = 0.f;
}
}
else
{
GetCurrentScene()->EditorUpdate(timestep);
}
Input::Update();
}
@@ -105,7 +104,6 @@ void Engine::EndDraw()
void Engine::Close()
{
ScriptingEngine::Close();
glfwTerminate();
}