2022-07-26 22:57:42 +00:00
|
|
|
#include <imgui.h>
|
2024-03-17 12:15:54 +00:00
|
|
|
#include "profiler/TracyStorage.hpp"
|
2022-07-26 22:57:42 +00:00
|
|
|
#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;
|
2022-09-27 20:13:31 +00:00
|
|
|
io.ConfigInputTextCursorBlink = false;
|
2024-09-20 17:50:30 +00:00
|
|
|
io.ConfigScrollbarScrollByPage = false;
|
2022-07-26 22:57:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ImGuiTracyContext::~ImGuiTracyContext()
|
|
|
|
{
|
|
|
|
ImGui::DestroyContext();
|
|
|
|
}
|