adding plane shape and universal guizmo (this is the wrong branch)
This commit is contained in:
@@ -283,4 +283,16 @@ namespace OpenEngine {
|
||||
"%.2f",
|
||||
ImGuiSliderFlags_AlwaysClamp);
|
||||
}
|
||||
|
||||
void PlaneShapeOnImGuiRender(entt::registry& registry, entt::entity entity)
|
||||
{
|
||||
auto& planed_comp = registry.get<PlaneShapeComponent>(entity);
|
||||
|
||||
ImGui::DragFloat("Size",
|
||||
&planed_comp.extent,
|
||||
0.1f,
|
||||
0.01f, FLT_MAX,
|
||||
"%.2f",
|
||||
ImGuiSliderFlags_AlwaysClamp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user