/* raylib.c & raygui.c */ #include Font DefaultFont(char * choice) { Font font = LoadFont(choice); if (!IsFontValid(font)) { font = GetFontDefault(); } return font; } /* raygui.c */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wshadow" #pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-result" #pragma GCC diagnostic ignored "-Wpragmas" #pragma GCC diagnostic ignored "-Wunknown-warning-option" #pragma GCC diagnostic ignored "-Walloc-size-larger-than=" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #define RAYGUI_IMPLEMENTATION #include #include #pragma GCC diagnostic pop /* removes the timewaster of decompressing and loading a font never used */ void GuiLoadStyleDarkSimple(void) { for (int i = 0; i < DARK_STYLE_PROPS_COUNT; i++) { GuiSetStyle(darkStyleProps[i].controlId, darkStyleProps[i].propertyId, darkStyleProps[i].propertyValue); } }