1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Move all GLFW code to a separate class.

This commit is contained in:
Bartosz Taudul
2022-07-27 00:57:42 +02:00
parent 138f80001e
commit b86f1a907a
9 changed files with 310 additions and 197 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <imgui.h>
#include "../../server/TracyStorage.hpp"
#include "ImGuiContext.hpp"
ImGuiTracyContext::ImGuiTracyContext()
: m_iniFilename( tracy::GetSavePath( "imgui.ini" ) )
{
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
io.IniFilename = m_iniFilename.c_str();
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard | ImGuiConfigFlags_DockingEnable;
}
ImGuiTracyContext::~ImGuiTracyContext()
{
ImGui::DestroyContext();
}