mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-10 15:15:59 +00:00
Add unused statics, fix CColor constructor
Former-commit-id: e7117197dae1d32ae1264cca528cc714ed71bb18
This commit is contained in:
parent
fe1f119091
commit
6f8c6b28ba
@ -3,19 +3,23 @@
|
|||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
#pragma cpp_extensions on
|
||||||
|
|
||||||
class CColor {
|
class CColor {
|
||||||
public:
|
public:
|
||||||
CColor(u32 col) : mRgba(col) {}
|
CColor(u32 col) : mRgba(col) {}
|
||||||
//CColor(float r, float g, float b, float a = 1.f) : mR(r * 255.f), mG(g * 255.f), mB(b * 255.f), mA(a * 255.f) {}
|
CColor(f32 r, f32 g, f32 b, f32 a = 1.f) : mR(r * 255.f), mG(g * 255.f), mB(b * 255.f), mA(a * 255.f) {}
|
||||||
|
|
||||||
|
|
||||||
static const CColor& Black();
|
static const CColor& Black();
|
||||||
static const CColor& White();
|
static const CColor& White();
|
||||||
static const CColor& Grey();
|
static const CColor& Grey();
|
||||||
static const CColor& Red();
|
static const CColor& Red();
|
||||||
|
static const CColor& Green();
|
||||||
static const CColor& Blue();
|
static const CColor& Blue();
|
||||||
static const CColor& Yellow();
|
static const CColor& Yellow();
|
||||||
|
static const CColor& Purple();
|
||||||
static const CColor& Orange();
|
static const CColor& Orange();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
|
@ -14,6 +14,8 @@ const CColor& CColor::Black() { return sBlackColor; }
|
|||||||
const CColor& CColor::White() { return sWhiteColor; }
|
const CColor& CColor::White() { return sWhiteColor; }
|
||||||
const CColor& CColor::Grey() { return sGreyColor; }
|
const CColor& CColor::Grey() { return sGreyColor; }
|
||||||
const CColor& CColor::Red() { return sRedColor; }
|
const CColor& CColor::Red() { return sRedColor; }
|
||||||
|
const CColor& CColor::Green() { return sGreenColor; }
|
||||||
const CColor& CColor::Blue() { return sBlueColor; }
|
const CColor& CColor::Blue() { return sBlueColor; }
|
||||||
const CColor& CColor::Yellow() { return sYellowColor; }
|
const CColor& CColor::Yellow() { return sYellowColor; }
|
||||||
|
const CColor& CColor::Purple() { return sPurpleColor; }
|
||||||
const CColor& CColor::Orange() { return sOrangeColor; }
|
const CColor& CColor::Orange() { return sOrangeColor; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user