Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
98fa77f0
Commit
98fa77f0
authored
Mar 03, 2019
by
chili
Browse files
remove useless textinput
parent
79f9c623
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/App.cpp
View file @
98fa77f0
...
@@ -88,14 +88,12 @@ void App::DoFrame()
...
@@ -88,14 +88,12 @@ void App::DoFrame()
d
->
Draw
(
wnd
.
Gfx
()
);
d
->
Draw
(
wnd
.
Gfx
()
);
}
}
static
char
buffer
[
1024
];
// imgui window to control simulation speed
// imgui window to control simulation speed
if
(
ImGui
::
Begin
(
"Simulation Speed"
)
)
if
(
ImGui
::
Begin
(
"Simulation Speed"
)
)
{
{
ImGui
::
SliderFloat
(
"Speed Factor"
,
&
speed_factor
,
0.0
f
,
4.0
f
);
ImGui
::
SliderFloat
(
"Speed Factor"
,
&
speed_factor
,
0.0
f
,
4.0
f
);
ImGui
::
Text
(
"
Application average
%.3f ms/frame (%.1f FPS)"
,
1000.0
f
/
ImGui
::
GetIO
().
Framerate
,
ImGui
::
GetIO
().
Framerate
);
ImGui
::
Text
(
"%.3f ms/frame (%.1f FPS)"
,
1000.0
f
/
ImGui
::
GetIO
().
Framerate
,
ImGui
::
GetIO
().
Framerate
);
ImGui
::
Input
Text
(
"
Butts"
,
buffer
,
sizeof
(
buffer
)
);
ImGui
::
Text
(
"
Status: %s"
,
wnd
.
kbd
.
KeyIsPressed
(
VK_SPACE
)
?
"PAUSED"
:
"RUNNING"
);
}
}
ImGui
::
End
();
ImGui
::
End
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment