diff options
| author | Emil Williams | 2026-02-11 08:05:44 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-02-11 08:05:44 +0000 |
| commit | 35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab (patch) | |
| tree | 81592743a5512e486913d796f7201a65825fc29f /source/raylib.c | |
| download | Monobomberman-35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab.tar.xz Monobomberman-35bc8bc9f7df8bdb731d7d190b50d05ebd9c94ab.tar.zst | |
init
Diffstat (limited to 'source/raylib.c')
| -rw-r--r-- | source/raylib.c | 33 |
1 files changed, 33 insertions, 0 deletions
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 <raylib.h> + +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 <raygui.h> +#include <style_dark.h> +#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); + } +} |
