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