Fixed math problem and display submeshes in editor panel

This commit is contained in:
a.pilote
2022-07-16 21:49:17 -04:00
parent 7d9e5b07b5
commit dbec248d8a
8 changed files with 78 additions and 20 deletions

View File

@@ -0,0 +1,23 @@
#include "ModelResourceInspector.h"
#include <imgui/imgui.h>
ModelResourceInspector::ModelResourceInspector(Ref<Nuake::Model> model)
{
_model = model;
}
void ModelResourceInspector::Draw()
{
ImGui::BeginChild("modelInspector",ImVec2(0,0), true);
{
for (uint32_t i = 0; i < std::size(_model->GetMeshes()); i++)
{
std::string headerLabel = "Mesh " + std::to_string(i);
if (ImGui::CollapsingHeader(headerLabel.c_str()))
{
}
}
}
ImGui::EndChild();
}