mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-31 00:38:59 +02:00
19
subprojects/tracy/profiler/src/ImGuiContext.cpp
Normal file
19
subprojects/tracy/profiler/src/ImGuiContext.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
ImGuiTracyContext::~ImGuiTracyContext()
|
||||
{
|
||||
ImGui::DestroyContext();
|
||||
}
|
||||
Reference in New Issue
Block a user