tracy/profiler/src/ImGuiContext.cpp
2024-09-20 19:50:30 +02:00

21 lines
569 B
C++

#include <imgui.h>
#include "profiler/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;
io.ConfigScrollbarScrollByPage = false;
}
ImGuiTracyContext::~ImGuiTracyContext()
{
ImGui::DestroyContext();
}