Merge pull request #10 from lioncash/using

CColor: Use using where applicable
This commit is contained in:
Phillip Stephens 2019-09-03 19:52:07 -07:00 committed by GitHub
commit f0a7db2282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -25,16 +25,16 @@
#endif
namespace zeus {
typedef uint8_t Comp8;
typedef uint32_t Comp32;
using Comp8 = uint8_t;
using Comp32 = uint32_t;
constexpr float OneOver255 = 1.f / 255.f;
typedef union {
union RGBA32 {
struct {
Comp8 r, g, b, a;
};
Comp32 rgba;
} RGBA32;
};
class CVector4f;