[client] add ImPlot and rework latency graphs

This commit is contained in:
Geoffrey McRae
2026-08-03 14:18:22 +10:00
parent 7533c855c2
commit 4f39270736
28 changed files with 539 additions and 172 deletions

View File

@@ -8,7 +8,6 @@ pkg_check_modules(RENDERER_OPENGL REQUIRED IMPORTED_TARGET
add_library(renderer_OpenGL STATIC
opengl.c
${PROJECT_TOP}/repos/cimgui/imgui/backends/imgui_impl_opengl2.cpp
)
target_compile_definitions(renderer_OpenGL PRIVATE CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1)
@@ -17,7 +16,7 @@ target_link_libraries(renderer_OpenGL
PkgConfig::RENDERER_OPENGL
lg_common
cimgui
lg_gui
)
target_include_directories(renderer_OpenGL

View File

@@ -29,7 +29,7 @@
#include <GL/gl.h>
#include "cimgui.h"
#include "generator/output/cimgui_impl.h"
#include "cimgui_impl.h"
#include "common/debug.h"
#include "common/option.h"
@@ -318,8 +318,7 @@ void opengl_onResize(LG_Renderer * renderer, const int width, const int height,
static bool opengl_onFontUpdate(LG_Renderer * renderer)
{
ImGui_ImplOpenGL2_DestroyFontsTexture();
return ImGui_ImplOpenGL2_CreateFontsTexture();
return true;
}
bool opengl_onMouseShape(LG_Renderer * renderer, const LG_RendererCursor cursor,