mirror of
https://github.com/zeldaret/tp
synced 2026-06-11 13:10:34 -04:00
2f4904dae2
* move d_a_itembase_static * move d_a_item_static * moved Z2StatusMgr * clang * fixes * clang? * move d_save * move d_meter2_info * some d_meter2_info fixes * move most d_a_player * move d_bg_s stuff * move c_cc_s stuff * move d_cc stuff * move d_attention / d_event / d_stage
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 */
|