This commit is contained in:
Ilusha 2024-03-19 17:35:02 +03:00
parent 59b1d0b89a
commit e41714c2bb
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());
}