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

Functions

void J3DGDSetGenMode (u8 texGenNum, u8 colorChanNum, u8 tevStageNum, u8 indTexStageNum, GXCullMode cullMode)
 
void J3DGDSetGenMode_3Param (u8 texGenNum, u8 tevStageNum, u8 indTexStageNum)
 
void J3DGDSetLightAttn (GXLightID id, f32 a0, f32 a1, f32 a2, f32 k0, f32 k1, f32 k2)
 
void J3DGDSetLightColor (GXLightID id, GXColor color)
 
void J3DGDSetLightPos (GXLightID id, f32 x, f32 y, f32 z)
 
void J3DGDSetLightDir (GXLightID id, f32 x, f32 y, f32 z)
 
void J3DGDSetVtxAttrFmtv (GXVtxFmt fmt, GXVtxAttrFmtList const *fmtList, bool param_2)
 
void J3DGDSetTexCoordGen (GXTexGenType texGenType, GXTexGenSrc texGenSrc)
 
void J3DGDSetTexCoordScale2 (GXTexCoordID param_0, u16 param_1, u8 param_2, u8 param_3, u16 param_4, u8 param_5, u8 param_6)
 
void J3DGDSetTexLookupMode (GXTexMapID param_0, GXTexWrapMode param_1, GXTexWrapMode param_2, GXTexFilter param_3, GXTexFilter param_4, f32 param_5, f32 param_6, f32 param_7, u8 param_8, u8 param_9, GXAnisotropy param_10)
 
void J3DGDSetTexImgAttr (GXTexMapID param_0, u16 param_1, u16 param_2, GXTexFmt param_3)
 
void J3DGDSetTexImgPtr (GXTexMapID param_0, void *param_1)
 
void J3DGDSetTexImgPtrRaw (GXTexMapID param_0, u32 param_1)
 
void J3DGDSetTexTlut (GXTexMapID param_0, u32 param_1, GXTlutFmt param_2)
 
void J3DGDLoadTlut (void *param_0, u32 param_1, GXTlutSize param_2)
 
void J3DGDSetIndTexMtx (GXIndTexMtxID id, Mtx3P mtx, s8 exp)
 
void J3DGDSetIndTexCoordScale (GXIndTexStageID stage, GXIndTexScale scale0, GXIndTexScale scale1, GXIndTexScale scale2, GXIndTexScale scale3)
 
void J3DGDSetIndTexOrder (u32 count, GXTexCoordID coord0, GXTexMapID map0, GXTexCoordID coord1, GXTexMapID map1, GXTexCoordID coord2, GXTexMapID map2, GXTexCoordID coord3, GXTexMapID map3)
 
void J3DGDSetTevOrder (GXTevStageID stage, GXTexCoordID coord0, GXTexMapID map0, GXChannelID channel0, GXTexCoordID coord1, GXTexMapID map1, GXChannelID channel1)
 
void J3DGDSetTevKColor (GXTevKColorID id, GXColor color)
 
void J3DGDSetTevColorS10 (GXTevRegID id, GXColorS10 color)
 
void J3DGDSetFog (GXFogType fogType, f32 param_1, f32 param_2, f32 nearZ, f32 farZ, GXColor color)
 
void J3DGDSetFogRangeAdj (u8 param_0, u16 param_1, GXFogAdjTable *table)
 
void J3DFifoLoadPosMtxImm (MtxP mtx, u32 addr)
 
void J3DFifoLoadNrmMtxImm (MtxP mtx, u32 addr)
 
void J3DFifoLoadNrmMtxImm3x3 (Mtx3P mtx, u32 addr)
 
void J3DFifoLoadNrmMtxToTexMtx (MtxP mtx, u32 addr)
 
void J3DFifoLoadNrmMtxToTexMtx3x3 (Mtx3P mtx, u32 addr)
 
void J3DFifoLoadTexCached (GXTexMapID id, u32 param_1, GXTexCacheSize param_2, u32 param_3, GXTexCacheSize param_4)
 

Variables

static u8 J3DGDTexMode0Ids [8]
 
static u8 J3DGDTexMode1Ids [8]
 
static u8 J3DGDTexImage0Ids [8]
 
static u8 J3DGDTexImage3Ids [8]
 
static u8 J3DGDTexTlutIds [8]
 
static u8 GX2HWFiltConv [6]
 
static u8 J3DTexImage1Ids [8]
 
static u8 J3DTexImage2Ids [8]
 

Function Documentation

◆ J3DFifoLoadNrmMtxImm()

void J3DFifoLoadNrmMtxImm ( MtxP  mtx,
u32  addr 
)

◆ J3DFifoLoadNrmMtxImm3x3()

void J3DFifoLoadNrmMtxImm3x3 ( Mtx3P  mtx,
u32  addr 
)

◆ J3DFifoLoadNrmMtxToTexMtx()

void J3DFifoLoadNrmMtxToTexMtx ( MtxP  mtx,
u32  addr 
)

◆ J3DFifoLoadNrmMtxToTexMtx3x3()

void J3DFifoLoadNrmMtxToTexMtx3x3 ( Mtx3P  mtx,
u32  addr 
)

◆ J3DFifoLoadPosMtxImm()

void J3DFifoLoadPosMtxImm ( MtxP  mtx,
u32  addr 
)

◆ J3DFifoLoadTexCached()

void J3DFifoLoadTexCached ( GXTexMapID  id,
u32  param_1,
GXTexCacheSize  param_2,
u32  param_3,
GXTexCacheSize  param_4 
)

◆ J3DGDLoadTlut()

void J3DGDLoadTlut ( void param_0,
u32  param_1,
GXTlutSize  param_2 
)

◆ J3DGDSetFog()

void J3DGDSetFog ( GXFogType  fogType,
f32  param_1,
f32  param_2,
f32  nearZ,
f32  farZ,
GXColor  color 
)

◆ J3DGDSetFogRangeAdj()

void J3DGDSetFogRangeAdj ( u8  param_0,
u16  param_1,
GXFogAdjTable table 
)

◆ J3DGDSetGenMode()

void J3DGDSetGenMode ( u8  texGenNum,
u8  colorChanNum,
u8  tevStageNum,
u8  indTexStageNum,
GXCullMode  cullMode 
)

◆ J3DGDSetGenMode_3Param()

void J3DGDSetGenMode_3Param ( u8  texGenNum,
u8  tevStageNum,
u8  indTexStageNum 
)

◆ J3DGDSetIndTexCoordScale()

void J3DGDSetIndTexCoordScale ( GXIndTexStageID  stage,
GXIndTexScale  scale0,
GXIndTexScale  scale1,
GXIndTexScale  scale2,
GXIndTexScale  scale3 
)

◆ J3DGDSetIndTexMtx()

void J3DGDSetIndTexMtx ( GXIndTexMtxID  id,
Mtx3P  mtx,
s8  exp 
)

◆ J3DGDSetIndTexOrder()

void J3DGDSetIndTexOrder ( u32  count,
GXTexCoordID  coord0,
GXTexMapID  map0,
GXTexCoordID  coord1,
GXTexMapID  map1,
GXTexCoordID  coord2,
GXTexMapID  map2,
GXTexCoordID  coord3,
GXTexMapID  map3 
)

◆ J3DGDSetLightAttn()

void J3DGDSetLightAttn ( GXLightID  id,
f32  a0,
f32  a1,
f32  a2,
f32  k0,
f32  k1,
f32  k2 
)

◆ J3DGDSetLightColor()

void J3DGDSetLightColor ( GXLightID  id,
GXColor  color 
)

◆ J3DGDSetLightDir()

void J3DGDSetLightDir ( GXLightID  id,
f32  x,
f32  y,
f32  z 
)

◆ J3DGDSetLightPos()

void J3DGDSetLightPos ( GXLightID  id,
f32  x,
f32  y,
f32  z 
)

◆ J3DGDSetTevColorS10()

void J3DGDSetTevColorS10 ( GXTevRegID  id,
GXColorS10  color 
)

◆ J3DGDSetTevKColor()

void J3DGDSetTevKColor ( GXTevKColorID  id,
GXColor  color 
)

◆ J3DGDSetTevOrder()

void J3DGDSetTevOrder ( GXTevStageID  stage,
GXTexCoordID  coord0,
GXTexMapID  map0,
GXChannelID  channel0,
GXTexCoordID  coord1,
GXTexMapID  map1,
GXChannelID  channel1 
)

◆ J3DGDSetTexCoordGen()

void J3DGDSetTexCoordGen ( GXTexGenType  texGenType,
GXTexGenSrc  texGenSrc 
)

◆ J3DGDSetTexCoordScale2()

void J3DGDSetTexCoordScale2 ( GXTexCoordID  param_0,
u16  param_1,
u8  param_2,
u8  param_3,
u16  param_4,
u8  param_5,
u8  param_6 
)

◆ J3DGDSetTexImgAttr()

void J3DGDSetTexImgAttr ( GXTexMapID  param_0,
u16  param_1,
u16  param_2,
GXTexFmt  param_3 
)

◆ J3DGDSetTexImgPtr()

void J3DGDSetTexImgPtr ( GXTexMapID  param_0,
void param_1 
)

◆ J3DGDSetTexImgPtrRaw()

void J3DGDSetTexImgPtrRaw ( GXTexMapID  param_0,
u32  param_1 
)

◆ J3DGDSetTexLookupMode()

void J3DGDSetTexLookupMode ( GXTexMapID  param_0,
GXTexWrapMode  param_1,
GXTexWrapMode  param_2,
GXTexFilter  param_3,
GXTexFilter  param_4,
f32  param_5,
f32  param_6,
f32  param_7,
u8  param_8,
u8  param_9,
GXAnisotropy  param_10 
)

◆ J3DGDSetTexTlut()

void J3DGDSetTexTlut ( GXTexMapID  param_0,
u32  param_1,
GXTlutFmt  param_2 
)

◆ J3DGDSetVtxAttrFmtv()

void J3DGDSetVtxAttrFmtv ( GXVtxFmt  fmt,
GXVtxAttrFmtList const fmtList,
bool  param_2 
)

Variable Documentation

◆ GX2HWFiltConv

u8 GX2HWFiltConv[6]
static
Initial value:
= {
0x00, 0x04, 0x01, 0x05, 0x02, 0x06,
}

◆ J3DGDTexImage0Ids

u8 J3DGDTexImage0Ids[8]
static
Initial value:
= {
0x88, 0x89, 0x8A, 0x8B, 0xA8, 0xA9, 0xAA, 0xAB,
}

◆ J3DGDTexImage3Ids

u8 J3DGDTexImage3Ids[8]
static
Initial value:
= {
0x94, 0x95, 0x96, 0x97, 0xB4, 0xB5, 0xB6, 0xB7,
}

◆ J3DGDTexMode0Ids

u8 J3DGDTexMode0Ids[8]
static
Initial value:
= {
0x80, 0x81, 0x82, 0x83, 0xA0, 0xA1, 0xA2, 0xA3,
}

◆ J3DGDTexMode1Ids

u8 J3DGDTexMode1Ids[8]
static
Initial value:
= {
0x84, 0x85, 0x86, 0x87, 0xA4, 0xA5, 0xA6, 0xA7,
}

◆ J3DGDTexTlutIds

u8 J3DGDTexTlutIds[8]
static
Initial value:
= {
0x98, 0x99, 0x9A, 0x9B, 0xB8, 0xB9, 0xBA, 0xBB,
}

◆ J3DTexImage1Ids

u8 J3DTexImage1Ids[8]
static
Initial value:
= {
0x8C, 0x8D, 0x8E, 0x8F, 0xAC, 0xAD, 0xAE, 0xAF,
}

◆ J3DTexImage2Ids

u8 J3DTexImage2Ids[8]
static
Initial value:
= {
0x90, 0x91, 0x92, 0x93, 0xB0, 0xB1, 0xB2, 0xB3,
}