mirror of https://github.com/zeldaret/tp.git
25 lines
487 B
C++
25 lines
487 B
C++
#ifndef JUTFONT_H
|
|
#define JUTFONT_H
|
|
|
|
#include "dolphin/gx/GXTexture.h"
|
|
#include "dolphin/types.h"
|
|
|
|
namespace JUtility {
|
|
|
|
struct TColor : _GXColor {
|
|
TColor() { set(-1); }
|
|
|
|
TColor(u32 raw) { *(u32*)&r = raw; }
|
|
|
|
void set(u32 col) { *(u32*)&r = col; }
|
|
|
|
u32 toUInt32() const { return *(u32*)&r; }
|
|
|
|
operator u32() const { return toUInt32(); }
|
|
void operator=(const TColor& rhs) { ((_GXColor*)this)->operator=(rhs); }
|
|
};
|
|
|
|
} // namespace JUtility
|
|
|
|
#endif /* JUTFONT_H */
|