Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JPAExTexShape.h
Go to the documentation of this file.
1#ifndef JPAEXTEXSHAPE_H
2#define JPAEXTEXSHAPE_H
3
4#include "dolphin/types.h"
5
7
13 // Common header.
14 /* 0x00 */ u8 mMagic[4];
15 /* 0x04 */ u32 mSize;
16
17 /* 0x08 */ u32 mFlags;
18 /* 0x0C */ f32 mIndTexMtx[2][3];
19 /* 0x24 */ s8 mExpScale;
20 /* 0x25 */ s8 mIndTexIdx;
21 /* 0x26 */ s8 mSecTexIdx;
22};
23
29public:
30 /* 8027B13C */ JPAExTexShape(u8 const*);
31
32 const f32* getIndTexMtx() const { return &mpData->mIndTexMtx[0][0]; }
33 s8 getExpScale() const { return mpData->mExpScale; }
34 u8 getIndTexIdx() const { return mpData->mIndTexIdx; }
35 u8 getSecTexIdx() const { return mpData->mSecTexIdx; }
36 bool isUseIndirect() const { return !!(mpData->mFlags & 0x01); }
37 bool isUseSecTex() const { return !!(mpData->mFlags & 0x0100); }
38
39public:
41};
42
44
45#endif /* JPAEXTEXSHAPE_H */
void JPALoadExTex(JPAEmitterWorkData *)
Definition JPAExTexShape.cpp:12
Definition JPAExTexShape.h:28
u8 getSecTexIdx() const
Definition JPAExTexShape.h:35
const JPAExTexShapeData * mpData
Definition JPAExTexShape.h:40
const f32 * getIndTexMtx() const
Definition JPAExTexShape.h:32
u8 getIndTexIdx() const
Definition JPAExTexShape.h:34
s8 getExpScale() const
Definition JPAExTexShape.h:33
bool isUseSecTex() const
Definition JPAExTexShape.h:37
bool isUseIndirect() const
Definition JPAExTexShape.h:36
Definition JPAEmitter.h:21
Definition JPAExTexShape.h:12
s8 mExpScale
Definition JPAExTexShape.h:19
s8 mSecTexIdx
Definition JPAExTexShape.h:21
u8 mMagic[4]
Definition JPAExTexShape.h:14
u32 mFlags
Definition JPAExTexShape.h:17
s8 mIndTexIdx
Definition JPAExTexShape.h:20
f32 mIndTexMtx[2][3]
Definition JPAExTexShape.h:18
u32 mSize
Definition JPAExTexShape.h:15
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8