#include #include #include #include #include /* meson include directories */ /* why is this defined in saffron.c, you ask, and not in a separate saffron_theme.c file? because i cant be bothered to make a whole separate .c file for theming which is pretty much mostly headers and some tweaks around the engine */ const SaffronTheme SAFFRON_DEFAULT_THEME = { .bg = {30, 30, 46, 255}, .fg = {205, 214, 244, 255}, .primary = {137, 180, 250, 255}, .secondary = {166, 227, 161, 255}, .tertiary = {203, 166, 247, 255} }; bool saffron_init(void) { if (!SDL_Init(SDL_INIT_VIDEO)) { printf("[Saffron] SDL init failed: %s\n", SDL_GetError()); return false; } if (!TTF_Init()) { printf("[Saffron] TTF init failed: %s\n", SDL_GetError()); return false; } return true; } void saffron_quit(void) { TTF_Quit(); SDL_Quit(); }