Updated ImGui.

This commit is contained in:
Бранимир Караџић
2021-02-10 22:28:11 -08:00
parent 7daf5e0ba7
commit b5afc2c81c
9 changed files with 941 additions and 370 deletions

View File

@@ -391,7 +391,7 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
const double toGpuMs = 1000.0/double(stats->gpuTimerFreq);
const float scale = 3.0f;
if (ImGui::ListBoxHeader("Encoders", ImVec2(ImGui::GetWindowWidth(), stats->numEncoders*itemHeightWithSpacing) ) )
if (ImGui::BeginListBox("Encoders", ImVec2(ImGui::GetWindowWidth(), stats->numEncoders*itemHeightWithSpacing) ) )
{
ImGuiListClipper clipper;
clipper.Begin(stats->numEncoders, itemHeight);
@@ -419,12 +419,12 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
}
}
ImGui::ListBoxFooter();
ImGui::EndListBox();
}
ImGui::Separator();
if (ImGui::ListBoxHeader("Views", ImVec2(ImGui::GetWindowWidth(), stats->numViews*itemHeightWithSpacing) ) )
if (ImGui::BeginListBox("Views", ImVec2(ImGui::GetWindowWidth(), stats->numViews*itemHeightWithSpacing) ) )
{
ImGuiListClipper clipper;
clipper.Begin(stats->numViews, itemHeight);
@@ -466,7 +466,7 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
}
}
ImGui::ListBoxFooter();
ImGui::EndListBox();
}
ImGui::PopFont();