Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTCacheFont Class Reference

#include <JUTCacheFont.h>

+ Inheritance diagram for JUTCacheFont:
+ Collaboration diagram for JUTCacheFont:

Classes

struct  TCachePage
 
struct  TGlyphCacheInfo
 

Public Types

enum  EPagingType { PAGE_TYPE_0 , PAGE_TYPE_1 }
 

Public Member Functions

 JUTCacheFont (ResFONT const *, u32, JKRHeap *)
 
void deleteMemBlocks_CacheFont ()
 
void initialize_state ()
 
int getMemorySize (ResFONT const *, u16 *, u32 *, u16 *, u32 *, u16 *, u32 *, u32 *)
 
int initiate (ResFONT const *, void *, u32, JKRHeap *)
 
bool internal_initiate (ResFONT const *, void *, u32, JKRHeap *)
 
bool allocArea (void *, u32, JKRHeap *)
 
bool allocArray (JKRHeap *)
 
TGlyphCacheInfodetermineBlankPage ()
 
void getGlyphFromAram (JUTCacheFont::TGlyphCacheInfo *, JUTCacheFont::TCachePage *, int *, int *)
 
TCachePageloadCache_char_subroutine (int *, bool)
 
void invalidiateAllCache ()
 
void unlink (JUTCacheFont::TGlyphCacheInfo *)
 
void prepend (JUTCacheFont::TGlyphCacheInfo *)
 
virtual ~JUTCacheFont ()
 
virtual void loadImage (int, _GXTexMapID)
 
virtual void setBlock ()
 
void setPagingType (EPagingType type)
 
GXTexObjgetTexObj (void *buffer)
 
- Public Member Functions inherited from JUTResFont
virtual ~JUTResFont ()
 
virtual void setGX ()
 
virtual void setGX (JUtility::TColor, JUtility::TColor)
 
virtual f32 drawChar_scale (f32, f32, f32, f32, int, bool)
 
virtual int getLeading () const
 
virtual s32 getAscent () const
 
virtual s32 getDescent () const
 
virtual s32 getHeight () const
 
virtual s32 getWidth () const
 
virtual void getWidthEntry (int, JUTFont::TWidth *) const
 
virtual s32 getCellWidth () const
 
virtual s32 getCellHeight () const
 
virtual int getFontType () const
 
virtual ResFONTgetResFont () const
 
virtual bool isLeadByte (int) const
 
 JUTResFont (ResFONT const *, JKRHeap *)
 
 JUTResFont ()
 
void deleteMemBlocks_ResFont ()
 
void initialize_state ()
 
bool initiate (ResFONT const *, JKRHeap *)
 
bool protected_initiate (ResFONT const *, JKRHeap *)
 
void countBlock ()
 
void loadFont (int, _GXTexMapID, JUTFont::TWidth *)
 
int getFontCode (int) const
 
int convertSjis (int, u16 *) const
 
void delete_and_initialize ()
 
- Public Member Functions inherited from JUTFont
 JUTFont ()
 
virtual ~JUTFont ()
 
void initialize_state ()
 
void setCharColor (JUtility::TColor col1)
 
void setGradColor (JUtility::TColor col1, JUtility::TColor col2)
 
f32 drawString_size_scale (f32 posX, f32 posY, f32 width, f32 height, const char *str, u32 usz, bool visible)
 
void drawString (int posX, int posY, const char *str, bool visible)
 
void drawString_size (int posX, int posY, const char *str, u32 len, bool visible)
 
void drawString_scale (f32 posX, f32 posY, f32 width, f32 height, const char *str, bool visible)
 
int getWidth (int i_no) const
 
bool isValid () const
 
bool isFixed () const
 
int getFixedWidth () const
 

Static Public Member Functions

static u32 calcCacheSize (u32 param_0, int param_1)
 
- Static Public Member Functions inherited from JUTFont
static bool isLeadByte_1Byte (int b)
 
static bool isLeadByte_2Byte (int b)
 
static bool isLeadByte_ShiftJIS (int b)
 
static bool isLeadByte_EUC (int b)
 

Private Attributes

u32 mTotalWidSize
 
u32 mTotalGlySize
 
u32 mTotalMapSize
 
voidfield_0x7c
 
voidfield_0x80
 
voidfield_0x84
 
u32 mMaxSheetSize
 
EPagingType mPagingType
 
voidmCacheBuffer
 
int field_0x94
 
u32 mCachePage
 
TGlyphCacheInfofield_0x9c
 
TGlyphCacheInfofield_0xa0
 
TGlyphCacheInfofield_0xa4
 
u32 field_0xa8
 
JKRAramBlockfield_0xac
 
u8 field_0xb0
 
int field_0xb4
 

Additional Inherited Members

- Public Attributes inherited from JUTResFont
int mWidth
 
int mHeight
 
GXTexObj mTexObj
 
int mTexPageIdx
 
const ResFONTmResFont
 
ResFONT::INF1mInf1Ptr
 
void ** mMemBlocks
 
ResFONT::WID1 ** mpWidthBlocks
 
ResFONT::GLY1 ** mpGlyphBlocks
 
ResFONT::MAP1 ** mpMapBlocks
 
u16 mWid1BlockNum
 
u16 mGly1BlockNum
 
u16 mMap1BlockNum
 
u16 field_0x66
 
u16 mMaxCode
 
const IsLeadByte_funcmIsLeadByte
 
- Public Attributes inherited from JUTFont
bool mValid
 
bool mFixed
 
int mFixedWidth
 
JUtility::TColor mColor1
 
JUtility::TColor mColor2
 
JUtility::TColor mColor3
 
JUtility::TColor mColor4
 
- Static Public Attributes inherited from JUTResFont
static IsLeadByte_func const saoAboutEncoding_ [3]
 

Member Enumeration Documentation

◆ EPagingType

Enumerator
PAGE_TYPE_0 
PAGE_TYPE_1 

Constructor & Destructor Documentation

◆ JUTCacheFont()

JUTCacheFont::JUTCacheFont ( ResFONT const p_fontRes,
u32  cacheSize,
JKRHeap p_heap 
)

◆ ~JUTCacheFont()

JUTCacheFont::~JUTCacheFont ( )
virtual

Member Function Documentation

◆ allocArea()

bool JUTCacheFont::allocArea ( void param_0,
u32  param_1,
JKRHeap heap 
)

◆ allocArray()

bool JUTCacheFont::allocArray ( JKRHeap param_0)

◆ calcCacheSize()

static u32 JUTCacheFont::calcCacheSize ( u32  param_0,
int  param_1 
)
inlinestatic

◆ deleteMemBlocks_CacheFont()

void JUTCacheFont::deleteMemBlocks_CacheFont ( )

◆ determineBlankPage()

JUTCacheFont::TGlyphCacheInfo * JUTCacheFont::determineBlankPage ( )

◆ getGlyphFromAram()

void JUTCacheFont::getGlyphFromAram ( JUTCacheFont::TGlyphCacheInfo param_0,
JUTCacheFont::TCachePage pCachePage,
int param_2,
int param_3 
)

◆ getMemorySize()

int JUTCacheFont::getMemorySize ( ResFONT const p_font,
u16 o_widCount,
u32 o_widSize,
u16 o_glyCount,
u32 o_glySize,
u16 o_mapCount,
u32 o_mapSize,
u32 o_glyTexSize 
)

◆ getTexObj()

GXTexObj * JUTCacheFont::getTexObj ( void buffer)
inline

◆ initialize_state()

void JUTCacheFont::initialize_state ( )

◆ initiate()

int JUTCacheFont::initiate ( ResFONT const p_fontRes,
void param_1,
u32  param_2,
JKRHeap p_heap 
)

◆ internal_initiate()

bool JUTCacheFont::internal_initiate ( ResFONT const p_fontRes,
void param_1,
u32  param_2,
JKRHeap param_3 
)

◆ invalidiateAllCache()

void JUTCacheFont::invalidiateAllCache ( )

◆ loadCache_char_subroutine()

JUTCacheFont::TCachePage * JUTCacheFont::loadCache_char_subroutine ( int param_0,
bool  param_1 
)

◆ loadImage()

void JUTCacheFont::loadImage ( int  param_0,
_GXTexMapID  texMapId 
)
virtual

Reimplemented from JUTResFont.

◆ prepend()

void JUTCacheFont::prepend ( JUTCacheFont::TGlyphCacheInfo cacheInfo)

◆ setBlock()

void JUTCacheFont::setBlock ( )
virtual

Reimplemented from JUTResFont.

◆ setPagingType()

void JUTCacheFont::setPagingType ( EPagingType  type)
inline

◆ unlink()

void JUTCacheFont::unlink ( JUTCacheFont::TGlyphCacheInfo cacheInfo)

Member Data Documentation

◆ field_0x7c

void* JUTCacheFont::field_0x7c
private

◆ field_0x80

void* JUTCacheFont::field_0x80
private

◆ field_0x84

void* JUTCacheFont::field_0x84
private

◆ field_0x94

int JUTCacheFont::field_0x94
private

◆ field_0x9c

TGlyphCacheInfo* JUTCacheFont::field_0x9c
private

◆ field_0xa0

TGlyphCacheInfo* JUTCacheFont::field_0xa0
private

◆ field_0xa4

TGlyphCacheInfo* JUTCacheFont::field_0xa4
private

◆ field_0xa8

u32 JUTCacheFont::field_0xa8
private

◆ field_0xac

JKRAramBlock* JUTCacheFont::field_0xac
private

◆ field_0xb0

u8 JUTCacheFont::field_0xb0
private

◆ field_0xb4

int JUTCacheFont::field_0xb4
private

◆ mCacheBuffer

void* JUTCacheFont::mCacheBuffer
private

◆ mCachePage

u32 JUTCacheFont::mCachePage
private

◆ mMaxSheetSize

u32 JUTCacheFont::mMaxSheetSize
private

◆ mPagingType

EPagingType JUTCacheFont::mPagingType
private

◆ mTotalGlySize

u32 JUTCacheFont::mTotalGlySize
private

◆ mTotalMapSize

u32 JUTCacheFont::mTotalMapSize
private

◆ mTotalWidSize

u32 JUTCacheFont::mTotalWidSize
private

The documentation for this class was generated from the following files: