diff --git a/src/gl/imgui_hud.cpp b/src/gl/gl_hud.cpp similarity index 98% rename from src/gl/imgui_hud.cpp rename to src/gl/gl_hud.cpp index 745f5bcd..d39c3464 100644 --- a/src/gl/imgui_hud.cpp +++ b/src/gl/gl_hud.cpp @@ -9,13 +9,10 @@ #include #include #include -#include "font_default.h" -#include "cpu.h" +#include "gl_hud.h" #include "file_utils.h" -#include "imgui_hud.h" #include "notify.h" #include "blacklist.h" -#include "overlay.h" #ifdef HAVE_DBUS #include "dbus_info.h" diff --git a/src/gl/imgui_hud.h b/src/gl/gl_hud.h similarity index 84% rename from src/gl/imgui_hud.h rename to src/gl/gl_hud.h index b993a746..99658ef7 100644 --- a/src/gl/imgui_hud.h +++ b/src/gl/gl_hud.h @@ -3,7 +3,7 @@ #define MANGOHUD_GL_IMGUI_HUD_H #include "overlay.h" -#include "imgui_impl_opengl3.h" +#include "gl_renderer.h" namespace MangoHud { namespace GL { @@ -16,4 +16,4 @@ void imgui_render(unsigned int width, unsigned int height); }} // namespace -#endif //MANGOHUD_GL_IMGUI_HUD_H \ No newline at end of file +#endif //MANGOHUD_GL_IMGUI_HUD_H diff --git a/src/gl/imgui_impl_opengl3.cpp b/src/gl/gl_renderer.cpp similarity index 99% rename from src/gl/imgui_impl_opengl3.cpp rename to src/gl/gl_renderer.cpp index 89e2b852..2f0a8c48 100644 --- a/src/gl/imgui_impl_opengl3.cpp +++ b/src/gl/gl_renderer.cpp @@ -66,7 +66,7 @@ #include #include -#include "imgui_impl_opengl3.h" +#include "gl_renderer.h" #include #include // intptr_t #include @@ -447,7 +447,7 @@ bool ImGui_ImplOpenGL3_Init(const char* glsl_version) // Setup back-end capabilities flags ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_opengl3"; + io.BackendRendererName = "mangohud_opengl3"; //#if IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET if (g_GlVersion >= 320) // GL/GLES 3.2+ io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. diff --git a/src/gl/imgui_impl_opengl3.h b/src/gl/gl_renderer.h similarity index 100% rename from src/gl/imgui_impl_opengl3.h rename to src/gl/gl_renderer.h diff --git a/src/gl/inject_egl.cpp b/src/gl/inject_egl.cpp index 6499d10c..d12b0237 100644 --- a/src/gl/inject_egl.cpp +++ b/src/gl/inject_egl.cpp @@ -9,7 +9,7 @@ #include "mesa/util/macros.h" #include "mesa/util/os_time.h" #include "blacklist.h" -#include "imgui_hud.h" +#include "gl_hud.h" using namespace MangoHud::GL; diff --git a/src/gl/inject_glx.cpp b/src/gl/inject_glx.cpp index e56fc157..55a985de 100644 --- a/src/gl/inject_glx.cpp +++ b/src/gl/inject_glx.cpp @@ -18,7 +18,7 @@ #include #include -#include "imgui_hud.h" +#include "gl_hud.h" using namespace MangoHud::GL; diff --git a/src/meson.build b/src/meson.build index fcbb1f8c..47f3c3df 100644 --- a/src/meson.build +++ b/src/meson.build @@ -87,8 +87,8 @@ if is_unixy opengl_files = files( 'gl/glad.c', - 'gl/imgui_impl_opengl3.cpp', - 'gl/imgui_hud.cpp', + 'gl/gl_renderer.cpp', + 'gl/gl_hud.cpp', 'gl/inject_egl.cpp', )