mirror of https://github.com/AxioDL/zeus.git
CColor: Use using where applicable
We can also simplify RGBA32's declaration. This also allows the type to be forward declared.
This commit is contained in:
parent
ef23d36916
commit
9058b6bbcc
|
@ -25,16 +25,16 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace zeus {
|
namespace zeus {
|
||||||
typedef uint8_t Comp8;
|
using Comp8 = uint8_t;
|
||||||
typedef uint32_t Comp32;
|
using Comp32 = uint32_t;
|
||||||
constexpr float OneOver255 = 1.f / 255.f;
|
constexpr float OneOver255 = 1.f / 255.f;
|
||||||
|
|
||||||
typedef union {
|
union RGBA32 {
|
||||||
struct {
|
struct {
|
||||||
Comp8 r, g, b, a;
|
Comp8 r, g, b, a;
|
||||||
};
|
};
|
||||||
Comp32 rgba;
|
Comp32 rgba;
|
||||||
} RGBA32;
|
};
|
||||||
|
|
||||||
class CVector4f;
|
class CVector4f;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue