diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2021-10-24 14:35:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-24 23:35:00 +0200 |
| commit | 5020395dfd34d4dc846e3ea228f6271bfca1c72a (patch) | |
| tree | 9b553bbfc8b0807d7f860964d6044d6ccf6d1342 /include/JSystem/J2DGraph/J2DPrint.h | |
| parent | b88cb8cdc0b7a8af4df22e303ff81e0e617dbc85 (diff) | |
J2D structs + print / fix GX + MSL string headers (#157)
* J2D structs + print / fix GX + MSL string headers
* remove msl_c/string.h
Diffstat (limited to 'include/JSystem/J2DGraph/J2DPrint.h')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPrint.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/include/JSystem/J2DGraph/J2DPrint.h b/include/JSystem/J2DGraph/J2DPrint.h index b4b219dadf..7d92ef4cae 100644 --- a/include/JSystem/J2DGraph/J2DPrint.h +++ b/include/JSystem/J2DGraph/J2DPrint.h @@ -1,6 +1,68 @@ #ifndef J2DPRINT_H #define J2DPRINT_H +#include "JSystem/J2DGraph/J2DTextBox.h" +#include "JSystem/JUtility/TColor.h" +#include "MSL_C.PPCEABI.bare.H/MSL_Common/Src/printf.h" #include "dolphin/types.h" +class J2DPrint { +public: + struct TSize { + /* 0x0 */ f32 field_0x0; + /* 0x4 */ f32 field_0x4; + }; + + /* 802F4394 */ J2DPrint(JUTFont*, f32, f32, JUtility::TColor, JUtility::TColor, + JUtility::TColor, JUtility::TColor); + /* 802F4658 */ static u8* setBuffer(size_t); + /* 802F46C4 */ void setFontSize(); + /* 802F475C */ void locate(f32, f32); + /* 802F4778 */ void print(f32, f32, u8, char const*, ...); + /* 802F4828 */ void printReturn(char const*, f32, f32, J2DTextBoxHBinding, J2DTextBoxVBinding, + f32, f32, u8); + /* 802F4B4C */ void parse(u8 const*, int, int, u16*, J2DPrint::TSize&, u8, bool); + /* 802F52E8 */ void doCtrlCode(int); + /* 802F5410 */ void doEscapeCode(u8 const**, u8); + /* 802F594C */ void initchar(); + /* 802F59C0 */ void getNumberS32(u8 const**, s32, s32, int); + /* 802F5AC4 */ void getNumberF32(u8 const**, f32, f32, int); + + /* 802F4420 */ virtual ~J2DPrint(); + + static const u8* mStrBuff; + static size_t mStrBuffSize; + +private: + /* 802F4468 */ void private_initiate(JUTFont*, f32, f32, JUtility::TColor, JUtility::TColor, + JUtility::TColor, JUtility::TColor, bool); + + /* 0x04 */ JUTFont* mFont; + /* 0x08 */ JUtility::TColor field_0x8; + /* 0x0C */ JUtility::TColor field_0xc; + /* 0x10 */ f32 field_0x10; + /* 0x14 */ f32 field_0x14; + /* 0x18 */ f32 field_0x18; + /* 0x1C */ f32 field_0x1c; + /* 0x20 */ s16 field_0x20; + /* 0x22 */ u8 field_0x22; + /* 0x24 */ f32 field_0x24; + /* 0x28 */ f32 field_0x28; + /* 0x2C */ f32 field_0x2c; + /* 0x30 */ f32 mCursorV; + /* 0x34 */ f32 field_0x34; + /* 0x38 */ JUtility::TColor field_0x38; + /* 0x3C */ JUtility::TColor field_0x3c; + /* 0x40 */ JUtility::TColor mCharColor; + /* 0x44 */ JUtility::TColor mGradColor; + /* 0x48 */ f32 field_0x48; + /* 0x4C */ f32 field_0x4c; + /* 0x50 */ f32 mFontSizeX; + /* 0x54 */ f32 mFontSizeY; + /* 0x58 */ s16 field_0x58; + /* 0x5A */ u8 field_0x5a; +}; // Size: 0x5C + +f32 J2DPrint_print_alpha_va(J2DPrint*, u8, const char*, va_list); + #endif /* J2DPRINT_H */ |
