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 }
191 /* 802EA0CC */ void load(u8);
192
193private:
195}; // Size: 0x2
196
202 /* 0x0 */ u8 mIndStage;
203 /* 0x1 */ u8 mIndFormat;
204 /* 0x2 */ u8 mBiasSel;
205 /* 0x3 */ u8 mMtxSel;
206 /* 0x4 */ u8 mWrapS;
207 /* 0x5 */ u8 mWrapT;
208 /* 0x6 */ u8 mPrev;
209 /* 0x7 */ u8 mLod;
210 /* 0x8 */ u8 mAlphaSel;
211 /* 0x9 */ u8 field_0x9;
212 /* 0xa */ u8 field_0xa;
213 /* 0xb */ u8 field_0xb;
214};
215
217 return (info.mAlphaSel << 22) | (info.mLod << 21) | (info.mPrev << 20) |
218 (info.mMtxSel << 16) | (info.mWrapT << 11) | (info.mWrapS << 8) |
219 (info.mBiasSel << 4) | (info.mIndFormat << 2) | (info.mIndStage);
220}
221
223
229public:
230 /* 802EA044 */ void load(u8);
237
239
240private:
241 /* 0x0 */ u32 mFlags;
242
243 GXIndTexStageID getIndStage() const { return (GXIndTexStageID)(mFlags & 0x03); }
244 GXIndTexFormat getIndFormat() const { return (GXIndTexFormat)((mFlags >> 2) & 0x03); }
245 GXIndTexBiasSel getBiasSel() const { return (GXIndTexBiasSel)((mFlags >> 4) & 0x07); }
246 GXIndTexWrap getWrapS() const { return (GXIndTexWrap)((mFlags >> 8) & 0x07); }
247 GXIndTexWrap getWrapT() const { return (GXIndTexWrap)((mFlags >> 11) & 0x07); }
248 GXIndTexMtxID getMtxSel() const { return (GXIndTexMtxID)((mFlags >> 16) & 0x0F); }
249 GXBool getPrev() const { return (GXBool)((mFlags >> 20) & 0x01); }
250 GXBool getLod() const { return (GXBool)((mFlags >> 21) & 0x01); }
251 GXIndTexAlphaSel getAlphaSel() const { return (GXIndTexAlphaSel)((mFlags >> 22) & 0x03); }
252};
253
259 /* 0x0 */ u8 mTexGenType;
260 /* 0x1 */ u8 mTexGenSrc;
261 /* 0x2 */ u8 mTexGenMtx;
263
265 this->mTexGenType = other.mTexGenType;
266 this->mTexGenSrc = other.mTexGenSrc;
267 this->mTexGenMtx = other.mTexGenMtx;
268 return *this;
269 }
270};
271
273
279public:
280 /* 802EB260 */ inline J2DTexCoord() {
282 }
283
285 *(J2DTexCoordInfo*)this = info;
286 }
287 void setTexCoordInfo(const J2DTexCoordInfo& info) { mTexCoordInfo = info; }
292
293private:
295};
296
302 /* 0x0 */ u8 mTexCoord;
303 /* 0x1 */ u8 mTexMap;
304 /* 0x2 */ u8 mColor;
305 /* 0x3 */ u8 field_0x3;
306
309 mTexMap = other.mTexMap;
310 mColor = other.mColor;
311 return *this;
312 }
313};
314
316
322public:
323 /* 802F1B70 */ J2DTevOrder() {
325 }
326
328 *(J2DTevOrderInfo*)this = info;
329 }
330
331 void setTevOrderInfo(const J2DTevOrderInfo& info) {mTevOrderInfo = info; }
335
337};
338
344 /* 0x00 */ u8 field_0x0;
345 /* 0x01 */ u8 mColorA;
346 /* 0x02 */ u8 mColorB;
347 /* 0x03 */ u8 mColorC;
348 /* 0x04 */ u8 mColorD;
349 /* 0x05 */ u8 mCOp;
350 /* 0x06 */ u8 mCBias;
351 /* 0x07 */ u8 mCScale;
352 /* 0x08 */ u8 mCClamp;
353 /* 0x09 */ u8 mCReg;
354 /* 0x0A */ u8 mAlphaA;
355 /* 0x0B */ u8 mAlphaB;
356 /* 0x0C */ u8 mAlphaC;
357 /* 0x0D */ u8 mAlphaD;
358 /* 0x0E */ u8 mAOp;
359 /* 0x0F */ u8 mABias;
360 /* 0x10 */ u8 mAScale;
361 /* 0x11 */ u8 mAClamp;
362 /* 0x12 */ u8 mAReg;
363 /* 0x13 */ u8 field_0x13;
364};
365
367
373 /* 0x0 */ u8 mRasSel;
374 /* 0x1 */ u8 mTexSel;
375 /* 0x2 */ u8 field_0x2;
376 /* 0x3 */ u8 field_0x3;
377};
378
380
386public:
387 /* 802F4110 */ J2DTevStage(J2DTevStageInfo const&);
388 /* 802F1940 */ J2DTevStage();
389 /* 802F19A8 */ void setTevStageInfo(J2DTevStageInfo const&);
390
392 field_0x0 = (param_0 << 1) + 0xc0;
393 field_0x4 = (param_0 << 1) + 0xc1;
394 }
395
397 setTexSel(swapInfo.mTexSel);
398 setRasSel(swapInfo.mRasSel);
399 }
400
402 field_0x7 = (field_0x7 & ~0x0c) | (param_0 * 4);
403 }
404
406 field_0x7 = (field_0x7 & ~0x03) | param_0;
407 }
408
409 void setColorABCD(u8 a, u8 b, u8 c, u8 d) {
410 setTevColorAB(a, b);
411 setTevColorCD(c, d);
412 }
413
414 void setTevColorAB(u8 a, u8 b) { field_0x2 = a << 4 | b; }
415 void setTevColorCD(u8 c, u8 d) { field_0x3 = c << 4 | d; }
416
417 void setTevColorOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg) {
418 field_0x1 = field_0x1 & ~0x04 | op << 2;
419 if (op <= 1) {
420 field_0x1 = field_0x1 & ~0x30 | scale << 4;
421 field_0x1 = field_0x1 & ~0x03 | bias;
422 } else {
423 field_0x1 = field_0x1 & ~0x30 | (op >> 1 & 3) << 4;
424 field_0x1 = field_0x1 & ~0x03 | 3;
425 }
426 field_0x1 = field_0x1 & ~0x08 | clamp << 3;
427 field_0x1 = field_0x1 & ~0xc0 | reg << 6;
428 }
429
430 void setAlphaABCD(u8 a, u8 b, u8 c, u8 d) {
431 setAlphaA(a);
432 setAlphaB(b);
433 setAlphaC(c);
434 setAlphaD(d);
435 }
436
437 void setAlphaA(u8 a) {
438 field_0x6 = field_0x6 & ~0xe0 | a << 5;
439 }
440 void setAlphaB(u8 b) {
441 field_0x6 = field_0x6 & ~0x1c | b << 2;
442 }
443 void setAlphaC(u8 c) {
444 field_0x6 = field_0x6 & ~0x03 | c >> 1;
445 field_0x7 = field_0x7 & ~0x80 | c << 7;
446 }
447 void setAlphaD(u8 d) {
448 field_0x7 = field_0x7 & ~0x70 | d << 4;
449 }
450 void setTevAlphaOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg) {
451 field_0x5 = field_0x5 & ~0x04 | op << 2;
452 if (op <= 1) {
453 field_0x5 = field_0x5 & ~0x03 | bias;
454 field_0x5 = field_0x5 & ~0x30 | scale << 4;
455 } else {
456 field_0x5 = field_0x5 & ~0x30 | (op >> 1 & 3) << 4;
457 field_0x5 = field_0x5 & ~0x03 | 3;
458 }
459 field_0x5 = field_0x5 & ~0x08 | clamp << 3;
460 field_0x5 = field_0x5 & ~0xc0 | reg << 6;
461 }
462
463 u8 getColorA() { return (field_0x2 & 0xf0) >> 4; }
464 u8 getColorB() { return field_0x2 & 0x0f; }
465 u8 getColorC() { return (field_0x3 & 0xf0) >> 4; }
466 u8 getColorD() { return field_0x3 & 0x0f; }
467 u8 getAlphaA() { return (field_0x6 & 0xe0) >> 5; }
468 u8 getAlphaB() { return (field_0x6 & 0x1c) >> 2; }
469 u8 getAlphaC() { return (field_0x6 & 0x03) << 1 | (field_0x7 & 0x80) >> 7; }
470 u8 getAlphaD() { return (field_0x7 & 0x70) >> 4; }
472 if (getCBias() != 3) {
473 return (field_0x1 & 4) >> 2;
474 }
475 return ((field_0x1 & 4) >> 2) + 8 + ((field_0x1 & 0x30) >> 3);
476 }
477 u8 getCBias() { return field_0x1 & 0x03; }
478 u8 getCScale() { return (field_0x1 & 0x30) >> 4; }
479 u8 getCClamp() { return (field_0x1 & 0x08) >> 3; }
480 u8 getCReg() { return (field_0x1 & 0xc0) >> 6; }
482 if (getABias() != 3) {
483 return (field_0x5 & 4) >> 2;
484 }
485 return ((field_0x5 & 4) >> 2) + 8 + ((field_0x5 & 0x30) >> 3);
486 }
487 u8 getABias() { return field_0x5 & 0x03; }
488 u8 getAScale() { return (field_0x5 & 0x30) >> 4; }
489 u8 getAClamp() { return (field_0x5 & 0x08) >> 3; }
490 u8 getAReg() { return (field_0x5 & 0xc0) >> 6; }
491 u8 getRasSel() { return field_0x7 & 3; }
492 u8 getTexSel() { return (field_0x7 & 0x0c) >> 2; }
493
495 field_0x1 = other.field_0x1;
496 field_0x2 = other.field_0x2;
497 field_0x3 = other.field_0x3;
498 field_0x5 = other.field_0x5;
499 field_0x6 = other.field_0x6;
500 field_0x7 = other.field_0x7;
501 }
502
503private:
504 /* 0x0 */ u8 field_0x0;
505 /* 0x1 */ u8 field_0x1;
506 /* 0x2 */ u8 field_0x2;
507 /* 0x3 */ u8 field_0x3;
508 /* 0x4 */ u8 field_0x4;
509 /* 0x5 */ u8 field_0x5;
510 /* 0x6 */ u8 field_0x6;
511 /* 0x7 */ u8 field_0x7;
512};
513
519 /* 0x0 */ u8 field_0x0;
520 /* 0x1 */ u8 field_0x1;
521 /* 0x2 */ u8 field_0x2;
522 /* 0x3 */ u8 field_0x3;
523};
524
526 return (param_0 << 6) + (param_1 << 4) + (param_2 << 2) + param_3;
527}
528
530extern const u8 data_804561AC;
531
537public:
542
546 u8 getR() { return field_0x0 >> 6 & 3; }
547 u8 getG() { return field_0x0 >> 4 & 3; }
548 u8 getB() { return field_0x0 >> 2 & 3; }
549 u8 getA() { return field_0x0 & 3; }
550
551private:
552 /* 0x0 */ u8 field_0x0;
553};
554
555extern const GXColor j2dDefaultColInfo;
556extern const GXColorS10 j2dDefaultTevColor;
557extern const GXColor j2dDefaultTevKColor;
559extern const u8 j2dDefaultPEBlockDither;
560extern const u8 data_804561AC;
561extern const u16 j2dDefaultAlphaCmp;
562
563#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:560
u8 J2DCalcTevSwapTable(u8 param_0, u8 param_1, u8 param_2, u8 param_3)
Definition J2DTevs.h:525
const GXColor j2dDefaultTevKColor
const J2DIndTevStageInfo j2dDefaultIndTevStageInfo
u32 J2DCalcIndTevStage(J2DIndTevStageInfo info)
Definition J2DTevs.h:216
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:558
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition J2DTevs.h:228
GXIndTexWrap getWrapS() const
Definition J2DTevs.h:246
J2DIndTevStage(const J2DIndTevStageInfo &info)
Definition J2DTevs.h:234
void setIndTevStageInfo(const J2DIndTevStageInfo &info)
Definition J2DTevs.h:238
GXIndTexMtxID getMtxSel() const
Definition J2DTevs.h:248
GXIndTexAlphaSel getAlphaSel() const
Definition J2DTevs.h:251
GXIndTexBiasSel getBiasSel() const
Definition J2DTevs.h:245
GXIndTexWrap getWrapT() const
Definition J2DTevs.h:247
void load(u8)
Definition J2DTevs.cpp:65
u32 mFlags
Definition J2DTevs.h:241
GXBool getLod() const
Definition J2DTevs.h:250
GXBool getPrev() const
Definition J2DTevs.h:249
J2DIndTevStage()
Definition J2DTevs.h:231
GXIndTexFormat getIndFormat() const
Definition J2DTevs.h:244
GXIndTexStageID getIndStage() const
Definition J2DTevs.h:243
Definition J2DTevs.h:179
J2DIndTexCoordScaleInfo mInfo
Definition J2DTevs.h:194
~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:321
GXTexCoordID getTexCoord() const
Definition J2DTevs.h:334
J2DTevOrderInfo mTevOrderInfo
Definition J2DTevs.h:336
GXTexMapID getTexMap() const
Definition J2DTevs.h:333
J2DTevOrder(const J2DTevOrderInfo &info)
Definition J2DTevs.h:327
GXChannelID getColor() const
Definition J2DTevs.h:332
void setTevOrderInfo(const J2DTevOrderInfo &info)
Definition J2DTevs.h:331
J2DTevOrder()
Definition J2DTevs.h:323
Definition J2DTevs.h:385
u8 getCOp()
Definition J2DTevs.h:471
u8 getColorD()
Definition J2DTevs.h:466
void setTexSel(u8 param_0)
Definition J2DTevs.h:401
u8 getAClamp()
Definition J2DTevs.h:489
void setAlphaB(u8 b)
Definition J2DTevs.h:440
u8 field_0x0
Definition J2DTevs.h:504
u8 getAlphaB()
Definition J2DTevs.h:468
u8 getCScale()
Definition J2DTevs.h:478
u8 getColorC()
Definition J2DTevs.h:465
u8 getTexSel()
Definition J2DTevs.h:492
u8 field_0x1
Definition J2DTevs.h:505
void setTevColorAB(u8 a, u8 b)
Definition J2DTevs.h:414
u8 getAlphaC()
Definition J2DTevs.h:469
void operator=(J2DTevStage const &other)
Definition J2DTevs.h:494
u8 field_0x5
Definition J2DTevs.h:509
u8 getCBias()
Definition J2DTevs.h:477
void setTevSwapModeInfo(const J2DTevSwapModeInfo &swapInfo)
Definition J2DTevs.h:396
u8 getColorA()
Definition J2DTevs.h:463
void setAlphaABCD(u8 a, u8 b, u8 c, u8 d)
Definition J2DTevs.h:430
J2DTevStage()
Definition J2DMatBlock.cpp:2238
u8 getColorB()
Definition J2DTevs.h:464
void setRasSel(u8 param_0)
Definition J2DTevs.h:405
u8 field_0x7
Definition J2DTevs.h:511
void setTevAlphaOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg)
Definition J2DTevs.h:450
u8 field_0x4
Definition J2DTevs.h:508
void setTevColorOp(u8 op, u8 bias, u8 scale, u8 clamp, u8 reg)
Definition J2DTevs.h:417
u8 getCReg()
Definition J2DTevs.h:480
u8 getABias()
Definition J2DTevs.h:487
u8 getRasSel()
Definition J2DTevs.h:491
void setTevStageInfo(J2DTevStageInfo const &)
Definition J2DMatBlock.cpp:2245
u8 getAlphaA()
Definition J2DTevs.h:467
u8 field_0x2
Definition J2DTevs.h:506
u8 getAOp()
Definition J2DTevs.h:481
u8 getAlphaD()
Definition J2DTevs.h:470
void setAlphaC(u8 c)
Definition J2DTevs.h:443
u8 getAReg()
Definition J2DTevs.h:490
void setColorABCD(u8 a, u8 b, u8 c, u8 d)
Definition J2DTevs.h:409
u8 getCClamp()
Definition J2DTevs.h:479
u8 field_0x3
Definition J2DTevs.h:507
u8 field_0x6
Definition J2DTevs.h:510
void setAlphaA(u8 a)
Definition J2DTevs.h:437
u8 getAScale()
Definition J2DTevs.h:488
void setTevColorCD(u8 c, u8 d)
Definition J2DTevs.h:415
void setStageNo(u32 param_0)
Definition J2DTevs.h:391
void setAlphaD(u8 d)
Definition J2DTevs.h:447
Definition J2DTevs.h:536
void setTevSwapModeTableInfo(const J2DTevSwapModeTableInfo &info)
Definition J2DTevs.h:543
u8 getA()
Definition J2DTevs.h:549
u8 getR()
Definition J2DTevs.h:546
J2DTevSwapModeTable(const J2DTevSwapModeTableInfo &info)
Definition J2DTevs.h:539
u8 getB()
Definition J2DTevs.h:548
J2DTevSwapModeTable()
Definition J2DTevs.h:538
u8 getG()
Definition J2DTevs.h:547
u8 field_0x0
Definition J2DTevs.h:552
Definition J2DTevs.h:278
J2DTexCoord()
Definition J2DTevs.h:280
s32 getTexGenSrc()
Definition J2DTevs.h:290
s32 getTexGenType()
Definition J2DTevs.h:289
J2DTexCoord(const J2DTexCoordInfo &info)
Definition J2DTevs.h:284
void setTexGenMtx(u8 texGenMtx)
Definition J2DTevs.h:288
void setTexCoordInfo(const J2DTexCoordInfo &info)
Definition J2DTevs.h:287
s32 getTexGenMtx()
Definition J2DTevs.h:291
J2DTexCoordInfo mTexCoordInfo
Definition J2DTevs.h:294
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:201
u8 field_0x9
Definition J2DTevs.h:211
u8 mMtxSel
Definition J2DTevs.h:205
u8 mIndFormat
Definition J2DTevs.h:203
u8 mWrapT
Definition J2DTevs.h:207
u8 mWrapS
Definition J2DTevs.h:206
u8 mLod
Definition J2DTevs.h:209
u8 field_0xb
Definition J2DTevs.h:213
u8 field_0xa
Definition J2DTevs.h:212
u8 mPrev
Definition J2DTevs.h:208
u8 mBiasSel
Definition J2DTevs.h:204
u8 mIndStage
Definition J2DTevs.h:202
u8 mAlphaSel
Definition J2DTevs.h:210
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:301
u8 field_0x3
Definition J2DTevs.h:305
u8 mTexCoord
Definition J2DTevs.h:302
J2DTevOrderInfo & operator=(const J2DTevOrderInfo &other)
Definition J2DTevs.h:307
u8 mTexMap
Definition J2DTevs.h:303
u8 mColor
Definition J2DTevs.h:304
Definition J2DTevs.h:343
u8 mCOp
Definition J2DTevs.h:349
u8 mColorB
Definition J2DTevs.h:346
u8 mAClamp
Definition J2DTevs.h:361
u8 mABias
Definition J2DTevs.h:359
u8 mAlphaD
Definition J2DTevs.h:357
u8 field_0x0
Definition J2DTevs.h:344
u8 mCBias
Definition J2DTevs.h:350
u8 mColorD
Definition J2DTevs.h:348
u8 mColorC
Definition J2DTevs.h:347
u8 field_0x13
Definition J2DTevs.h:363
u8 mAlphaA
Definition J2DTevs.h:354
u8 mAOp
Definition J2DTevs.h:358
u8 mCReg
Definition J2DTevs.h:353
u8 mColorA
Definition J2DTevs.h:345
u8 mCClamp
Definition J2DTevs.h:352
u8 mAlphaB
Definition J2DTevs.h:355
u8 mCScale
Definition J2DTevs.h:351
u8 mAlphaC
Definition J2DTevs.h:356
u8 mAScale
Definition J2DTevs.h:360
u8 mAReg
Definition J2DTevs.h:362
Definition J2DTevs.h:372
u8 field_0x3
Definition J2DTevs.h:376
u8 mRasSel
Definition J2DTevs.h:373
u8 field_0x2
Definition J2DTevs.h:375
u8 mTexSel
Definition J2DTevs.h:374
Definition J2DTevs.h:518
u8 field_0x1
Definition J2DTevs.h:520
u8 field_0x2
Definition J2DTevs.h:521
u8 field_0x0
Definition J2DTevs.h:519
u8 field_0x3
Definition J2DTevs.h:522
Definition J2DTevs.h:258
u8 mTexGenMtx
Definition J2DTevs.h:261
u8 mTexGenSrc
Definition J2DTevs.h:260
J2DTexCoordInfo & operator=(const J2DTexCoordInfo &other)
Definition J2DTevs.h:264
u8 padding
Definition J2DTevs.h:262
u8 mTexGenType
Definition J2DTevs.h:259
Definition J2DTevs.h:23
@ DCC_MAYA
Definition J2DTevs.h:26
@ DCC_NONE
Definition J2DTevs.h:25
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
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