Glm::vec3 in ofxImGui

Hello!

In ofxGui I can update a glm:vec3 parameter easlily this way:
my_parameters.add(position.set("position", glm::vec3(0,0,0), glm::vec3(-2,-2,-2), glm::vec3(2, 2, 2)));

How can I do the same in ofxImGui?

Thanks!

there’s an example with helpers to use ofParameters:

Thanks @moebiussurfing but I wanted to try to avoid using ofParameters (I don’t know if that’s a good or bad practice). Ie. with color it is super easy too:

gui.begin();
{
    ImGui::ColorEdit3("Background Color", (float*)&backgroundColor);
}
gui.end()

but I couldn’t find anything similar to ImGui::Vector3 or similar

Thanks

                static float position[] = {0.0f, 0.0f};
                ImGui::SliderFloat2("position", position, -1.0f, 1.0f);

                static glm::vec3 myVec{0.0f, 0.0f, 0.0f};
                ImGui::SliderFloat3("myVec", (float*)&myVec, 0.0f, 1.0f);

                static ImVec4 myImVec{1.0f, 1.0f, 1.0f, 1.0f};
                ImGui::SliderFloat4("myImVec", (float*)&myImVec, 0.0f, 1.0f);

oooh I see!

Thanks!