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