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

13
display_text.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "includes/display_text.hpp"
#include <iostream>
#include <string>
void display_text(std::string to_disp, const int if_mode) {
if (if_mode == IF_CLI) {
std::cout << to_disp << std::endl;
}
if (if_mode == IF_GUI) {
display_text_raygui(to_disp);
}
return;
}