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

Functions

void J3DGDSetGenMode (u8 nTexGens, u8 nChans, u8 nTevs, u8 nInds, GXCullMode cm)
 
void J3DGDSetGenMode_3Param (u8 nTexGens, u8 nTevs, u8 nInds)
 
void J3DGDSetLightAttn (GXLightID light, f32 a0, f32 a1, f32 a2, f32 k0, f32 k1, f32 k2)
 
void J3DGDSetLightColor (GXLightID light, GXColor color)
 
void J3DGDSetLightPos (GXLightID light, f32 x, f32 y, f32 z)
 
void J3DGDSetLightDir (GXLightID light, f32 nx, f32 ny, f32 nz)
 
void J3DGDSetVtxAttrFmtv (GXVtxFmt vtxfmt, const GXVtxAttrFmtList *list, bool param_2)
 
void J3DGDSetTexCoordGen (GXTexGenType func, GXTexGenSrc src_param)
 
void J3DGDSetTexCoordScale2 (GXTexCoordID coord, u16 s_scale, u8 s_bias, u8 s_wrap, u16 t_scale, u8 t_bias, u8 t_wrap)
 
void J3DGDSetTexLookupMode (GXTexMapID id, GXTexWrapMode wrap_s, GXTexWrapMode wrap_t, GXTexFilter min_filt, GXTexFilter mag_filt, f32 min_lod, f32 max_lod, f32 lod_bias, u8 bias_clamp, u8 do_edge_lod, GXAnisotropy max_aniso)
 
void J3DGDSetTexImgAttr (GXTexMapID id, u16 width, u16 height, GXTexFmt format)
 
void J3DGDSetTexImgPtr (GXTexMapID id, void *image_ptr)
 
void J3DGDSetTexImgPtrRaw (GXTexMapID id, u32 image_ptr_raw)
 
void J3DGDSetTexTlut (GXTexMapID id, u32 tmem_addr, GXTlutFmt format)
 
void J3DGDLoadTlut (void *tlut_ptr, u32 tmem_addr, GXTlutSize size)
 
void J3DGDSetIndTexMtx (GXIndTexMtxID mtx_id, f32 offset[2][3], s8 scale_exp)
 
void J3DGDSetIndTexCoordScale (GXIndTexStageID indStageEven, GXIndTexScale scaleS0, GXIndTexScale scaleT0, GXIndTexScale scaleS1, GXIndTexScale scaleT1)
 
void J3DGDSetIndTexOrder (u32 count, GXTexCoordID texCoord0, GXTexMapID texMap0, GXTexCoordID texCoord1, GXTexMapID texMap1, GXTexCoordID texCoord2, GXTexMapID texMap2, GXTexCoordID texCoord3, GXTexMapID texMap3)
 
void J3DGDSetTevOrder (GXTevStageID evenStage, GXTexCoordID coord0, GXTexMapID map0, GXChannelID color0, GXTexCoordID coord1, GXTexMapID map1, GXChannelID color1)
 
void J3DGDSetTevKColor (GXTevKColorID reg, GXColor color)
 
void J3DGDSetTevColorS10 (GXTevRegID reg, GXColorS10 color)
 
void J3DGDSetFog (GXFogType type, f32 startz, f32 endz, f32 nearz, f32 farz, GXColor color)
 
void J3DGDSetFogRangeAdj (GXBool enable, u16 center, GXFogAdjTable *table)
 
void J3DFifoLoadPosMtxImm (MtxP mtx, u32 id)
 
void J3DFifoLoadNrmMtxImm (MtxP mtx, u32 id)
 
void J3DFifoLoadNrmMtxImm3x3 (Mtx3P mtx, u32 id)
 
void J3DFifoLoadNrmMtxToTexMtx (MtxP mtx, u32 id)
 
void J3DFifoLoadNrmMtxToTexMtx3x3 (Mtx3P mtx, u32 id)
 
void J3DFifoLoadTexCached (GXTexMapID id, u32 tmem_even, GXTexCacheSize size_even, u32 tmem_odd, GXTexCacheSize size_odd)
 

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 id )

◆ J3DFifoLoadNrmMtxImm3x3()

void J3DFifoLoadNrmMtxImm3x3 ( Mtx3P mtx,
u32 id )

◆ J3DFifoLoadNrmMtxToTexMtx()

void J3DFifoLoadNrmMtxToTexMtx ( MtxP mtx,
u32 id )

◆ J3DFifoLoadNrmMtxToTexMtx3x3()

void J3DFifoLoadNrmMtxToTexMtx3x3 ( Mtx3P mtx,
u32 id )

◆ J3DFifoLoadPosMtxImm()

void J3DFifoLoadPosMtxImm ( MtxP mtx,
u32 id )

◆ J3DFifoLoadTexCached()

void J3DFifoLoadTexCached ( GXTexMapID id,
u32 tmem_even,
GXTexCacheSize size_even,
u32 tmem_odd,
GXTexCacheSize size_odd )

◆ J3DGDLoadTlut()

void J3DGDLoadTlut ( void * tlut_ptr,
u32 tmem_addr,
GXTlutSize size )

◆ J3DGDSetFog()

void J3DGDSetFog ( GXFogType type,
f32 startz,
f32 endz,
f32 nearz,
f32 farz,
GXColor color )

◆ J3DGDSetFogRangeAdj()

void J3DGDSetFogRangeAdj ( GXBool enable,
u16 center,
GXFogAdjTable * table )

◆ J3DGDSetGenMode()

void J3DGDSetGenMode ( u8 nTexGens,
u8 nChans,
u8 nTevs,
u8 nInds,
GXCullMode cm )

◆ J3DGDSetGenMode_3Param()

void J3DGDSetGenMode_3Param ( u8 nTexGens,
u8 nTevs,
u8 nInds )

◆ J3DGDSetIndTexCoordScale()

void J3DGDSetIndTexCoordScale ( GXIndTexStageID indStageEven,
GXIndTexScale scaleS0,
GXIndTexScale scaleT0,
GXIndTexScale scaleS1,
GXIndTexScale scaleT1 )

◆ J3DGDSetIndTexMtx()

void J3DGDSetIndTexMtx ( GXIndTexMtxID mtx_id,
f32 offset[2][3],
s8 scale_exp )

◆ J3DGDSetIndTexOrder()

void J3DGDSetIndTexOrder ( u32 count,
GXTexCoordID texCoord0,
GXTexMapID texMap0,
GXTexCoordID texCoord1,
GXTexMapID texMap1,
GXTexCoordID texCoord2,
GXTexMapID texMap2,
GXTexCoordID texCoord3,
GXTexMapID texMap3 )

◆ J3DGDSetLightAttn()

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

◆ J3DGDSetLightColor()

void J3DGDSetLightColor ( GXLightID light,
GXColor color )

◆ J3DGDSetLightDir()

void J3DGDSetLightDir ( GXLightID light,
f32 nx,
f32 ny,
f32 nz )

◆ J3DGDSetLightPos()

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

◆ J3DGDSetTevColorS10()

void J3DGDSetTevColorS10 ( GXTevRegID reg,
GXColorS10 color )

◆ J3DGDSetTevKColor()

void J3DGDSetTevKColor ( GXTevKColorID reg,
GXColor color )

◆ J3DGDSetTevOrder()

void J3DGDSetTevOrder ( GXTevStageID evenStage,
GXTexCoordID coord0,
GXTexMapID map0,
GXChannelID color0,
GXTexCoordID coord1,
GXTexMapID map1,
GXChannelID color1 )

◆ J3DGDSetTexCoordGen()

void J3DGDSetTexCoordGen ( GXTexGenType func,
GXTexGenSrc src_param )

◆ J3DGDSetTexCoordScale2()

void J3DGDSetTexCoordScale2 ( GXTexCoordID coord,
u16 s_scale,
u8 s_bias,
u8 s_wrap,
u16 t_scale,
u8 t_bias,
u8 t_wrap )

◆ J3DGDSetTexImgAttr()

void J3DGDSetTexImgAttr ( GXTexMapID id,
u16 width,
u16 height,
GXTexFmt format )

◆ J3DGDSetTexImgPtr()

void J3DGDSetTexImgPtr ( GXTexMapID id,
void * image_ptr )

◆ J3DGDSetTexImgPtrRaw()

void J3DGDSetTexImgPtrRaw ( GXTexMapID id,
u32 image_ptr_raw )

◆ J3DGDSetTexLookupMode()

void J3DGDSetTexLookupMode ( GXTexMapID id,
GXTexWrapMode wrap_s,
GXTexWrapMode wrap_t,
GXTexFilter min_filt,
GXTexFilter mag_filt,
f32 min_lod,
f32 max_lod,
f32 lod_bias,
u8 bias_clamp,
u8 do_edge_lod,
GXAnisotropy max_aniso )

◆ J3DGDSetTexTlut()

void J3DGDSetTexTlut ( GXTexMapID id,
u32 tmem_addr,
GXTlutFmt format )

◆ J3DGDSetVtxAttrFmtv()

void J3DGDSetVtxAttrFmtv ( GXVtxFmt vtxfmt,
const GXVtxAttrFmtList * list,
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,
}