Skip to content

Commit

Permalink
Merge pull request #144 from jmorton06/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jmorton06 authored Nov 15, 2024
2 parents 5b16bf1 + 5e5c87d commit 52b976d
Show file tree
Hide file tree
Showing 32 changed files with 898 additions and 750 deletions.
10 changes: 9 additions & 1 deletion Editor/Source/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ namespace Lumos
timer = 0.0;
stats = Engine::Get().Statistics();
}

#if 0
auto size = ImGui::CalcTextSize("%.2f ms (%.i FPS)");
float sizeOfGfxAPIDropDown = ImGui::GetFontSize() * 8;
ImGui::SameLine(ImGui::GetWindowContentRegionMax().x - size.x - ImGui::GetStyle().ItemSpacing.x * 2.0f - sizeOfGfxAPIDropDown);
Expand Down Expand Up @@ -1079,6 +1079,14 @@ namespace Lumos

ImGui::PopStyleColor(2);
ImGui::PopStyleVar();
#else
auto size = ImGui::CalcTextSize("%.2f ms (%.i FPS)");
ImGui::SameLine(ImGui::GetWindowContentRegionMax().x - size.x - ImGui::GetStyle().ItemSpacing.x * 2.0f);

int fps = int(Maths::Round(1000.0 / stats.FrameTime));
ImGui::Text("%.2f ms (%.i FPS)", stats.FrameTime, fps);
ImGui::PopStyleColor();
#endif

ImGui::EndMainMenuBar();
}
Expand Down
2 changes: 1 addition & 1 deletion Editor/Source/Editor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once

#include <string>
#include <Lumos/Maths/Transform.h>
#include <Lumos/Utilities/IniFile.h>
#include <Lumos/Graphics/Camera/EditorCamera.h>
Expand Down
6 changes: 0 additions & 6 deletions Editor/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ project "LumosEditor"
{
"%{IncludeDir.entt}",
"%{IncludeDir.GLFW}",
"%{IncludeDir.Glad}",
"%{IncludeDir.lua}",
"%{IncludeDir.stb}",
"%{IncludeDir.ImGui}",
Expand Down Expand Up @@ -73,7 +72,6 @@ project "LumosEditor"
defines
{
"LUMOS_PLATFORM_WINDOWS",
"LUMOS_RENDER_API_OPENGL",
"LUMOS_RENDER_API_VULKAN",
"VK_USE_PLATFORM_WIN32_KHR",
"WIN32_LEAN_AND_MEAN",
Expand All @@ -91,7 +89,6 @@ project "LumosEditor"
links
{
"glfw",
"OpenGL32",
"OpenAL32"
}

Expand Down Expand Up @@ -129,7 +126,6 @@ project "LumosEditor"
{
"LUMOS_PLATFORM_MACOS",
"LUMOS_PLATFORM_UNIX",
"LUMOS_RENDER_API_OPENGL",
"LUMOS_RENDER_API_VULKAN",
"VK_EXT_metal_surface",
"LUMOS_IMGUI",
Expand All @@ -138,7 +134,6 @@ project "LumosEditor"

linkoptions
{
"-framework OpenGL",
"-framework Cocoa",
"-framework IOKit",
"-framework CoreVideo",
Expand Down Expand Up @@ -275,7 +270,6 @@ project "LumosEditor"
{
"LUMOS_PLATFORM_LINUX",
"LUMOS_PLATFORM_UNIX",
"LUMOS_RENDER_API_OPENGL",
"LUMOS_RENDER_API_VULKAN",
"VK_USE_PLATFORM_XCB_KHR",
"LUMOS_IMGUI",
Expand Down
Loading

0 comments on commit 52b976d

Please sign in to comment.