blob: af8d3bab5020b7556d53be8e03696d813de4c66e (
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
32
33
34
35
|
#pragma once
#include "../Utilities/Type.h"
namespace Internal
{
struct Color
{
Color(float r = 0, float g = 0, float b = 0, float a = 0)
{
this->r = r;
this->g = g;
this->b = b;
this->a = a;
}
float r, g, b, a;
};
struct Color32
{
Color32(unsigned char r = 0, unsigned char g = 0, unsigned char b = 0, unsigned char a = 0)
{
this->r = r;
this->g = g;
this->b = b;
this->a = a;
}
unsigned char r, g, b, a;
};
}
typedef Internal::Color Color;
typedef Internal::Color32 Color32;
|