From 511e5dfb1668806a23bf6dcd0dab94941faac619 Mon Sep 17 00:00:00 2001 From: antopilo Date: Thu, 23 Jun 2022 15:55:32 -0400 Subject: [PATCH] Removed Soloud from premake --- Nuake/src/Scene/Scene.cpp | 12 ++++++++++-- premake5.lua | 3 +-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Nuake/src/Scene/Scene.cpp b/Nuake/src/Scene/Scene.cpp index 57cc3bcc..2b0843a6 100644 --- a/Nuake/src/Scene/Scene.cpp +++ b/Nuake/src/Scene/Scene.cpp @@ -88,10 +88,12 @@ namespace Nuake { bool Scene::OnInit() { for (auto& system : m_Systems) + { if (!system->Init()) { return false; } + } return true; } @@ -99,19 +101,25 @@ namespace Nuake { void Scene::OnExit() { for (auto& system : m_Systems) + { system->Exit(); + } } void Scene::Update(Timestep ts) { for (auto& system : m_Systems) + { system->Update(ts); + } } void Scene::FixedUpdate(Timestep ts) { for (auto& system : m_Systems) + { system->FixedUpdate(ts); + } } void Scene::EditorUpdate(Timestep ts) @@ -124,7 +132,8 @@ namespace Nuake { Ref cam = nullptr; { auto view = m_Registry.view(); - for (auto e : view) { + for (auto e : view) + { auto [transform, camera, parent] = view.get(e); cam = camera.CameraInstance; cam->Translation = transform.GlobalTranslation; @@ -282,7 +291,6 @@ namespace Nuake { } } } - } Ref Scene::Copy() diff --git a/premake5.lua b/premake5.lua index 8585f1dc..f0dada50 100644 --- a/premake5.lua +++ b/premake5.lua @@ -134,8 +134,7 @@ project "Editor" "BulletCollision", "BulletDynamics", "LinearMath", - "Freetype", - "SoloudStatic" + "Freetype" } filter "system:windows"