aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/render/color.h
blob: 6f34b4a774f35db2352ce0ef6b9ece89dfdaa2ff (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