4 #include "../lib/include/endianness.h"
8 #ifdef IS_LITTLE_ENDIAN
23 #ifndef IN_KDEVELOP_PARSER
25 #define SRGB(R, G, B) ((sdl_rgb_t) {.colors.r = R, .colors.g = G, .colors.b = B, .colors.a = 0xff})
26 #define SRGB_BLUE SRGB(0x0,0x0,0xFF)
28 //#define SRGB2(R, G, B) ((union { struct {uint8_t b;uint8_t g;uint8_t r;uint8_t a;} colors; uint32_t asInt; }) {.colors.r = R, .colors.g = G, .colors.b = B, .colors.a = 0})
29 #define SRGB_WHITE SRGB(0xFF,0xFF,0xFF)
30 #define SRGB_BLACK SRGB(0x00,0x00,0x00)
35 #pragma GCC diagnostic ignored "-Wmissing-field-initializers"