Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTCacheFont.h
Go to the documentation of this file.
1#ifndef JUTCACHEFONT_H
2#define JUTCACHEFONT_H
3
5
6class JKRAramBlock;
7
12class JUTCacheFont : public JUTResFont {
13public:
17 /* 0x08 */ u16 field_0x8;
18 /* 0x0A */ u16 field_0xa;
19 /* 0x0C */ u16 field_0xc;
20 /* 0x0E */ u16 field_0xe;
21 /* 0x10 */ u32 field_0x10;
22 /* 0x14 */ u16 mTexFormat;
23 /* 0x16 */ u16 field_0x16;
24 /* 0x18 */ u16 field_0x18;
25 /* 0x1A */ u16 mWidth;
26 /* 0x1C */ u16 mHeight;
27 /* 0x1E */ u16 field_0x1e;
28 };
29
31 /* 0x20 */ GXTexObj mTexObj;
32 /* 0x40 */ u8 mImage[];
33 }; // Size: 0x40
34
39
40 /* 802DD188 */ JUTCacheFont(ResFONT const*, u32, JKRHeap*);
41 /* 802DD29C */ void deleteMemBlocks_CacheFont();
42 /* 802DD320 */ void initialize_state();
43 /* 802DD35C */ int getMemorySize(ResFONT const*, u16*, u32*, u16*, u32*, u16*, u32*, u32*);
44 /* 802DD4EC */ int initiate(ResFONT const*, void*, u32, JKRHeap*);
45 /* 802DD54C */ bool internal_initiate(ResFONT const*, void*, u32, JKRHeap*);
46 /* 802DD650 */ bool allocArea(void*, u32, JKRHeap*);
47 /* 802DD804 */ bool allocArray(JKRHeap*);
48 /* 802DDB0C */ TGlyphCacheInfo* determineBlankPage();
50 int*, int*);
51 /* 802DDD98 */ TCachePage* loadCache_char_subroutine(int*, bool);
52 /* 802DDEE0 */ void invalidiateAllCache();
53 /* 802DDF68 */ void unlink(JUTCacheFont::TGlyphCacheInfo*);
54 /* 802DDFAC */ void prepend(JUTCacheFont::TGlyphCacheInfo*);
55
56 /* 802DD208 */ virtual ~JUTCacheFont();
57 /* 802DDCE4 */ virtual void loadImage(int, _GXTexMapID);
58 /* 802DD8EC */ virtual void setBlock();
59
60 void setPagingType(EPagingType type) { mPagingType = type; }
61
62 static u32 calcCacheSize(u32 param_0, int param_1) { return (ALIGN_NEXT(param_0, 0x20) + 0x40) * param_1; }
63 GXTexObj* getTexObj(void* buffer) { return &((TCachePage*)buffer)->mTexObj; }
64
65private:
66 /* 0x70 */ u32 mTotalWidSize;
67 /* 0x74 */ u32 mTotalGlySize;
68 /* 0x78 */ u32 mTotalMapSize;
69 /* 0x7C */ void* field_0x7c;
70 /* 0x80 */ void* field_0x80;
71 /* 0x84 */ void* field_0x84;
72 /* 0x88 */ u32 mMaxSheetSize;
74 /* 0x90 */ void* mCacheBuffer;
75 /* 0x94 */ int field_0x94;
76 /* 0x98 */ u32 mCachePage;
80 /* 0xA8 */ u32 field_0xa8;
82 /* 0xB0 */ u8 field_0xb0;
83 /* 0xB4 */ int field_0xb4;
84}; // Size: 0xB8
85
86#endif /* JUTCACHEFONT_H */
_GXTexMapID
Definition GXEnum.h:30
static OSTime buffer
Definition ai.c:202
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRAramBlock.h:12
Definition JKRHeap.h:16
Definition JUTCacheFont.h:12
virtual void loadImage(int, _GXTexMapID)
Definition JUTCacheFont.cpp:387
u32 field_0xa8
Definition JUTCacheFont.h:80
static u32 calcCacheSize(u32 param_0, int param_1)
Definition JUTCacheFont.h:62
void invalidiateAllCache()
Definition JUTCacheFont.cpp:444
bool allocArea(void *, u32, JKRHeap *)
Definition JUTCacheFont.cpp:193
u32 mTotalMapSize
Definition JUTCacheFont.h:68
void deleteMemBlocks_CacheFont()
Definition JUTCacheFont.cpp:37
virtual void setBlock()
Definition JUTCacheFont.cpp:274
u32 mTotalGlySize
Definition JUTCacheFont.h:67
u32 mMaxSheetSize
Definition JUTCacheFont.h:72
void * field_0x7c
Definition JUTCacheFont.h:69
bool internal_initiate(ResFONT const *, void *, u32, JKRHeap *)
Definition JUTCacheFont.cpp:165
virtual ~JUTCacheFont()
Definition JUTCacheFont.cpp:23
TCachePage * loadCache_char_subroutine(int *, bool)
Definition JUTCacheFont.cpp:402
TGlyphCacheInfo * determineBlankPage()
Definition JUTCacheFont.cpp:334
u32 mCachePage
Definition JUTCacheFont.h:76
void getGlyphFromAram(JUTCacheFont::TGlyphCacheInfo *, JUTCacheFont::TCachePage *, int *, int *)
Definition JUTCacheFont.cpp:364
void prepend(JUTCacheFont::TGlyphCacheInfo *)
Definition JUTCacheFont.cpp:486
int field_0x94
Definition JUTCacheFont.h:75
int field_0xb4
Definition JUTCacheFont.h:83
u32 mTotalWidSize
Definition JUTCacheFont.h:66
EPagingType
Definition JUTCacheFont.h:35
@ PAGE_TYPE_0
Definition JUTCacheFont.h:36
@ PAGE_TYPE_1
Definition JUTCacheFont.h:37
JKRAramBlock * field_0xac
Definition JUTCacheFont.h:81
void * field_0x84
Definition JUTCacheFont.h:71
void * field_0x80
Definition JUTCacheFont.h:70
GXTexObj * getTexObj(void *buffer)
Definition JUTCacheFont.h:63
void initialize_state()
Definition JUTCacheFont.cpp:52
void setPagingType(EPagingType type)
Definition JUTCacheFont.h:60
EPagingType mPagingType
Definition JUTCacheFont.h:73
void * mCacheBuffer
Definition JUTCacheFont.h:74
bool allocArray(JKRHeap *)
Definition JUTCacheFont.cpp:249
TGlyphCacheInfo * field_0x9c
Definition JUTCacheFont.h:77
TGlyphCacheInfo * field_0xa0
Definition JUTCacheFont.h:78
int getMemorySize(ResFONT const *, u16 *, u32 *, u16 *, u32 *, u16 *, u32 *, u32 *)
Definition JUTCacheFont.cpp:73
u8 field_0xb0
Definition JUTCacheFont.h:82
void unlink(JUTCacheFont::TGlyphCacheInfo *)
Definition JUTCacheFont.cpp:470
TGlyphCacheInfo * field_0xa4
Definition JUTCacheFont.h:79
int initiate(ResFONT const *, void *, u32, JKRHeap *)
Definition JUTCacheFont.cpp:151
Definition JUTResFont.h:24
Definition JUTCacheFont.h:30
u8 mImage[]
Definition JUTCacheFont.h:32
GXTexObj mTexObj
Definition JUTCacheFont.h:31
Definition JUTCacheFont.h:14
u16 mHeight
Definition JUTCacheFont.h:26
u32 field_0x10
Definition JUTCacheFont.h:21
u16 mWidth
Definition JUTCacheFont.h:25
TGlyphCacheInfo * mNext
Definition JUTCacheFont.h:16
u16 field_0xa
Definition JUTCacheFont.h:18
u16 mTexFormat
Definition JUTCacheFont.h:22
u16 field_0x1e
Definition JUTCacheFont.h:27
u16 field_0x16
Definition JUTCacheFont.h:23
u16 field_0x8
Definition JUTCacheFont.h:17
u16 field_0xc
Definition JUTCacheFont.h:19
u16 field_0x18
Definition JUTCacheFont.h:24
u16 field_0xe
Definition JUTCacheFont.h:20
TGlyphCacheInfo * mPrev
Definition JUTCacheFont.h:15
Definition JUTFont.h:11
Definition d_a_ep.cpp:147
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8