blob: eb2875e62250cfab07c7399b62e1d145cdce02be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/**
* Some color operating here.
*/
#ifndef __JIN_COLOR_H
#define __JIN_COLOR_H
#include "../modules.h"
#if JIN_MODULES_RENDER
#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;
};
} // render
} // jin
#endif // JIN_MODULES_RENDER
#endif // __JIN_COLOR_H
|