mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-05 12:38:46 +02:00
Renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete).
This commit is contained in:
@ -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)
|
||||
|
@ -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];
|
||||
|
Reference in New Issue
Block a user