Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
fontResources.h
Go to the documentation of this file.
1#ifndef NW4HBM_UT_FONT_RESOURCES_H
2#define NW4HBM_UT_FONT_RESOURCES_H
3
4#include <revolution/types.h>
5
6#include <revolution/gx.h>
7
8namespace nw4hbm {
9 namespace ut {
10
11 typedef struct CharWidths {
12 /* 0x00 */ s8 left;
13 /* 0x01 */ u8 glyphWidth;
14 /* 0x02 */ s8 charWidth;
15 } CharWidths; // size = 0x04
16
17 typedef struct FontWidth {
18 /* 0x00 */ u16 indexBegin;
19 /* 0x02 */ u16 indexEnd;
20 /* 0x04 */ FontWidth* pNext;
21 /* 0x08 */ CharWidths widthTable[];
23
24 typedef struct Glyph {
25 /* 0x00 */ void* pTexture;
26 /* 0x04 */ CharWidths widths;
27 /* 0x07 */ u8 height;
28 /* 0x08 */ GXTexFmt texFormat;
29 /* 0x0C */ u16 texWidth;
30 /* 0x0E */ u16 texHeight;
31 /* 0x10 */ u16 cellX;
32 /* 0x12 */ u16 cellY;
33 } Glyph; // size = 0x14
34
35 typedef struct FontTextureGlyph {
36 /* 0x00 */ u8 cellWidth;
37 /* 0x01 */ u8 cellHeight;
38 /* 0x02 */ s8 baselinePos;
39 /* 0x03 */ u8 maxCharWidth;
40 /* 0x04 */ u32 sheetSize;
41 /* 0x08 */ u16 sheetNum;
42 /* 0x0A */ u16 sheetFormat;
43 /* 0x0C */ u16 sheetRow;
44 /* 0x0E */ u16 sheetLine;
45 /* 0x10 */ u16 sheetWidth;
46 /* 0x12 */ u16 sheetHeight;
47 /* 0x14 */ u8* sheetImage;
48 } FontTextureGlyph; // size = 0x18
49
50 typedef struct FontCodeMap {
51 /* 0x00 */ u16 ccodeBegin;
52 /* 0x02 */ u16 ccodeEnd;
53 /* 0x04 */ u16 mappingMethod;
54 /* 0x06 */ u16 reserved;
55 /* 0x08 */ FontCodeMap* pNext;
56 /* 0x0C */ u16 mapInfo[];
58
59 typedef struct FontInformation {
60 /* 0x00 */ u8 fontType;
61 /* 0x01 */ s8 linefeed;
62 /* 0x02 */ u16 alterCharIndex;
64 /* 0x07 */ u8 encoding;
66 /* 0x0C */ FontWidth* pWidth;
67 /* 0x10 */ FontCodeMap* pMap;
68 /* 0x14 */ u8 height;
69 /* 0x15 */ u8 width;
70 /* 0x16 */ u8 ascent;
71 /* 0x17 */ u8 padding_[1];
72 } FontInformation; // size = 0x18
73
74 } // namespace ut
75} // namespace nw4hbm
76
77#endif
enum _GXTexFmt GXTexFmt
signed char s8
Definition types.h:7
unsigned long u32
Definition types.h:12
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
struct nw4hbm::ut::CharWidths CharWidths
struct nw4hbm::ut::FontCodeMap FontCodeMap
struct nw4hbm::ut::FontInformation FontInformation
struct nw4hbm::ut::FontWidth FontWidth
struct nw4hbm::ut::Glyph Glyph
struct nw4hbm::ut::FontTextureGlyph FontTextureGlyph
Definition HBMAnmController.h:6
Definition fontResources.h:11
s8 charWidth
Definition fontResources.h:14
u8 glyphWidth
Definition fontResources.h:13
s8 left
Definition fontResources.h:12
Definition fontResources.h:50
u16 ccodeEnd
Definition fontResources.h:52
u16 ccodeBegin
Definition fontResources.h:51
u16 reserved
Definition fontResources.h:54
FontCodeMap * pNext
Definition fontResources.h:55
u16 mappingMethod
Definition fontResources.h:53
u16 mapInfo[]
Definition fontResources.h:56
Definition fontResources.h:59
u8 ascent
Definition fontResources.h:70
FontTextureGlyph * pGlyph
Definition fontResources.h:65
u16 alterCharIndex
Definition fontResources.h:62
u8 width
Definition fontResources.h:69
u8 padding_[1]
Definition fontResources.h:71
FontWidth * pWidth
Definition fontResources.h:66
u8 height
Definition fontResources.h:68
s8 linefeed
Definition fontResources.h:61
FontCodeMap * pMap
Definition fontResources.h:67
u8 fontType
Definition fontResources.h:60
CharWidths defaultWidth
Definition fontResources.h:63
u8 encoding
Definition fontResources.h:64
Definition fontResources.h:35
u32 sheetSize
Definition fontResources.h:40
u16 sheetRow
Definition fontResources.h:43
u16 sheetFormat
Definition fontResources.h:42
u16 sheetHeight
Definition fontResources.h:46
u8 cellHeight
Definition fontResources.h:37
s8 baselinePos
Definition fontResources.h:38
u8 * sheetImage
Definition fontResources.h:47
u16 sheetWidth
Definition fontResources.h:45
u8 maxCharWidth
Definition fontResources.h:39
u8 cellWidth
Definition fontResources.h:36
u16 sheetNum
Definition fontResources.h:41
u16 sheetLine
Definition fontResources.h:44
Definition fontResources.h:17
FontWidth * pNext
Definition fontResources.h:20
u16 indexEnd
Definition fontResources.h:19
CharWidths widthTable[]
Definition fontResources.h:21
u16 indexBegin
Definition fontResources.h:18
Definition fontResources.h:24
u16 texHeight
Definition fontResources.h:30
u16 texWidth
Definition fontResources.h:29
u16 cellX
Definition fontResources.h:31
GXTexFmt texFormat
Definition fontResources.h:28
u8 height
Definition fontResources.h:27
u16 cellY
Definition fontResources.h:32
void * pTexture
Definition fontResources.h:25
CharWidths widths
Definition fontResources.h:26