Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 910 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 910 Bytes

ImGuiRangeSlider

A range slider for Dear ImGui https://github.com/ocornut/imgui

    int max = 10000;
    int min = 1;
    static int ilow = 1, ihigh = 5000;
    static int ilow1 = 1, ihigh1 = 5000;
    static int ilow2 = 2, ihigh2 = 5000;
    static float flow = 1, fhigh = 5000;
    static float flow1 = 1, fhigh1 = 5000;
    static float flow2 = 1, fhigh2 = 5000;
    ImGui::RangeSliderInt("CMDS", min, max, ilow, ihigh);
    ImGui::RangeSliderInt("CMDS1", min, max, ilow1, ihigh1);
    ImGui::RangeSliderInt("CMDS2", min, max, ilow2, ihigh2);
    ImGui::RangeSliderFloat("CMDS3f", min, max, flow2, fhigh2);
    ImGui::RangeSliderFloat("CMDS4f", min, max, flow1, fhigh1);
    ImGui::RangeSliderFloat("CMDS5f", min, max, flow, fhigh);
    
    basic sample usage
    

range selector