This commit is contained in:
Ilusha 2024-03-19 17:35:02 +03:00 committed by Ilya Shurupov
parent 25fd52294f
commit 16af8dc809
6 changed files with 140 additions and 42 deletions

View file

@ -47,7 +47,7 @@ DebugGUI::~DebugGUI() {
delete mContext;
}
void DebugGUI::proc() {
void DebugGUI::drawBegin() {
tp::HeapAllocGlobal::startIgnore();
ImGui_ImplOpenGL3_NewFrame();
@ -57,7 +57,7 @@ void DebugGUI::proc() {
tp::HeapAllocGlobal::stopIgnore();
}
void DebugGUI::draw() {
void DebugGUI::drawEnd() {
ImGui::Render();
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
}