Created a file that contains functions for agnostic text output

This commit is contained in:
2024-03-17 18:09:01 -04:00
parent c2bedb0601
commit 43ba4aba0c
2 changed files with 23 additions and 0 deletions

10
includes/display_text.hpp Normal file
View File

@@ -0,0 +1,10 @@
#include "includes/raygui_helpers.hpp"
/* Constants that can be used by caller function. */
const int IF_CLI = 1;
const int IF_GUI = 2;
/* This function is used to display text. It is used to abstract the differences
between GUI invocation and CLI invocation. The if_mode parameter is used to
determine whether the game was launched from GUI or CLI. */
void display_text(std::string to_disp, const int if_mode);