Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J2DPicture.h
Go to the documentation of this file.
1#ifndef J2DPICTURE_H
2#define J2DPICTURE_H
3
6
7class J2DMaterial;
8class JUTPalette;
9class JUTTexture;
10struct ResTIMG;
11struct ResTLUT;
12
14 /* 0 */ MIRROR0, // temp, figure out later
15 /* 1 */ J2DMirror_Y = (1 << 0),
16 /* 2 */ J2DMirror_X = (1 << 1),
17};
18
20 /* 1 */ J2DBind_Bottom = (1 << 0),
21 /* 2 */ J2DBind_Top = (1 << 1),
22 /* 4 */ J2DBind_Right = (1 << 2),
23 /* 8 */ J2DBind_Left = (1 << 3),
24
25 /* 0xF */ BIND15 = 15, // temp, figure out later
26};
27
33 /* 0x0 */ u32 mTag;
34 /* 0x4 */ u32 mSize;
35};
36
42 /* 0x00 */ u16 field_0x0;
43 /* 0x02 */ u16 mMaterialNum;
44 /* 0x04 */ u16 field_0x4;
45 /* 0x06 */ u16 field_0x6;
46 /* 0x08 */ u16 field_0x8[4];
48 /* 0x20 */ u32 mCornerColor[4];
49}; // Size: 0x30
50
55class J2DPicture : public J2DPane {
56public:
57 /* 802FCFF0 */ virtual ~J2DPicture();
58 /* 802FF2E8 */ virtual u16 getTypeID() const;
59 /* 802FDB28 */ virtual void drawSelf(f32, f32);
60 /* 802FDB90 */ virtual void drawSelf(f32, f32, Mtx*);
61 /* 802FF09C */ virtual bool isUsed(ResTIMG const*);
62 /* 802FF63C */ virtual bool isUsed(ResFONT const*);
63 /* 802FF65C */ virtual void rewriteAlpha();
64 /* 802FCCDC */ virtual void initiate(ResTIMG const*, ResTLUT const*);
65 /* 802FD098 */ virtual bool prepareTexture(u8);
66 /* 801BDD40 */ virtual bool append(ResTIMG const*, f32);
67 /* 802FF238 */ virtual bool append(ResTIMG const*, JUTPalette*, f32);
68 /* 80020338 */ virtual bool append(char const* param_0, f32 param_1) {
70 }
71
72 /* 802FF2F0 */ virtual bool append(char const*, JUTPalette*, f32);
73 /* 802FF208 */ virtual bool append(JUTTexture*, f32);
74 /* 802FF3E0 */ virtual void prepend(ResTIMG const*, f32);
75 /* 802FF3B0 */ virtual void prepend(ResTIMG const*, JUTPalette*, f32);
76 /* 802FF380 */ virtual void prepend(char const*, f32);
77 /* 802FF350 */ virtual void prepend(char const*, JUTPalette*, f32);
78 /* 802FF320 */ virtual void prepend(JUTTexture*, f32);
79 /* 801BDD70 */ virtual void insert(ResTIMG const*, u8, f32);
80 /* 802FD168 */ virtual bool insert(ResTIMG const*, JUTPalette*, u8, f32);
81 /* 80020368 */ virtual bool insert(char const* param_0, u8 param_1, f32 param_2) {
83 }
84 /* 802FD4B4 */ virtual bool insert(char const*, JUTPalette*, u8, f32);
85 /* 802FD524 */ virtual bool insert(JUTTexture*, u8, f32);
86 /* 802FD6F4 */ virtual bool remove(u8);
87 /* 802FF410 */ virtual bool remove();
88 /* 802FD814 */ virtual bool remove(JUTTexture*);
89 /* 802FF4E0 */ virtual void draw(f32, f32, bool, bool, bool);
90 /* 802FF448 */ virtual void draw(f32, f32, u8, bool, bool, bool);
91 /* 802FDC70 */ virtual void draw(f32, f32, f32, f32, bool, bool, bool);
92 /* 802FF588 */ virtual void drawOut(f32, f32, f32, f32, f32, f32);
93 /* 802FF524 */ virtual void drawOut(f32, f32, f32, f32, f32, f32, f32, f32);
94 /* 802FDF88 */ virtual void drawOut(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
95 /* 802FF29C */ virtual void load(_GXTexMapID, u8);
96 /* 802FF268 */ virtual void load(u8);
101 /* 802FEA74 */ virtual void setBlendColorRatio(f32, f32);
102 /* 802FEA9C */ virtual void setBlendAlphaRatio(f32, f32);
103 /* 802FD874 */ virtual const ResTIMG* changeTexture(ResTIMG const*, u8);
104 /* 802FD964 */ virtual const ResTIMG* changeTexture(char const*, u8);
105 /* 802FD9BC */ virtual const ResTIMG* changeTexture(ResTIMG const*, u8, JUTPalette*);
106 /* 802FDAC8 */ virtual const ResTIMG* changeTexture(char const*, u8, JUTPalette*);
107 /* 800539DC */ virtual JUTTexture* getTexture(u8) const;
108 /* 802FF634 */ virtual u8 getTextureCount() const;
109 /* 80053C6C */ virtual bool setBlack(JUtility::TColor i_black) {
110 mBlack = i_black;
111 return true;
112 }
113 /* 80053C44 */ virtual bool setWhite(JUtility::TColor i_white) {
114 mWhite = i_white;
115 return true;
116 }
118 mBlack = i_black;
119 mWhite = i_white;
120 return true;
121 }
122 /* 801DFA4C */ virtual JUtility::TColor getBlack() const {
123 return mBlack;
124 }
125 /* 801DFA40 */ virtual JUtility::TColor getWhite() const {
126 return mWhite;
127 }
128 /* 8025603C */ virtual J2DMaterial* getMaterial() const { return NULL; }
129 /* 802FDBFC */ virtual void drawFullSet(f32, f32, f32, f32, Mtx*);
130 /* 802FE380 */ virtual void drawTexCoord(f32, f32, f32, f32, s16, s16, s16, s16, s16, s16, s16,
131 s16, Mtx*);
132 /* 802FF100 */ virtual u8 getUsableTlut(u8);
133
134 /* 802FC800 */ J2DPicture(u64, JGeometry::TBox2<f32> const&, ResTIMG const*, ResTLUT const*);
135 /* 802FC708 */ J2DPicture(ResTIMG const*);
137 /* 802FC050 */ J2DPicture();
140 /* 802FCD70 */ void private_initiate(ResTIMG const*, ResTLUT const*);
141 /* 802FCE9C */ void initinfo();
142 /* 802FE5D0 */ void setTevMode();
143 /* 802FEA60 */ static void swap(f32&, f32&);
144 /* 802FEAC4 */ void setBlendKonstColor();
145 /* 802FEB94 */ void setBlendKonstAlpha();
146 /* 802FEC64 */ void getNewColor(JUtility::TColor*);
147 /* 802FED84 */ void setTexCoord(JGeometry::TVec2<s16>*, JUTTexture const*, J2DBinding,
148 J2DMirror, bool);
149 /* 802FED44 */ void setTexCoord(JUTTexture const*, J2DBinding, J2DMirror, bool);
150 /* 802FF1D0 */ GXTlut getTlutID(ResTIMG const*, u8);
151
153 JUtility::TColor c3) {
154 mCornerColor[0] = c0;
155 mCornerColor[1] = c1;
156 mCornerColor[2] = c2;
157 mCornerColor[3] = c3;
158 }
160 setCornerColor(c0, c0, c0, c0);
161 }
162
163protected:
164 /* 0x100 */ JUTTexture* mTexture[2];
165 /* 0x108 */ u8 mTextureNum;
166 /* 0x109 */ u8 field_0x109;
168 /* 0x11C */ f32 field_0x11c[2];
169 /* 0x124 */ f32 field_0x124[2];
170 /* 0x12C */ JUTPalette* mPalette;
176};
177
178#endif /* J2DPICTURE_H */
enum _GXTlut GXTlut
_GXTexMapID
Definition GXEnum.h:30
J2DMirror
Definition J2DPicture.h:13
@ J2DMirror_X
Definition J2DPicture.h:16
@ J2DMirror_Y
Definition J2DPicture.h:15
@ MIRROR0
Definition J2DPicture.h:14
J2DBinding
Definition J2DPicture.h:19
@ J2DBind_Right
Definition J2DPicture.h:22
@ BIND15
Definition J2DPicture.h:25
@ J2DBind_Bottom
Definition J2DPicture.h:20
@ J2DBind_Left
Definition J2DPicture.h:23
@ J2DBind_Top
Definition J2DPicture.h:21
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition J2DMaterial.h:11
Definition J2DPane.h:51
void initiate()
Definition J2DPane.cpp:22
Definition J2DPicture.h:55
JUtility::TColor mBlendKonstColor
Definition J2DPicture.h:174
virtual void draw(f32, f32, bool, bool, bool)
Definition J2DPicture.cpp:1449
virtual u16 getTypeID() const
Definition J2DPicture.cpp:1397
void private_readStream(J2DPane *, JSURandomInputStream *, JKRArchive *)
Definition J2DPicture.cpp:425
virtual void prepend(ResTIMG const *, f32)
Definition J2DPicture.cpp:1429
virtual bool append(ResTIMG const *, f32)
Definition d_menu_dmap.cpp:1736
virtual JUtility::TColor getWhite() const
Definition J2DPicture.h:125
virtual void setBlendColorRatio(f32, f32)
Definition J2DPicture.cpp:1114
u8 mTextureNum
Definition J2DPicture.h:165
virtual const ResTIMG * changeTexture(ResTIMG const *, u8)
Definition J2DPicture.cpp:755
void setCornerColor(JUtility::TColor c0, JUtility::TColor c1, JUtility::TColor c2, JUtility::TColor c3)
Definition J2DPicture.h:152
JUtility::TColor mBlack
Definition J2DPicture.h:172
void setTexCoord(JGeometry::TVec2< s16 > *, JUTTexture const *, J2DBinding, J2DMirror, bool)
Definition J2DPicture.cpp:1201
virtual bool setWhite(JUtility::TColor i_white)
Definition J2DPicture.h:113
void initinfo()
Definition J2DPicture.cpp:555
virtual void setBlendAlphaRatio(f32, f32)
Definition J2DPicture.cpp:1122
f32 field_0x124[2]
Definition J2DPicture.h:169
virtual bool setBlack(JUtility::TColor i_black)
Definition J2DPicture.h:109
virtual void drawTexCoord(f32, f32, f32, f32, s16, s16, s16, s16, s16, s16, s16, s16, Mtx *)
Definition J2DPicture.cpp:966
void getNewColor(JUtility::TColor *)
Definition J2DPicture.cpp:1174
virtual bool prepareTexture(u8)
Definition J2DPicture.cpp:578
void setCornerColor(JUtility::TColor c0)
Definition J2DPicture.h:159
JUtility::TColor mWhite
Definition J2DPicture.h:171
virtual bool append(char const *param_0, f32 param_1)
Definition J2DPicture.h:68
virtual bool setBlackWhite(JUtility::TColor i_black, JUtility::TColor i_white)
Definition J2DPicture.h:117
virtual J2DMaterial * getMaterial() const
Definition J2DPicture.h:128
JUTPalette * mPalette
Definition J2DPicture.h:170
J2DPicture()
Definition J2DPicture.cpp:258
virtual JUTTexture * getTexture(u8) const
Definition d_drawlist.cpp:905
void setTevMode()
Definition J2DPicture.cpp:1021
f32 field_0x11c[2]
Definition J2DPicture.h:168
void private_initiate(ResTIMG const *, ResTLUT const *)
Definition J2DPicture.cpp:526
JUTTexture * mTexture[2]
Definition J2DPicture.h:164
virtual void drawSelf(f32, f32)
Definition J2DPicture.cpp:818
static void swap(f32 &, f32 &)
Definition J2DPicture.cpp:1106
virtual void rewriteAlpha()
Definition J2DPicture.cpp:1482
virtual void setBlendRatio(f32 param_0, f32 param_1)
Definition J2DPicture.h:97
void setBlendKonstColor()
Definition J2DPicture.cpp:1134
virtual void insert(ResTIMG const *, u8, f32)
Definition d_menu_dmap.cpp:1742
virtual u8 getUsableTlut(u8)
Definition J2DPicture.cpp:1327
JUtility::TColor mCornerColor[4]
Definition J2DPicture.h:173
JUtility::TColor mBlendKonstAlpha
Definition J2DPicture.h:175
JGeometry::TVec2< s16 > field_0x10a[4]
Definition J2DPicture.h:167
virtual u8 getTextureCount() const
Definition J2DPicture.cpp:1472
GXTlut getTlutID(ResTIMG const *, u8)
Definition J2DPicture.cpp:1358
virtual JUtility::TColor getBlack() const
Definition J2DPicture.h:122
virtual void load(_GXTexMapID, u8)
Definition J2DPicture.cpp:1390
virtual void drawOut(f32, f32, f32, f32, f32, f32)
Definition J2DPicture.cpp:1461
virtual void drawFullSet(f32, f32, f32, f32, Mtx *)
Definition J2DPicture.cpp:835
virtual bool isUsed(ResTIMG const *)
Definition J2DPicture.cpp:1316
virtual bool remove()
Definition J2DPicture.cpp:1434
u8 field_0x109
Definition J2DPicture.h:166
void setBlendKonstAlpha()
Definition J2DPicture.cpp:1154
virtual ~J2DPicture()
Definition J2DPicture.cpp:567
virtual bool insert(char const *param_0, u8 param_1, f32 param_2)
Definition J2DPicture.h:81
Definition JKRArchive.h:57
Definition JSURandomInputStream.h:10
Definition JUTPalette.h:22
Definition JUTTexture.h:46
f32 Mtx[3][4]
Definition mtx.h:15
Definition J2DPicture.h:32
u32 mTag
Definition J2DPicture.h:33
u32 mSize
Definition J2DPicture.h:34
Definition J2DPicture.h:41
u16 field_0x0
Definition J2DPicture.h:42
u16 field_0x4
Definition J2DPicture.h:44
u16 field_0x6
Definition J2DPicture.h:45
u16 mMaterialNum
Definition J2DPicture.h:43
u16 field_0x8[4]
Definition J2DPicture.h:46
u32 mCornerColor[4]
Definition J2DPicture.h:48
JGeometry::TVec2< s16 > field_0x10[4]
Definition J2DPicture.h:47
Definition JGeometry.h:496
Definition JGeometry.h:401
Definition TColor.h:12
Definition JUTFont.h:11
Image data header.
Definition d_menu_dmap_map.cpp:109
Definition JUTPalette.h:12
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned long long u64
Definition types.h:11
unsigned char u8
Definition types.h:8