Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J3DTransform.cpp File Reference

Functions

void __MTGQR7 (register u32 v)
 
void J3DGQRSetup7 (u32 r0, u32 r1, u32 r2, u32 r3)
 
f32 J3D_sqrtf (register f32 x)
 
void J3DCalcBBoardMtx (register Mtx mtx)
 
void J3DCalcYBBoardMtx (Mtx mtx)
 
asm void J3DPSCalcInverseTranspose (register Mtx src, register Mtx33 dst)
 
void J3DGetTranslateRotateMtx (const J3DTransformInfo &tx, Mtx dst)
 
void J3DGetTranslateRotateMtx (s16 rx, s16 ry, s16 rz, f32 tx, f32 ty, f32 tz, Mtx dst)
 
void J3DGetTextureMtx (const J3DTextureSRTInfo &srt, const Vec &center, Mtx dst)
 
void J3DGetTextureMtxOld (const J3DTextureSRTInfo &srt, const Vec &center, Mtx dst)
 
void J3DGetTextureMtxMaya (const J3DTextureSRTInfo &srt, Mtx dst)
 
void J3DGetTextureMtxMayaOld (const J3DTextureSRTInfo &srt, Mtx dst)
 
asm void J3DScaleNrmMtx (register Mtx mtx, const register Vec &scl)
 
asm void J3DScaleNrmMtx33 (register Mtx33 mtx, const register Vec &scale)
 
asm void J3DMtxProjConcat (register Mtx mtx1, register Mtx mtx2, register Mtx dst)
 
asm void J3DPSMtxArrayConcat (register Mtx mA, register Mtx mB, register Mtx mAB, register u32 count)
 

Variables

J3DTransformInfo const j3dDefaultTransformInfo
 
Vec const j3dDefaultScale = {1.0f, 1.0f, 1.0f}
 
Mtx const j3dDefaultMtx
 
static f32 Unit01 [2]
 
f32 PSMulUnit01 []
 

Function Documentation

◆ __MTGQR7()

void __MTGQR7 ( register u32  v)

◆ J3D_sqrtf()

f32 J3D_sqrtf ( register f32  x)
inline

◆ J3DCalcBBoardMtx()

void J3DCalcBBoardMtx ( register Mtx  mtx)

◆ J3DCalcYBBoardMtx()

void J3DCalcYBBoardMtx ( Mtx  mtx)

◆ J3DGetTextureMtx()

void J3DGetTextureMtx ( const J3DTextureSRTInfo srt,
const Vec center,
Mtx  dst 
)

◆ J3DGetTextureMtxMaya()

void J3DGetTextureMtxMaya ( const J3DTextureSRTInfo srt,
Mtx  dst 
)

◆ J3DGetTextureMtxMayaOld()

void J3DGetTextureMtxMayaOld ( const J3DTextureSRTInfo srt,
Mtx  dst 
)

◆ J3DGetTextureMtxOld()

void J3DGetTextureMtxOld ( const J3DTextureSRTInfo srt,
const Vec center,
Mtx  dst 
)

◆ J3DGetTranslateRotateMtx() [1/2]

void J3DGetTranslateRotateMtx ( const J3DTransformInfo tx,
Mtx  dst 
)

◆ J3DGetTranslateRotateMtx() [2/2]

void J3DGetTranslateRotateMtx ( s16  rx,
s16  ry,
s16  rz,
f32  tx,
f32  ty,
f32  tz,
Mtx  dst 
)

◆ J3DGQRSetup7()

void J3DGQRSetup7 ( u32  r0,
u32  r1,
u32  r2,
u32  r3 
)

◆ J3DMtxProjConcat()

asm void J3DMtxProjConcat ( register Mtx  mtx1,
register Mtx  mtx2,
register Mtx  dst 
)

◆ J3DPSCalcInverseTranspose()

asm void J3DPSCalcInverseTranspose ( register Mtx  src,
register Mtx33  dst 
)

◆ J3DPSMtxArrayConcat()

asm void J3DPSMtxArrayConcat ( register Mtx  mA,
register Mtx  mB,
register Mtx  mAB,
register u32  count 
)

◆ J3DScaleNrmMtx()

asm void J3DScaleNrmMtx ( register Mtx  mtx,
const register Vec scl 
)

◆ J3DScaleNrmMtx33()

asm void J3DScaleNrmMtx33 ( register Mtx33  mtx,
const register Vec scale 
)

Variable Documentation

◆ j3dDefaultMtx

Mtx const j3dDefaultMtx
extern
Initial value:
= {
{1.0f, 0.0f, 0.0f, 0.0f}, {0.0f, 1.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 1.0f, 0.0f}}

◆ j3dDefaultScale

Vec const j3dDefaultScale = {1.0f, 1.0f, 1.0f}
extern

◆ j3dDefaultTransformInfo

J3DTransformInfo const j3dDefaultTransformInfo
extern
Initial value:
= {
{1.0f, 1.0f, 1.0f}, {0, 0, 0}, {0.0f, 0.0f, 0.0f}}

◆ PSMulUnit01

f32 PSMulUnit01[]
extern
Initial value:
= {
0.0f,
-1.0f,
}

◆ Unit01

f32 Unit01[2]
static
Initial value:
= {
0.0f, 1.0f
}