diff options
Diffstat (limited to 'src/render/color.h')
-rw-r--r-- | src/render/color.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/render/color.h b/src/render/color.h new file mode 100644 index 0000000..dfb02e1 --- /dev/null +++ b/src/render/color.h @@ -0,0 +1,27 @@ +/** +* Some color operating here. +*/ +#ifndef __JIN_COLOR_H +#define __JIN_COLOR_H +#include "utils/endian.h" + +namespace jin +{ +namespace render +{ + + union color { + struct { +#if JIN_BYTEORDER == JIN_BIG_ENDIAN + unsigned char r, g, b, a; +#else + unsigned char a, b, g, r; +#endif + }rgba; + int word; + }; + +} +} + +#endif |