mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
f8979749e3
* work on fop actor / actor mng, daalink, d_a_obj_item * d_a_title mostly decompiled * daalink / d_event / JMessage / dmsg_out_font work * msg_scrn_base / msg_scrn_boss * some work on mDo machine, d_menu_save, d_tresure, and various * remove asm * progress * finish d_menu_save / d_pane_class_alpha / d_pane_class / rename some data * rename more data * remove asm / progress * match all of d_pane_class * fixes / some dKankyo doc * bunch of j2d work. d_drawlist / d_attention cleanup * progress / asm * cleanup wip * decompile JStage * setup some more JStudio structs * set up d_demo classes * some d_demo work * cleanup dolphin os stuff * some initial dEvent documentation * some At collision documentation * match JUTConsole::doDraw * dbgs work / split up some of d_a_alink into .inc files * d_a_alink_spinner work
66 lines
2.4 KiB
C++
66 lines
2.4 KiB
C++
#ifndef JUTRESFONT_H
|
|
#define JUTRESFONT_H
|
|
|
|
#include "JSystem/JKernel/JKRHeap.h"
|
|
#include "JSystem/JUtility/JUTFont.h"
|
|
#include "dolphin/types.h"
|
|
|
|
class JUTResFont : public JUTFont {
|
|
public:
|
|
/* 802DF000 */ virtual ~JUTResFont();
|
|
/* 802DF48C */ virtual void setGX();
|
|
/* 802DF584 */ virtual void setGX(JUtility::TColor, JUtility::TColor);
|
|
/* 802DF7C4 */ virtual f32 drawChar_scale(f32, f32, f32, f32, int, bool);
|
|
/* 802DDFEC */ virtual int getLeading() const;
|
|
/* 802DE004 */ virtual u16 getAscent() const;
|
|
/* 802DE010 */ virtual u16 getDescent() const;
|
|
/* 802DE01C */ virtual s32 getHeight() const;
|
|
/* 802DDFF8 */ virtual s32 getWidth() const;
|
|
/* 802DFC64 */ virtual void getWidthEntry(int, JUTFont::TWidth*) const;
|
|
/* 802DFD0C */ virtual int getCellWidth() const;
|
|
/* 802DFD58 */ virtual u16 getCellHeight() const;
|
|
/* 802DDFE0 */ virtual u16 getFontType() const;
|
|
/* 802DDFD8 */ virtual ResFONT* getResFont() const;
|
|
/* 802DFDA4 */ virtual bool isLeadByte(int) const;
|
|
/* 802DFF60 */ virtual void loadImage(int, _GXTexMapID);
|
|
/* 802DF344 */ virtual void setBlock();
|
|
|
|
/* 802DEF94 */ JUTResFont(ResFONT const*, JKRHeap*);
|
|
/* 802DEF48 */ JUTResFont();
|
|
/* 802DF08C */ void deleteMemBlocks_ResFont();
|
|
/* 802DF0B0 */ void initialize_state();
|
|
/* 802DF0DC */ bool initiate(ResFONT const*, JKRHeap*);
|
|
/* 802DF13C */ bool protected_initiate(ResFONT const*, JKRHeap*);
|
|
/* 802DF248 */ void countBlock();
|
|
/* 802DFBE8 */ void loadFont(int, _GXTexMapID, JUTFont::TWidth*);
|
|
/* 802DFDD8 */ int getFontCode(int) const;
|
|
/* 802E00C4 */ void convertSjis(int, u16*) const;
|
|
|
|
inline void delete_and_initialize() {
|
|
deleteMemBlocks_ResFont();
|
|
initialize_state();
|
|
}
|
|
|
|
static void* const saoAboutEncoding_[3];
|
|
|
|
// some types uncertain, may need to be fixed
|
|
/* 0x1C */ void* field_0x1c;
|
|
/* 0x20 */ void* field_0x20;
|
|
/* 0x24 */ _GXTexObj field_0x24;
|
|
/* 0x44 */ int field_0x44;
|
|
/* 0x48 */ const ResFONT* mResFont;
|
|
/* 0x4C */ ResFONT::INF1* mInf1Ptr;
|
|
/* 0x50 */ void* field_0x50;
|
|
/* 0x54 */ ResFONT::WID1* mWid1Ptr;
|
|
/* 0x58 */ ResFONT::GLY1* mGly1Ptr;
|
|
/* 0x5C */ ResFONT::MAP1* mMap1Ptr;
|
|
/* 0x60 */ u16 mWid1BlockNum;
|
|
/* 0x62 */ u16 mGly1BlockNum;
|
|
/* 0x64 */ u16 mMap1BlockNum;
|
|
/* 0x66 */ u16 field_0x66;
|
|
/* 0x68 */ u16 field_0x68;
|
|
/* 0x6C */ void* field_0x6c;
|
|
};
|
|
|
|
#endif /* JUTRESFONT_H */
|