Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTResFont.h
Go to the documentation of this file.
1#ifndef JUTRESFONT_H
2#define JUTRESFONT_H
3
5
6class JKRHeap;
7
9
15 const BlockHeader* getNext() const { return reinterpret_cast<const BlockHeader*>(reinterpret_cast<const u8*>(this) + size); }
18};
19
24class JUTResFont : public JUTFont {
25public:
26 /* 802DF000 */ virtual ~JUTResFont();
27 /* 802DF48C */ virtual void setGX();
28 /* 802DF584 */ virtual void setGX(JUtility::TColor, JUtility::TColor);
29 /* 802DF7C4 */ virtual f32 drawChar_scale(f32, f32, f32, f32, int, bool);
30 /* 802DDFEC */ virtual int getLeading() const;
31 /* 802DE004 */ virtual s32 getAscent() const;
32 /* 802DE010 */ virtual s32 getDescent() const;
33 /* 802DE01C */ virtual s32 getHeight() const;
34 /* 802DDFF8 */ virtual s32 getWidth() const;
35 /* 802DFC64 */ virtual void getWidthEntry(int, JUTFont::TWidth*) const;
36 /* 802DFD0C */ virtual s32 getCellWidth() const;
37 /* 802DFD58 */ virtual s32 getCellHeight() const;
38 /* 802DDFE0 */ virtual int getFontType() const;
39 /* 802DDFD8 */ virtual ResFONT* getResFont() const;
40 /* 802DFDA4 */ virtual bool isLeadByte(int) const;
41 /* 802DFF60 */ virtual void loadImage(int, _GXTexMapID);
42 /* 802DF344 */ virtual void setBlock();
43
44 /* 802DEF94 */ JUTResFont(ResFONT const*, JKRHeap*);
45 /* 802DEF48 */ JUTResFont();
46 /* 802DF08C */ void deleteMemBlocks_ResFont();
47 /* 802DF0B0 */ void initialize_state();
48 /* 802DF0DC */ bool initiate(ResFONT const*, JKRHeap*);
49 /* 802DF13C */ bool protected_initiate(ResFONT const*, JKRHeap*);
50 /* 802DF248 */ void countBlock();
51 /* 802DFBE8 */ void loadFont(int, _GXTexMapID, JUTFont::TWidth*);
52 /* 802DFDD8 */ int getFontCode(int) const;
53 /* 802E00C4 */ int convertSjis(int, u16*) const;
54
59
60 static IsLeadByte_func const saoAboutEncoding_[3];
61
62 // some types uncertain, may need to be fixed
63 /* 0x1C */ int mWidth;
64 /* 0x20 */ int mHeight;
65 /* 0x24 */ GXTexObj mTexObj;
66 /* 0x44 */ int mTexPageIdx;
67 /* 0x48 */ const ResFONT* mResFont;
69 /* 0x50 */ void** mMemBlocks;
73 /* 0x60 */ u16 mWid1BlockNum;
74 /* 0x62 */ u16 mGly1BlockNum;
75 /* 0x64 */ u16 mMap1BlockNum;
76 /* 0x66 */ u16 field_0x66;
77 /* 0x68 */ u16 mMaxCode;
78 /* 0x6C */ const IsLeadByte_func* mIsLeadByte;
79};
80
81#endif /* JUTRESFONT_H */
_GXTexMapID
Definition GXEnum.h:30
bool(* IsLeadByte_func)(int)
Definition JUTResFont.h:8
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRHeap.h:16
Definition JUTFont.h:69
Definition JUTResFont.h:24
ResFONT::INF1 * mInf1Ptr
Definition JUTResFont.h:68
virtual void setGX()
Definition JUTResFont.cpp:182
static IsLeadByte_func const saoAboutEncoding_[3]
Definition JUTResFont.h:132
void deleteMemBlocks_ResFont()
Definition JUTResFont.cpp:38
virtual void loadImage(int, _GXTexMapID)
Definition JUTResFont.cpp:419
virtual void getWidthEntry(int, JUTFont::TWidth *) const
Definition JUTResFont.cpp:312
const IsLeadByte_func * mIsLeadByte
Definition JUTResFont.h:78
void initialize_state()
Definition JUTResFont.cpp:43
u16 mWid1BlockNum
Definition JUTResFont.h:73
virtual bool isLeadByte(int) const
Definition JUTResFont.cpp:352
void delete_and_initialize()
Definition JUTResFont.h:55
virtual s32 getCellWidth() const
Definition JUTResFont.cpp:328
void loadFont(int, _GXTexMapID, JUTFont::TWidth *)
Definition JUTResFont.cpp:301
virtual s32 getAscent() const
Definition JUTCacheFont.cpp:520
const ResFONT * mResFont
Definition JUTResFont.h:67
virtual ~JUTResFont()
Definition JUTResFont.cpp:29
virtual s32 getHeight() const
Definition JUTCacheFont.cpp:530
virtual int getLeading() const
Definition JUTCacheFont.cpp:510
GXTexObj mTexObj
Definition JUTResFont.h:65
ResFONT::GLY1 ** mpGlyphBlocks
Definition JUTResFont.h:71
u16 mGly1BlockNum
Definition JUTResFont.h:74
virtual s32 getWidth() const
Definition JUTCacheFont.cpp:515
u16 field_0x66
Definition JUTResFont.h:76
ResFONT::WID1 ** mpWidthBlocks
Definition JUTResFont.h:70
void ** mMemBlocks
Definition JUTResFont.h:69
ResFONT::MAP1 ** mpMapBlocks
Definition JUTResFont.h:72
bool initiate(ResFONT const *, JKRHeap *)
Definition JUTResFont.cpp:56
int mWidth
Definition JUTResFont.h:63
virtual s32 getDescent() const
Definition JUTCacheFont.cpp:525
JUTResFont()
Definition JUTResFont.cpp:16
virtual ResFONT * getResFont() const
Definition JUTCacheFont.cpp:500
virtual f32 drawChar_scale(f32, f32, f32, f32, int, bool)
Definition JUTResFont.cpp:236
int convertSjis(int, u16 *) const
Definition JUTResFont.cpp:455
u16 mMaxCode
Definition JUTResFont.h:77
int mTexPageIdx
Definition JUTResFont.h:66
bool protected_initiate(ResFONT const *, JKRHeap *)
Definition JUTResFont.cpp:69
virtual s32 getCellHeight() const
Definition JUTResFont.cpp:340
int getFontCode(int) const
Definition JUTResFont.cpp:370
void countBlock()
Definition JUTResFont.cpp:104
u16 mMap1BlockNum
Definition JUTResFont.h:75
int mHeight
Definition JUTResFont.h:64
virtual int getFontType() const
Definition JUTCacheFont.cpp:505
virtual void setBlock()
Definition JUTResFont.cpp:139
Definition JUTResFont.h:14
const BlockHeader * getNext() const
Definition JUTResFont.h:15
u32 magic
Definition JUTResFont.h:16
u32 size
Definition JUTResFont.h:17
Definition JUTFont.h:74
Definition TColor.h:12
Definition JUTFont.h:41
Definition JUTFont.h:12
Definition JUTFont.h:31
Definition JUTFont.h:23
Definition JUTFont.h:11
Definition d_a_ep.cpp:147
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8