tracy/profiler/src/ImGuiContext.cpp
2022-09-27 22:13:31 +02:00

20 lines
529 B
C++

#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;
io.ConfigInputTextCursorBlink = false;
}
ImGuiTracyContext::~ImGuiTracyContext()
{
ImGui::DestroyContext();
}