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

Functions

static void J3DGDLoadTexMtxImm (f32(*)[4], u32, _GXTexMtxType)
 
static void J3DGDLoadPostTexMtxImm (f32(*)[4], u32)
 
void loadTexCoordGens (u32 param_0, J3DTexCoord *param_1)
 
bool isTexNoReg (void *param_0)
 
u16 getTexNoReg (void *param_0)
 
void loadTexNo (u32 param_0, u16 const &param_1)
 
void patchTexNo_PtrToIdx (u32 texID, u16 const &idx)
 
void loadNBTScale (J3DNBTScale &param_0)
 
void makeTexCoordTable ()
 
void makeAlphaCmpTable ()
 
void makeZModeTable ()
 
void makeTevSwapTable ()
 

Variables

const J3DLightInfo j3dDefaultLightInfo
 
J3DTexCoordInfo const j3dDefaultTexCoordInfo [8]
 
J3DTexMtxInfo const j3dDefaultTexMtxInfo
 
J3DIndTexMtxInfo const j3dDefaultIndTexMtxInfo
 
J3DTevStageInfo const j3dDefaultTevStageInfo
 
J3DIndTevStageInfo const j3dDefaultIndTevStageInfo
 
J3DFogInfo const j3dDefaultFogInfo
 
J3DNBTScaleInfo const j3dDefaultNBTScaleInfo
 
static u8 j3dTexCoordTable [7623+1]
 
u8 j3dTevSwapTableTable [1024]
 
u8 j3dAlphaCmpTable [768]
 
u8 j3dZModeTable [96]
 
const GXColor j3dDefaultColInfo = {0xFF, 0xFF, 0xFF, 0xFF}
 
const GXColor j3dDefaultAmbInfo = {0x32, 0x32, 0x32, 0x32}
 
const u8 data_804563C8 = 0x01
 
const J3DTevOrderInfo j3dDefaultTevOrderInfoNull = {0xFF, 0xFF, 0xFF, 0x00}
 
const J3DIndTexOrderInfo j3dDefaultIndTexOrderNull = {0xFF, 0xFF, 0x00, 0x00}
 
const GXColorS10 j3dDefaultTevColor = {0xFF, 0xFF, 0xFF, 0xFF}
 
const J3DIndTexCoordScaleInfo j3dDefaultIndTexCoordScaleInfo
 
const GXColor j3dDefaultTevKColor = {0xFF, 0xFF, 0xFF, 0xFF}
 
J3DTevSwapModeInfo const j3dDefaultTevSwapMode
 
const J3DTevSwapModeTableInfo j3dDefaultTevSwapModeTable = {0x00, 0x01, 0x02, 0x03}
 
const J3DBlendInfo j3dDefaultBlendInfo = {GX_BM_BLEND, GX_BL_SRC_ALPHA, GX_BL_INV_SRC_ALPHA, GX_LO_NOOP}
 
const J3DColorChanInfo j3dDefaultColorChanInfo
 
const u8 data_804563F8 = 0x1B
 
const u16 j3dDefaultAlphaCmpID = 0x00E7
 
const u16 j3dDefaultZModeID = 0x0017
 

Function Documentation

◆ getTexNoReg()

u16 getTexNoReg ( void param_0)

◆ isTexNoReg()

bool isTexNoReg ( void param_0)

◆ J3DGDLoadPostTexMtxImm()

static void J3DGDLoadPostTexMtxImm ( f32(*)  param_1[4],
u32  param_2 
)
static

◆ J3DGDLoadTexMtxImm()

static void J3DGDLoadTexMtxImm ( f32(*)  param_1[4],
u32  param_2,
_GXTexMtxType  param_3 
)
static

◆ loadNBTScale()

void loadNBTScale ( J3DNBTScale param_0)

◆ loadTexCoordGens()

void loadTexCoordGens ( u32  param_0,
J3DTexCoord param_1 
)

◆ loadTexNo()

void loadTexNo ( u32  param_0,
u16 const param_1 
)

◆ makeAlphaCmpTable()

void makeAlphaCmpTable ( )

◆ makeTevSwapTable()

void makeTevSwapTable ( )

◆ makeTexCoordTable()

void makeTexCoordTable ( )

◆ makeZModeTable()

void makeZModeTable ( )

◆ patchTexNo_PtrToIdx()

void patchTexNo_PtrToIdx ( u32  texID,
u16 const idx 
)

Variable Documentation

◆ data_804563C8

const u8 data_804563C8 = 0x01
extern

◆ data_804563F8

const u8 data_804563F8 = 0x1B
extern

◆ j3dAlphaCmpTable

u8 j3dAlphaCmpTable[768]

◆ j3dDefaultAlphaCmpID

const u16 j3dDefaultAlphaCmpID = 0x00E7

◆ j3dDefaultAmbInfo

const GXColor j3dDefaultAmbInfo = {0x32, 0x32, 0x32, 0x32}
extern

◆ j3dDefaultBlendInfo

◆ j3dDefaultColInfo

const GXColor j3dDefaultColInfo = {0xFF, 0xFF, 0xFF, 0xFF}
extern

◆ j3dDefaultColorChanInfo

const J3DColorChanInfo j3dDefaultColorChanInfo
extern
Initial value:
= {
0x00, 0x00, 0x00, 0x02, 0x02, 0x00, 0xFF, 0xFF,
}

◆ j3dDefaultFogInfo

J3DFogInfo const j3dDefaultFogInfo
extern
Initial value:
= {
0x00, 0x00, 0x0140, 0.0f, 0.0f, 0.1f, 10000.0f, 0xFF, 0xFF, 0xFF, 0x00,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
}

◆ j3dDefaultIndTevStageInfo

J3DIndTevStageInfo const j3dDefaultIndTevStageInfo
extern
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

◆ j3dDefaultIndTexCoordScaleInfo

const J3DIndTexCoordScaleInfo j3dDefaultIndTexCoordScaleInfo
extern
Initial value:
= {
0x00,
0x00,
0x00,
0x00,
}

◆ j3dDefaultIndTexMtxInfo

J3DIndTexMtxInfo const j3dDefaultIndTexMtxInfo
extern
Initial value:
= {
0.5f, 0.0f, 0.0f,
0.0f, 0.5f, 0.0f,
1
}

◆ j3dDefaultIndTexOrderNull

const J3DIndTexOrderInfo j3dDefaultIndTexOrderNull = {0xFF, 0xFF, 0x00, 0x00}
extern

◆ j3dDefaultLightInfo

const J3DLightInfo j3dDefaultLightInfo
extern
Initial value:
= {
0.0f, 0.0f, 0.0f,
0.0f, -1.0f, 0.0f,
0xff, 0xff, 0xff, 0xff,
1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f,
}

◆ j3dDefaultNBTScaleInfo

J3DNBTScaleInfo const j3dDefaultNBTScaleInfo
extern
Initial value:
= {
0x00, 1.0f, 1.0f, 1.0f,
}

◆ j3dDefaultTevColor

const GXColorS10 j3dDefaultTevColor = {0xFF, 0xFF, 0xFF, 0xFF}
extern

◆ j3dDefaultTevKColor

const GXColor j3dDefaultTevKColor = {0xFF, 0xFF, 0xFF, 0xFF}
extern

◆ j3dDefaultTevOrderInfoNull

const J3DTevOrderInfo j3dDefaultTevOrderInfoNull = {0xFF, 0xFF, 0xFF, 0x00}
extern

◆ j3dDefaultTevStageInfo

J3DTevStageInfo const j3dDefaultTevStageInfo
extern
Initial value:
= {
0x04, 0x0A, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
0x05, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
}

◆ j3dDefaultTevSwapMode

J3DTevSwapModeInfo const j3dDefaultTevSwapMode
extern
Initial value:
= {
0x00,
0x00,
0x00,
0x00,
}

◆ j3dDefaultTevSwapModeTable

const J3DTevSwapModeTableInfo j3dDefaultTevSwapModeTable = {0x00, 0x01, 0x02, 0x03}
extern

◆ j3dDefaultTexCoordInfo

J3DTexCoordInfo const j3dDefaultTexCoordInfo[8]
extern
Initial value:
= {
}
@ GX_MTX2x4
Definition GXEnum.h:461
@ GX_TG_TEX1
Definition GXEnum.h:594
@ GX_TG_TEX5
Definition GXEnum.h:598
@ GX_TG_TEX2
Definition GXEnum.h:595
@ GX_TG_TEX3
Definition GXEnum.h:596
@ GX_TG_TEX6
Definition GXEnum.h:599
@ GX_TG_TEX7
Definition GXEnum.h:600
@ GX_TG_TEX4
Definition GXEnum.h:597
@ GX_TG_TEX0
Definition GXEnum.h:593
@ GX_IDENTITY
Definition GXEnum.h:738

◆ j3dDefaultTexMtxInfo

J3DTexMtxInfo const j3dDefaultTexMtxInfo
extern
Initial value:
= {
0x01,
0x00,
0xFF,
0xFF,
{0.0f, 0.0f, 0.0f},
{1.0f, 1.0f, 0, 0.0f, 0.0f},
{1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f,
1.0f},
}

◆ j3dDefaultZModeID

const u16 j3dDefaultZModeID = 0x0017

◆ j3dTevSwapTableTable

u8 j3dTevSwapTableTable[1024]

◆ j3dTexCoordTable

u8 j3dTexCoordTable[7623+1]
static

◆ j3dZModeTable

u8 j3dZModeTable[96]