unload debugfont and add Gfx debug menu
This commit is contained in:
@@ -303,6 +303,16 @@ int main(int argc, char** argv) {
|
||||
m->Label("Hello World!");
|
||||
ui7.EndMenu();
|
||||
}
|
||||
if (auto m = ui7.BeginMenu("LI DBG INFO")) {
|
||||
m->Label("Gfx Driver: {}", PD::Gfx::GetDriverName());
|
||||
m->Separator();
|
||||
m->Label("LI Draw Comamnds: {}", PD::Gfx::GetNumCommands());
|
||||
m->Label("GFX Draw Calls: {}", PD::Gfx::GetNumDrawcalls());
|
||||
m->Label("GFX Vertices: {}", PD::Gfx::GetNumVertices());
|
||||
m->Label("GFX Triangles: {}", PD::Gfx::GetNumVertices()/3);
|
||||
m->Label("GFX Indices: {}", PD::Gfx::GetNumIndices());
|
||||
ui7.EndMenu();
|
||||
}
|
||||
ui7.MetricsMenu();
|
||||
PD::TT::End("BuildUI7Menus");
|
||||
PD::TT::Beg("UI7::Context::Update");
|
||||
@@ -320,6 +330,7 @@ int main(int argc, char** argv) {
|
||||
PD::TT::Beg("OSCTX::MainLoop");
|
||||
}
|
||||
font.Delete();
|
||||
debug_font.Delete();
|
||||
PD::Gfx::DeleteTexture(pTex);
|
||||
PD::Gfx::Deinit();
|
||||
pOs->Deinit();
|
||||
|
||||
Reference in New Issue
Block a user