Rename GL files to avoid some confusion with upstream Dear ImGui files

pull/771/head
jackun 2 years ago
parent 3e6b35560c
commit 8a628e6a77
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -9,13 +9,10 @@
#include <filesystem.h>
#include <spdlog/spdlog.h>
#include <imgui.h>
#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"

@ -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
#endif //MANGOHUD_GL_IMGUI_HUD_H

@ -66,7 +66,7 @@
#include <spdlog/spdlog.h>
#include <imgui.h>
#include "imgui_impl_opengl3.h"
#include "gl_renderer.h"
#include <stdio.h>
#include <stdint.h> // intptr_t
#include <sstream>
@ -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.

@ -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;

@ -18,7 +18,7 @@
#include <iomanip>
#include <glad/glad.h>
#include "imgui_hud.h"
#include "gl_hud.h"
using namespace MangoHud::GL;

@ -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',
)

Loading…
Cancel
Save