Update Engine.cpp
This commit is contained in:
parent
96811c6e5a
commit
a4304f04db
@ -19,7 +19,6 @@
|
|||||||
#include "editor/windows/AssetBrowser.h"
|
#include "editor/windows/AssetBrowser.h"
|
||||||
#include "editor/windows/Inspector.h"
|
#include "editor/windows/Inspector.h"
|
||||||
|
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
@ -442,7 +441,6 @@ void Engine::Init()
|
|||||||
Logger::LogInfo("Initialized Engine");
|
Logger::LogInfo("Initialized Engine");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Engine::collectObjects(bool playing, const glm::vec2 &camPos, float camZoom)
|
void Engine::collectObjects(bool playing, const glm::vec2 &camPos, float camZoom)
|
||||||
{
|
{
|
||||||
m_toDraw.clear();
|
m_toDraw.clear();
|
||||||
@ -604,11 +602,15 @@ void Engine::Run()
|
|||||||
{
|
{
|
||||||
ImGui::Checkbox("Enable Lighting", &g_engineConfig.settings.lighting_enabled);
|
ImGui::Checkbox("Enable Lighting", &g_engineConfig.settings.lighting_enabled);
|
||||||
ImGui::Checkbox("Enable Gizmos", &g_engineConfig.settings.draw_gizmos);
|
ImGui::Checkbox("Enable Gizmos", &g_engineConfig.settings.draw_gizmos);
|
||||||
ImGui::Checkbox("Profiling", &g_engineConfig.settings.profile_enabled);
|
if (ImGui::BeginMenu("Settings"))
|
||||||
if (g_engineConfig.settings.profile_enabled)
|
|
||||||
{
|
{
|
||||||
ImGui::Checkbox("Profile Engine", &g_engineConfig.settings.profile_editor);
|
ImGui::Checkbox("Profiling", &g_engineConfig.settings.profile_enabled);
|
||||||
ImGui::Checkbox("Deep Profileing", &g_engineConfig.settings.profile_deep);
|
if (g_engineConfig.settings.profile_enabled)
|
||||||
|
{
|
||||||
|
ImGui::Checkbox("Profile Engine", &g_engineConfig.settings.profile_editor);
|
||||||
|
ImGui::Checkbox("Deep Profileing", &g_engineConfig.settings.profile_deep);
|
||||||
|
}
|
||||||
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user