mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Fixed math problem and display submeshes in editor panel
This commit is contained in:
23
Editor/src/ComponentsPanel/ModelResourceInspector.cpp
Normal file
23
Editor/src/ComponentsPanel/ModelResourceInspector.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user