Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J2DTevs.h
Go to the documentation of this file.
1#ifndef J2DTEVS_H
2#define J2DTEVS_H
3
5#include "dolphin/mtx.h"
6
12 /* 0x00 */ f32 mScaleX;
13 /* 0x04 */ f32 mScaleY;
14 /* 0x08 */ f32 mRotationDeg;
15 /* 0x0C */ f32 mTranslationX;
16 /* 0x10 */ f32 mTranslationY;
17}; // Size: 0x14
18
24 enum {
25 /* 0x0 */ DCC_NONE,
26 /* 0x1 */ DCC_MAYA,
27 };
28
29 /* 0x00 */ u8 mTexMtxType;
30 /* 0x01 */ u8 mTexMtxDCC;
31 /* 0x02 */ u8 field_0x2; // padding ?
32 /* 0x03 */ u8 field_0x3; // padding ?
33 /* 0x04 */ Vec mCenter;
35
38 mCenter = other.mCenter;
39 mTexMtxType = other.mTexMtxType;
40 mTexMtxDCC = other.mTexMtxDCC;
41 mTexSRTInfo = other.mTexSRTInfo;
42 return *this;
43 }
44
45}; // Size: 0x24
46
48
53class J2DTexMtx {
54public:
56 J2DTexMtx(const J2DTexMtxInfo& info) { mInfo = info; }
57 /* 802E9C90 */ void load(u32);
58 /* 802E9CC4 */ void calc();
59 /* 802E9D2C */ void getTextureMtx(J2DTextureSRTInfo const&, Vec, Mtx);
60 /* 802E9EBC */ void getTextureMtxMaya(J2DTextureSRTInfo const&, Mtx);
62 void setTexMtxInfo(J2DTexMtxInfo info) { mInfo = info; }
63
64private:
65 /* 0x00 */ J2DTexMtxInfo mInfo;
66 /* 0x24 */ Mtx mTexMtx;
67};
68
85
87
93public:
94 /* 802EB378 */ J2DIndTexOrder() {
96 }
98 mInfo = info;
99 }
101 mInfo = info;
102 return *this;
103 }
104 /* 802EA0FC */ void load(u8);
105
106private:
108};
109
115 /* 0x00 */ Mtx23 mMtx;
116 /* 0x18 */ s8 mScaleExp;
117
119 for (int i = 0; i < 2; i++) {
120 for (int j = 0; j < 3; j++) {
121 mMtx[i][j] = other.mMtx[i][j];
122 }
123 }
124 mScaleExp = other.mScaleExp;
125 return *this;
126 }
127};
128
130
136public:
137 /* 802EB2E4 */ ~J2DIndTexMtx() {}
138 /* 802EB320 */ J2DIndTexMtx() {
140 }
142 mIndTexMtxInfo = info;
143 }
145 mIndTexMtxInfo = info;
146 return *this;
147 }
148 /* 802EA098 */ void load(u8);
149 /* 802E9C90 */ void load(u32);
150 /* 802E9CC4 */ void calc();
151
152private:
154}; // Size: 0x1C
155
161 /* 0x0 */ u8 mScaleS;
162 /* 0x1 */ u8 mScaleT;
163
166 mScaleT = other.mScaleT;
167 return *this;
168 }
171};
172
174
180public:
181 /* 802EB290 */ ~J2DIndTexCoordScale() {}
186 mInfo = info;
187 }
189 mInfo = info;
190 return *this;
191 }
192 /* 802EA0CC */ void load(u8);
193
194private:
196}; // Size: 0x2
197
203 /* 0x0 */ u8 mIndStage;
204 /* 0x1 */ u8 mIndFormat;
205 /* 0x2 */ u8 mBiasSel;
206 /* 0x3 */ u8 mMtxSel;
207 /* 0x4 */ u8 mWrapS;
208 /* 0x5 */ u8 mWrapT;
209 /* 0x6 */ u8 mPrev;
210 /* 0x7 */ u8 mLod;
211 /* 0x8 */ u8 mAlphaSel;
212 /* 0x9 */ u8 field_0x9;
213 /* 0xa */ u8 field_0xa;
214 /* 0xb */ u8 field_0xb;
215};
216
218 return (info.mAlphaSel << 22) | (info.mLod << 21) | (info.mPrev << 20) |
219 (info.mMtxSel << 16) | (info.mWrapT << 11) | (info.mWrapS << 8) |
220 (info.mBiasSel << 4) | (info.mIndFormat << 2) | (info.mIndStage);
221}
222
224
230public:
231 /* 802EA044 */ void load(u8);
238
240
241private:
242 /* 0x0 */ u32 mFlags;
243
244 GXIndTexStageID getIndStage() const { return (GXIndTexStageID)(mFlags & 0x03); }
245 GXIndTexFormat getIndFormat() const { return (GXIndTexFormat)((mFlags >> 2) & 0x03); }
246 GXIndTexBiasSel getBiasSel() const { return (GXIndTexBiasSel)((mFlags >> 4) & 0x07); }
247 GXIndTexWrap getWrapS() const { return (GXIndTexWrap)((mFlags >> 8) & 0x07); }
248 GXIndTexWrap getWrapT() const { return (GXIndTexWrap)((mFlags >> 11) & 0x07); }
249 GXIndTexMtxID getMtxSel() const { return (GXIndTexMtxID)((mFlags >> 16) & 0x0F); }
250 GXBool getPrev() const { return (GXBool)((mFlags >> 20) & 0x01); }
251 GXBool getLod() const { return (GXBool)((mFlags >> 21) & 0x01); }
252 GXIndTexAlphaSel getAlphaSel() const { return (GXIndTexAlphaSel)((mFlags >> 22) & 0x03); }
253};
254
260 /* 0x0 */ u8 mTexGenType;
261 /* 0x1 */ u8 mTexGenSrc;
262 /* 0x2 */ u8 mTexGenMtx;
264
266 this->mTexGenType = other.mTexGenType;
267 this->mTexGenSrc = other.mTexGenSrc;
268 this->mTexGenMtx = other.mTexGenMtx;
269 return *this;
270 }
271};
272
274
280public:
281 /* 802EB260 */ inline J2DTexCoord() {
283 }
284
286 *(J2DTexCoordInfo*)this = info;
287 }
288 void setTexCoordInfo(const J2DTexCoordInfo& info) { mTexCoordInfo = info; }
293
294private:
296};
297
303 /* 0x0 */ u8 mTexCoord;
304 /* 0x1 */ u8 mTexMap;
305 /* 0x2 */ u8 mColor;
306 /* 0x3 */ u8 field_0x3;
307
310 mTexMap = other.mTexMap;
311 mColor = other.mColor;
312 return *this;
313 }
314};
315
317
323public:
324 /* 802F1B70 */ J2DTevOrder() {
326 }
327
329 *(J2DTevOrderInfo*)this = info;
330 }
331
332 void setTevOrderInfo(const J2DTevOrderInfo& info) {mTevOrderInfo = info; }
336
338};
339
345 /* 0x00 */ u8 field_0x0;
346 /* 0x01 */ u8 mColorA;
347 /* 0x02 */ u8 mColorB;
348 /* 0x03 */ u8 mColorC;
349 /* 0x04 */ u8 mColorD;
350 /* 0x05 */ u8 mCOp;
351 /* 0x06 */ u8 mCBias;
352 /* 0x07 */ u8 mCScale;
353 /* 0x08 */ u8 mCClamp;
354 /* 0x09 */ u8 mCReg;
355 /* 0x0A */ u8 mAlphaA;
356 /* 0x0B */ u8 mAlphaB;
357 /* 0x0C */ u8 mAlphaC;
358 /* 0x0D */ u8 mAlphaD;
359 /* 0x0E */ u8 mAOp;
360 /* 0x0F */ u8 mABias;
361 /* 0x10 */ u8 mAScale;
362 /* 0x11 */ u8 mAClamp;
363 /* 0x12 */ u8 mAReg;
364 /* 0x13 */ u8 field_0x13;
365};
366
368
374 /* 0x0 */ u8 mRasSel;
375 /* 0x1 */ u8 mTexSel;
376 /* 0x2 */ u8 field_0x2;
377 /* 0x3 */ u8 field_0x3;
378};
379
381
387public:
388 /* 802F4110 */ J2DTevStage(J2DTevStageInfo const&);
389 /* 802F1940 */ J2DTevStage();
390 /* 802F19A8 */ void setTevStageInfo(J2DTevStageInfo const&);
391
393 field_0x0 = (param_0 << 1) + 0xc0;
394 field_0x4 = (param_0 << 1) + 0xc1;
395 }
396
398 setTexSel(swapInfo.mTexSel);
399 setRasSel(swapInfo.mRasSel);
400 }
401
403 field_0x7 = (field_0x7 & ~0x0c) | (param_0 * 4);
404 }
405
407 field_0x7 = (field_0x7 & ~0x03) | param_0;
408 }
409
410 void setColorABCD(u8 a, u8 b, u8 c, u8 d) {
411 setTevColorAB(a, b);
412 setTevColorCD(c, d);
413 }
414
415 void setTevColorAB(u8 a, u8 b) { field_0x2 = a << 4 | b; }
416 void setTevColorCD(u8 c, u8 d) { field_0x3 = c << 4 | d; }
417
418 void setTevColorOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg) {
419 field_0x1 = field_0x1 & ~0x04 | op << 2;
420 if (op <= 1) {
421 field_0x1 = field_0x1 & ~0x30 | scale << 4;
422 field_0x1 = field_0x1 & ~0x03 | bias;
423 } else {
424 field_0x1 = field_0x1 & ~0x30 | (op >> 1 & 3) << 4;
425 field_0x1 = field_0x1 & ~0x03 | 3;
426 }
427 field_0x1 = field_0x1 & ~0x08 | clamp << 3;
428 field_0x1 = field_0x1 & ~0xc0 | reg << 6;
429 }
430
431 void setAlphaABCD(u8 a, u8 b, u8 c, u8 d) {
432 setAlphaA(a);
433 setAlphaB(b);
434 setAlphaC(c);
435 setAlphaD(d);
436 }
437
438 void setAlphaA(u8 a) {
439 field_0x6 = field_0x6 & ~0xe0 | a << 5;
440 }
441 void setAlphaB(u8 b) {
442 field_0x6 = field_0x6 & ~0x1c | b << 2;
443 }
444 void setAlphaC(u8 c) {
445 field_0x6 = field_0x6 & ~0x03 | c >> 1;
446 field_0x7 = field_0x7 & ~0x80 | c << 7;
447 }
448 void setAlphaD(u8 d) {
449 field_0x7 = field_0x7 & ~0x70 | d << 4;
450 }
451 void setTevAlphaOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg) {
452 field_0x5 = field_0x5 & ~0x04 | op << 2;
453 if (op <= 1) {
454 field_0x5 = field_0x5 & ~0x03 | bias;
455 field_0x5 = field_0x5 & ~0x30 | scale << 4;
456 } else {
457 field_0x5 = field_0x5 & ~0x30 | (op >> 1 & 3) << 4;
458 field_0x5 = field_0x5 & ~0x03 | 3;
459 }
460 field_0x5 = field_0x5 & ~0x08 | clamp << 3;
461 field_0x5 = field_0x5 & ~0xc0 | reg << 6;
462 }
463
464 u8 getColorA() { return (field_0x2 & 0xf0) >> 4; }
465 u8 getColorB() { return field_0x2 & 0x0f; }
466 u8 getColorC() { return (field_0x3 & 0xf0) >> 4; }
467 u8 getColorD() { return field_0x3 & 0x0f; }
468 u8 getAlphaA() { return (field_0x6 & 0xe0) >> 5; }
469 u8 getAlphaB() { return (field_0x6 & 0x1c) >> 2; }
470 u8 getAlphaC() { return (field_0x6 & 0x03) << 1 | (field_0x7 & 0x80) >> 7; }
471 u8 getAlphaD() { return (field_0x7 & 0x70) >> 4; }
473 if (getCBias() != 3) {
474 return (field_0x1 & 4) >> 2;
475 }
476 return ((field_0x1 & 4) >> 2) + 8 + ((field_0x1 & 0x30) >> 3);
477 }
478 u8 getCBias() { return field_0x1 & 0x03; }
479 u8 getCScale() { return (field_0x1 & 0x30) >> 4; }
480 u8 getCClamp() { return (field_0x1 & 0x08) >> 3; }
481 u8 getCReg() { return (field_0x1 & 0xc0) >> 6; }
483 if (getABias() != 3) {
484 return (field_0x5 & 4) >> 2;
485 }
486 return ((field_0x5 & 4) >> 2) + 8 + ((field_0x5 & 0x30) >> 3);
487 }
488 u8 getABias() { return field_0x5 & 0x03; }
489 u8 getAScale() { return (field_0x5 & 0x30) >> 4; }
490 u8 getAClamp() { return (field_0x5 & 0x08) >> 3; }
491 u8 getAReg() { return (field_0x5 & 0xc0) >> 6; }
492 u8 getRasSel() { return field_0x7 & 3; }
493 u8 getTexSel() { return (field_0x7 & 0x0c) >> 2; }
494
496 field_0x1 = other.field_0x1;
497 field_0x2 = other.field_0x2;
498 field_0x3 = other.field_0x3;
499 field_0x5 = other.field_0x5;
500 field_0x6 = other.field_0x6;
501 field_0x7 = other.field_0x7;
502 }
503
504private:
505 /* 0x0 */ u8 field_0x0;
506 /* 0x1 */ u8 field_0x1;
507 /* 0x2 */ u8 field_0x2;
508 /* 0x3 */ u8 field_0x3;
509 /* 0x4 */ u8 field_0x4;
510 /* 0x5 */ u8 field_0x5;
511 /* 0x6 */ u8 field_0x6;
512 /* 0x7 */ u8 field_0x7;
513};
514
520 /* 0x0 */ u8 field_0x0;
521 /* 0x1 */ u8 field_0x1;
522 /* 0x2 */ u8 field_0x2;
523 /* 0x3 */ u8 field_0x3;
524};
525
527 return (param_0 << 6) + (param_1 << 4) + (param_2 << 2) + param_3;
528}
529
531extern const u8 data_804561AC;
532
538public:
543
547 u8 getR() { return field_0x0 >> 6 & 3; }
548 u8 getG() { return field_0x0 >> 4 & 3; }
549 u8 getB() { return field_0x0 >> 2 & 3; }
550 u8 getA() { return field_0x0 & 3; }
551
552private:
553 /* 0x0 */ u8 field_0x0;
554};
555
556extern const GXColor j2dDefaultColInfo;
557extern const GXColorS10 j2dDefaultTevColor;
558extern const GXColor j2dDefaultTevKColor;
560extern const u8 j2dDefaultPEBlockDither;
561extern const u8 data_804561AC;
562extern const u16 j2dDefaultAlphaCmp;
563
564#endif /* J2DTEVS_H */
enum _GXIndTexBiasSel GXIndTexBiasSel
enum _GXTexCoordID GXTexCoordID
enum _GXIndTexFormat GXIndTexFormat
enum _GXIndTexAlphaSel GXIndTexAlphaSel
enum _GXIndTexScale GXIndTexScale
enum _GXIndTexStageID GXIndTexStageID
enum _GXTexMapID GXTexMapID
enum _GXIndTexMtxID GXIndTexMtxID
enum _GXChannelID GXChannelID
enum _GXIndTexWrap GXIndTexWrap
u8 GXBool
Definition GXEnum.h:23
enum _GXTexMtxType GXTexMtxType
J2DTevStageInfo const j2dDefaultTevStageInfo
J2DTexCoordInfo const j2dDefaultTexCoordInfo[8]
Definition J2DTevs.cpp:108
const u16 j2dDefaultAlphaCmp
J2DIndTexMtxInfo const j2dDefaultIndTexMtxInfo
Definition J2DTevs.cpp:120
const J2DTevSwapModeTableInfo j2dDefaultTevSwapModeTable
const u8 data_804561AC
Definition J2DTevs.h:561
u8 J2DCalcTevSwapTable(u8 param_0, u8 param_1, u8 param_2, u8 param_3)
Definition J2DTevs.h:526
const GXColor j2dDefaultTevKColor
const J2DIndTevStageInfo j2dDefaultIndTevStageInfo
u32 J2DCalcIndTevStage(J2DIndTevStageInfo info)
Definition J2DTevs.h:217
const J2DTevSwapModeInfo j2dDefaultTevSwapMode
J2DTexMtxInfo const j2dDefaultTexMtxInfo
Definition J2DTevs.cpp:116
const u8 j2dDefaultPEBlockDither
const J2DIndTexOrderInfo j2dDefaultIndTexOrderNull
const J2DIndTexCoordScaleInfo j2dDefaultIndTexCoordScaleInfo
const GXColor j2dDefaultColInfo
const GXColorS10 j2dDefaultTevColor
const J2DTevOrderInfo j2dDefaultTevOrderInfoNull
Definition J2DTevs.h:559
T cLib_calcTimer(T *value)
Definition c_lib.h:79
Definition J2DTevs.h:229
GXIndTexWrap getWrapS() const
Definition J2DTevs.h:247
J2DIndTevStage(const J2DIndTevStageInfo &info)
Definition J2DTevs.h:235
void setIndTevStageInfo(const J2DIndTevStageInfo &info)
Definition J2DTevs.h:239
GXIndTexMtxID getMtxSel() const
Definition J2DTevs.h:249
GXIndTexAlphaSel getAlphaSel() const
Definition J2DTevs.h:252
GXIndTexBiasSel getBiasSel() const
Definition J2DTevs.h:246
GXIndTexWrap getWrapT() const
Definition J2DTevs.h:248
void load(u8)
Definition J2DTevs.cpp:65
u32 mFlags
Definition J2DTevs.h:242
GXBool getLod() const
Definition J2DTevs.h:251
GXBool getPrev() const
Definition J2DTevs.h:250
J2DIndTevStage()
Definition J2DTevs.h:232
GXIndTexFormat getIndFormat() const
Definition J2DTevs.h:245
GXIndTexStageID getIndStage() const
Definition J2DTevs.h:244
Definition J2DTevs.h:179
J2DIndTexCoordScaleInfo mInfo
Definition J2DTevs.h:195
~J2DIndTexCoordScale()
Definition J2DTevs.h:181
J2DIndTexCoordScale()
Definition J2DTevs.h:182
J2DIndTexCoordScale(const J2DIndTexCoordScaleInfo &info)
Definition J2DTevs.h:185
void load(u8)
Definition J2DTevs.cpp:77
J2DIndTexCoordScale & operator=(const J2DIndTexCoordScaleInfo &info)
Definition J2DTevs.h:188
Definition J2DTevs.h:135
J2DIndTexMtx()
Definition J2DTevs.h:138
J2DIndTexMtxInfo mIndTexMtxInfo
Definition J2DTevs.h:153
J2DIndTexMtx & operator=(const J2DIndTexMtxInfo &info)
Definition J2DTevs.h:144
void load(u32)
~J2DIndTexMtx()
Definition J2DTevs.h:137
J2DIndTexMtx(const J2DIndTexMtxInfo &info)
Definition J2DTevs.h:141
void load(u8)
Definition J2DTevs.cpp:71
Definition J2DTevs.h:92
J2DIndTexOrder()
Definition J2DTevs.h:94
J2DIndTexOrder & operator=(const J2DIndTexOrderInfo &info)
Definition J2DTevs.h:100
J2DIndTexOrderInfo mInfo
Definition J2DTevs.h:107
J2DIndTexOrder(const J2DIndTexOrderInfo &info)
Definition J2DTevs.h:97
void load(u8)
Definition J2DTevs.cpp:82
Definition J2DTevs.h:322
GXTexCoordID getTexCoord() const
Definition J2DTevs.h:335
J2DTevOrderInfo mTevOrderInfo
Definition J2DTevs.h:337
GXTexMapID getTexMap() const
Definition J2DTevs.h:334
J2DTevOrder(const J2DTevOrderInfo &info)
Definition J2DTevs.h:328
GXChannelID getColor() const
Definition J2DTevs.h:333
void setTevOrderInfo(const J2DTevOrderInfo &info)
Definition J2DTevs.h:332
J2DTevOrder()
Definition J2DTevs.h:324
Definition J2DTevs.h:386
u8 getCOp()
Definition J2DTevs.h:472
u8 getColorD()
Definition J2DTevs.h:467
void setTexSel(u8 param_0)
Definition J2DTevs.h:402
u8 getAClamp()
Definition J2DTevs.h:490
void setAlphaB(u8 b)
Definition J2DTevs.h:441
u8 field_0x0
Definition J2DTevs.h:505
u8 getAlphaB()
Definition J2DTevs.h:469
u8 getCScale()
Definition J2DTevs.h:479
u8 getColorC()
Definition J2DTevs.h:466
u8 getTexSel()
Definition J2DTevs.h:493
u8 field_0x1
Definition J2DTevs.h:506
void setTevColorAB(u8 a, u8 b)
Definition J2DTevs.h:415
u8 getAlphaC()
Definition J2DTevs.h:470
void operator=(J2DTevStage const &other)
Definition J2DTevs.h:495
u8 field_0x5
Definition J2DTevs.h:510
u8 getCBias()
Definition J2DTevs.h:478
void setTevSwapModeInfo(const J2DTevSwapModeInfo &swapInfo)
Definition J2DTevs.h:397
u8 getColorA()
Definition J2DTevs.h:464
void setAlphaABCD(u8 a, u8 b, u8 c, u8 d)
Definition J2DTevs.h:431
J2DTevStage()
Definition J2DMatBlock.cpp:2238
u8 getColorB()
Definition J2DTevs.h:465
void setRasSel(u8 param_0)
Definition J2DTevs.h:406
u8 field_0x7
Definition J2DTevs.h:512
void setTevAlphaOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg)
Definition J2DTevs.h:451
u8 field_0x4
Definition J2DTevs.h:509
void setTevColorOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg)
Definition J2DTevs.h:418
u8 getCReg()
Definition J2DTevs.h:481
u8 getABias()
Definition J2DTevs.h:488
u8 getRasSel()
Definition J2DTevs.h:492
void setTevStageInfo(J2DTevStageInfo const &)
Definition J2DMatBlock.cpp:2245
u8 getAlphaA()
Definition J2DTevs.h:468
u8 field_0x2
Definition J2DTevs.h:507
u8 getAOp()
Definition J2DTevs.h:482
u8 getAlphaD()
Definition J2DTevs.h:471
void setAlphaC(u8 c)
Definition J2DTevs.h:444
u8 getAReg()
Definition J2DTevs.h:491
void setColorABCD(u8 a, u8 b, u8 c, u8 d)
Definition J2DTevs.h:410
u8 getCClamp()
Definition J2DTevs.h:480
u8 field_0x3
Definition J2DTevs.h:508
u8 field_0x6
Definition J2DTevs.h:511
void setAlphaA(u8 a)
Definition J2DTevs.h:438
u8 getAScale()
Definition J2DTevs.h:489
void setTevColorCD(u8 c, u8 d)
Definition J2DTevs.h:416
void setStageNo(u32 param_0)
Definition J2DTevs.h:392
void setAlphaD(u8 d)
Definition J2DTevs.h:448
Definition J2DTevs.h:537
void setTevSwapModeTableInfo(const J2DTevSwapModeTableInfo &info)
Definition J2DTevs.h:544
u8 getA()
Definition J2DTevs.h:550
u8 getR()
Definition J2DTevs.h:547
J2DTevSwapModeTable(const J2DTevSwapModeTableInfo &info)
Definition J2DTevs.h:540
u8 getB()
Definition J2DTevs.h:549
J2DTevSwapModeTable()
Definition J2DTevs.h:539
u8 getG()
Definition J2DTevs.h:548
u8 field_0x0
Definition J2DTevs.h:553
Definition J2DTevs.h:279
J2DTexCoord()
Definition J2DTevs.h:281
s32 getTexGenSrc()
Definition J2DTevs.h:291
s32 getTexGenType()
Definition J2DTevs.h:290
J2DTexCoord(const J2DTexCoordInfo &info)
Definition J2DTevs.h:285
void setTexGenMtx(u8 texGenMtx)
Definition J2DTevs.h:289
void setTexCoordInfo(const J2DTexCoordInfo &info)
Definition J2DTevs.h:288
s32 getTexGenMtx()
Definition J2DTevs.h:292
J2DTexCoordInfo mTexCoordInfo
Definition J2DTevs.h:295
Definition J2DTevs.h:53
Mtx mTexMtx
Definition J2DTevs.h:66
void getTextureMtxMaya(J2DTextureSRTInfo const &, Mtx)
Definition J2DTevs.cpp:46
J2DTexMtx(const J2DTexMtxInfo &info)
Definition J2DTevs.h:56
void setTexMtxInfo(J2DTexMtxInfo info)
Definition J2DTevs.h:62
J2DTexMtx()
Definition J2DTevs.h:55
void calc()
Definition J2DTevs.cpp:16
J2DTexMtxInfo mInfo
Definition J2DTevs.h:65
void getTextureMtx(J2DTextureSRTInfo const &, Vec, Mtx)
Definition J2DTevs.cpp:26
void load(u32)
Definition J2DTevs.cpp:11
J2DTexMtxInfo & getTexMtxInfo()
Definition J2DTevs.h:61
c
Definition e_acos.c:97
int i
Definition e_pow.c:165
int j
Definition e_pow.c:165
a
Definition k_cos.c:89
f32 Mtx23[2][3]
Definition mtx.h:17
f32 Mtx[3][4]
Definition mtx.h:15
Definition J2DTevs.h:202
u8 field_0x9
Definition J2DTevs.h:212
u8 mMtxSel
Definition J2DTevs.h:206
u8 mIndFormat
Definition J2DTevs.h:204
u8 mWrapT
Definition J2DTevs.h:208
u8 mWrapS
Definition J2DTevs.h:207
u8 mLod
Definition J2DTevs.h:210
u8 field_0xb
Definition J2DTevs.h:214
u8 field_0xa
Definition J2DTevs.h:213
u8 mPrev
Definition J2DTevs.h:209
u8 mBiasSel
Definition J2DTevs.h:205
u8 mIndStage
Definition J2DTevs.h:203
u8 mAlphaSel
Definition J2DTevs.h:211
Definition J2DTevs.h:160
GXIndTexScale getScaleT() const
Definition J2DTevs.h:170
u8 mScaleS
Definition J2DTevs.h:161
J2DIndTexCoordScaleInfo & operator=(const J2DIndTexCoordScaleInfo &other)
Definition J2DTevs.h:164
u8 mScaleT
Definition J2DTevs.h:162
GXIndTexScale getScaleS() const
Definition J2DTevs.h:169
Definition J2DTevs.h:114
s8 mScaleExp
Definition J2DTevs.h:116
J2DIndTexMtxInfo & operator=(const J2DIndTexMtxInfo &other)
Definition J2DTevs.h:118
Mtx23 mMtx
Definition J2DTevs.h:115
Definition J2DTevs.h:73
u8 mTexMapID
Definition J2DTevs.h:75
J2DIndTexOrderInfo & operator=(const J2DIndTexOrderInfo &other)
Definition J2DTevs.h:77
GXTexCoordID getTexCoordID() const
Definition J2DTevs.h:82
u8 mTexCoordID
Definition J2DTevs.h:74
GXTexMapID getTexMapID() const
Definition J2DTevs.h:83
Definition J2DTevs.h:302
u8 field_0x3
Definition J2DTevs.h:306
u8 mTexCoord
Definition J2DTevs.h:303
J2DTevOrderInfo & operator=(const J2DTevOrderInfo &other)
Definition J2DTevs.h:308
u8 mTexMap
Definition J2DTevs.h:304
u8 mColor
Definition J2DTevs.h:305
Definition J2DTevs.h:344
u8 mCOp
Definition J2DTevs.h:350
u8 mColorB
Definition J2DTevs.h:347
u8 mAClamp
Definition J2DTevs.h:362
u8 mABias
Definition J2DTevs.h:360
u8 mAlphaD
Definition J2DTevs.h:358
u8 field_0x0
Definition J2DTevs.h:345
u8 mCBias
Definition J2DTevs.h:351
u8 mColorD
Definition J2DTevs.h:349
u8 mColorC
Definition J2DTevs.h:348
u8 field_0x13
Definition J2DTevs.h:364
u8 mAlphaA
Definition J2DTevs.h:355
u8 mAOp
Definition J2DTevs.h:359
u8 mCReg
Definition J2DTevs.h:354
u8 mColorA
Definition J2DTevs.h:346
u8 mCClamp
Definition J2DTevs.h:353
u8 mAlphaB
Definition J2DTevs.h:356
u8 mCScale
Definition J2DTevs.h:352
u8 mAlphaC
Definition J2DTevs.h:357
u8 mAScale
Definition J2DTevs.h:361
u8 mAReg
Definition J2DTevs.h:363
Definition J2DTevs.h:373
u8 field_0x3
Definition J2DTevs.h:377
u8 mRasSel
Definition J2DTevs.h:374
u8 field_0x2
Definition J2DTevs.h:376
u8 mTexSel
Definition J2DTevs.h:375
Definition J2DTevs.h:519
u8 field_0x1
Definition J2DTevs.h:521
u8 field_0x2
Definition J2DTevs.h:522
u8 field_0x0
Definition J2DTevs.h:520
u8 field_0x3
Definition J2DTevs.h:523
Definition J2DTevs.h:259
u8 mTexGenMtx
Definition J2DTevs.h:262
u8 mTexGenSrc
Definition J2DTevs.h:261
J2DTexCoordInfo & operator=(const J2DTexCoordInfo &other)
Definition J2DTevs.h:265
u8 padding
Definition J2DTevs.h:263
u8 mTexGenType
Definition J2DTevs.h:260
Definition J2DTevs.h:23
GXTexMtxType getTexMtxType() const
Definition J2DTevs.h:36
u8 mTexMtxDCC
Definition J2DTevs.h:30
u8 field_0x3
Definition J2DTevs.h:32
J2DTexMtxInfo & operator=(const J2DTexMtxInfo &other)
Definition J2DTevs.h:37
J2DTextureSRTInfo mTexSRTInfo
Definition J2DTevs.h:34
@ DCC_MAYA
Definition J2DTevs.h:26
@ DCC_NONE
Definition J2DTevs.h:25
u8 mTexMtxType
Definition J2DTevs.h:29
Vec mCenter
Definition J2DTevs.h:33
u8 field_0x2
Definition J2DTevs.h:31
Definition J2DTevs.h:11
f32 mRotationDeg
Definition J2DTevs.h:14
f32 mTranslationY
Definition J2DTevs.h:16
f32 mScaleX
Definition J2DTevs.h:12
f32 mTranslationX
Definition J2DTevs.h:15
f32 mScaleY
Definition J2DTevs.h:13
Definition d_a_hozelda.cpp:18
Definition d_a_obj_sekizoa.cpp:191
Definition d_a_ep.cpp:68
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8