blob: 856cd4873c5ea8f1879f892f3f01cc620639b6a6 (
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
|
/**
* 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
|