mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
DragFloat() examples #180
This commit is contained in:
parent
962aa4c396
commit
c93f34238e
12
imgui.cpp
12
imgui.cpp
@ -9727,6 +9727,18 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
ImGui::InputFloat3("input float3", vec4a);
|
ImGui::InputFloat3("input float3", vec4a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
static int i1=50;
|
||||||
|
static int i2=42;
|
||||||
|
ImGui::DragInt("drag int", &i1, 1);
|
||||||
|
ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100);
|
||||||
|
|
||||||
|
static float f1=1.00f;
|
||||||
|
static float f2=0.0067f;
|
||||||
|
ImGui::DragFloat("drag float", &f1, 1.0f);
|
||||||
|
ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f");
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
static int i1=0;
|
static int i1=0;
|
||||||
static int i2=42;
|
static int i2=42;
|
||||||
|
Loading…
Reference in New Issue
Block a user