From 35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Wed, 11 Feb 2026 08:05:44 +0000 Subject: init --- source/raylib.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source/raylib.c (limited to 'source/raylib.c') diff --git a/source/raylib.c b/source/raylib.c new file mode 100644 index 0000000..935feee --- /dev/null +++ b/source/raylib.c @@ -0,0 +1,33 @@ +/* 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); + } +} -- cgit v1.2.3