Renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete).

This commit is contained in:
omar
2017-12-24 18:16:22 +01:00
parent cead207535
commit 1b86e7343f
18 changed files with 78 additions and 72 deletions

View File

@ -9,7 +9,7 @@
void DebugHUD_InitDefaults( DebugHUD *hud )
{
hud->show_test_window = true;
hud->show_demo_window = true;
hud->show_example_window = true;
hud->rotation_speed = 15.0f;
@ -26,10 +26,10 @@ void DebugHUD_InitDefaults( DebugHUD *hud )
void DebugHUD_DoInterface(DebugHUD *hud)
{
if (hud->show_test_window)
if (hud->show_demo_window)
{
ImGui::SetNextWindowPos(ImVec2(650, 20), ImGuiCond_FirstUseEver);
ImGui::ShowTestWindow(&hud->show_test_window );
ImGui::ShowDemoWindow(&hud->show_demo_window );
}
if (hud->show_example_window)

View File

@ -6,7 +6,7 @@
typedef struct DebugHUD
{
bool show_test_window;
bool show_demo_window;
bool show_example_window;
float rotation_speed;
float cubeColor1[4];