diff --git a/includes/raygui_helpers.hpp b/includes/raygui_helpers.hpp index 091b951..0d38ab0 100644 --- a/includes/raygui_helpers.hpp +++ b/includes/raygui_helpers.hpp @@ -4,8 +4,8 @@ /* Display the given text, centered on the screen, as a label. NEEDS RAYGUI LIBRARY. */ -void display_text_centered(std::string to_disp); +void display_text_raygui(std::string to_disp); /* Display the given string, and exit the game after 'time' seconds. */ -void display_and_exit(std::string to_disp, int time); +void display_and_exit_raygui(std::string to_disp, int time); #endif diff --git a/raygui_helpers.cpp b/raygui_helpers.cpp index 886e7bb..49a7de5 100644 --- a/raygui_helpers.cpp +++ b/raygui_helpers.cpp @@ -1,7 +1,7 @@ #include "includes/raygui_helpers.hpp" #include "includes/raygui/raygui.h" #include "includes/timer.h" -void display_text_centered(std::string to_disp) { +void display_text_raygui(std::string to_disp) { const char* to_disp_cstr = to_disp.c_str(); Vector2 label_size = MeasureTextEx(GetFontDefault(), to_disp_cstr, GuiGetStyle(DEFAULT, TEXT_SIZE)+1, GuiGetStyle(DEFAULT, TEXT_SPACING)+1); // The '+1' is there to account for any rounding errors @@ -12,8 +12,8 @@ void display_text_centered(std::string to_disp) { return; } -void display_and_exit(std::string to_disp, int time) { - display_text_centered(to_disp); +void display_and_exit_raygui(std::string to_disp, int time) { + display_text_raygui(to_disp); Timer timer = timer_init(time); while (!timer_done(timer)); return;