game: Improve OpenGL version detection and make requirement errors more obvious to the user (#2787)

This commit is contained in:
Tyler Wilding
2023-06-30 20:05:58 -05:00
committed by GitHub
parent 5f8c21b1de
commit 436bac83ec
17 changed files with 6837 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#include "dialogs.h"
namespace dialogs {
// char const * const aDialogType , /* "ok" "okcancel" "yesno" "yesnocancel" */
// char const * const aIconType , /* "info" "warning" "error" "question" */
// int const aDefaultButton ) /* 0 for cancel/no , 1 for ok/yes , 2 for no in yesnocancel */
void create_error_message_dialog(const std::string& title, const std::string& message) {
tinyfd_messageBox(title.data(), message.data(), "ok", "error", 1);
}
} // namespace dialogs