Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J3DMaterialFactory Class Reference

#include <J3DMaterialFactory.h>

+ Collaboration diagram for J3DMaterialFactory:

Public Types

enum  MaterialType { MATERIAL_TYPE_NORMAL = 0 , MATERIAL_TYPE_LOCKED = 1 , MATERIAL_TYPE_PATCHED = 2 }
 

Public Member Functions

 J3DMaterialFactory (J3DMaterialDLBlock const &)
 
 J3DMaterialFactory (J3DMaterialBlock const &)
 
u16 countUniqueMaterials ()
 
u32 countTexGens (int) const
 
u32 countStages (int) const
 
J3DMaterialcreate (J3DMaterial *, MaterialType, int, u32) const
 
J3DMaterialcreateNormalMaterial (J3DMaterial *, int, u32) const
 
J3DMaterialcreatePatchedMaterial (J3DMaterial *, int, u32) const
 
void modifyPatchedCurrentMtx (J3DMaterial *, int) const
 
J3DMaterialcreateLockedMaterial (J3DMaterial *, int, u32) const
 
u32 calcSize (J3DMaterial *, MaterialType, int, u32) const
 
u32 calcSizeNormalMaterial (J3DMaterial *, int, u32) const
 
u32 calcSizePatchedMaterial (J3DMaterial *, int, u32) const
 
u32 calcSizeLockedMaterial (J3DMaterial *, int, u32) const
 
J3DGXColor newMatColor (int, int) const
 
u8 newColorChanNum (int) const
 
J3DColorChan newColorChan (int, int) const
 
J3DGXColor newAmbColor (int, int) const
 
u32 newTexGenNum (int) const
 
J3DTexCoord newTexCoord (int, int) const
 
J3DTexMtxnewTexMtx (int, int) const
 
u8 newCullMode (int) const
 
u16 newTexNo (int, int) const
 
J3DTevOrder newTevOrder (int, int) const
 
J3DGXColorS10 newTevColor (int, int) const
 
J3DGXColor newTevKColor (int, int) const
 
u8 newTevStageNum (int) const
 
J3DTevStage newTevStage (int, int) const
 
J3DTevSwapModeTable newTevSwapModeTable (int, int) const
 
u8 newIndTexStageNum (int) const
 
J3DIndTexOrder newIndTexOrder (int, int) const
 
J3DIndTexMtx newIndTexMtx (int, int) const
 
J3DIndTevStage newIndTevStage (int, int) const
 
J3DIndTexCoordScale newIndTexCoordScale (int, int) const
 
J3DFog newFog (int) const
 
J3DAlphaComp newAlphaComp (int) const
 
J3DBlend newBlend (int) const
 
J3DZMode newZMode (int) const
 
u8 newZCompLoc (int) const
 
u8 newDither (int) const
 
J3DNBTScale newNBTScale (int) const
 
u16 getMaterialID (int idx) const
 
u8 getMaterialMode (int idx) const
 

Static Public Member Functions

static int getMdlDataFlag_TevStageNum (u32 flags)
 
static int getMdlDataFlag_TexGenFlag (u32 flags)
 
static u32 getMdlDataFlag_ColorFlag (u32 flags)
 
static u32 getMdlDataFlag_PEFlag (u32 flags)
 

Public Attributes

u16 mMaterialNum
 
J3DMaterialInitDatampMaterialInitData
 
u16mpMaterialID
 
J3DIndInitDatampIndInitData
 
GXColormpMatColor
 
u8mpColorChanNum
 
J3DColorChanInfompColorChanInfo
 
GXColormpAmbColor
 
J3DLightInfompLightInfo
 
u8mpTexGenNum
 
J3DTexCoordInfompTexCoordInfo
 
J3DTexCoord2InfompTexCoord2Info
 
J3DTexMtxInfompTexMtxInfo
 
J3DTexMtxInfofield_0x34
 
u16mpTexNo
 
GXCullModempCullMode
 
J3DTevOrderInfompTevOrderInfo
 
GXColorS10mpTevColor
 
GXColormpTevKColor
 
u8mpTevStageNum
 
J3DTevStageInfompTevStageInfo
 
J3DTevSwapModeInfompTevSwapModeInfo
 
J3DTevSwapModeTableInfompTevSwapModeTableInfo
 
J3DFogInfompFogInfo
 
J3DAlphaCompInfompAlphaCompInfo
 
J3DBlendInfompBlendInfo
 
J3DZModeInfompZModeInfo
 
u8mpZCompLoc
 
u8mpDither
 
J3DNBTScaleInfompNBTScaleInfo
 
J3DDisplayListInitmpDisplayListInit
 
J3DPatchingInfompPatchingInfo
 
J3DCurrentMtxInfompCurrentMtxInfo
 
u8mpMaterialMode
 

Member Enumeration Documentation

◆ MaterialType

Enumerator
MATERIAL_TYPE_NORMAL 
MATERIAL_TYPE_LOCKED 
MATERIAL_TYPE_PATCHED 

Constructor & Destructor Documentation

◆ J3DMaterialFactory() [1/2]

J3DMaterialFactory::J3DMaterialFactory ( J3DMaterialDLBlock const i_block)

◆ J3DMaterialFactory() [2/2]

J3DMaterialFactory::J3DMaterialFactory ( J3DMaterialBlock const i_block)

Member Function Documentation

◆ calcSize()

u32 J3DMaterialFactory::calcSize ( J3DMaterial i_material,
J3DMaterialFactory::MaterialType  i_type,
int  i_idx,
u32  i_flags 
) const

◆ calcSizeLockedMaterial()

u32 J3DMaterialFactory::calcSizeLockedMaterial ( J3DMaterial i_material,
int  i_idx,
u32  i_flags 
) const

◆ calcSizeNormalMaterial()

u32 J3DMaterialFactory::calcSizeNormalMaterial ( J3DMaterial i_material,
int  i_idx,
u32  i_flags 
) const

◆ calcSizePatchedMaterial()

u32 J3DMaterialFactory::calcSizePatchedMaterial ( J3DMaterial i_material,
int  i_idx,
u32  i_flags 
) const

◆ countStages()

u32 J3DMaterialFactory::countStages ( int  i_idx) const

◆ countTexGens()

u32 J3DMaterialFactory::countTexGens ( int  i_idx) const

◆ countUniqueMaterials()

u16 J3DMaterialFactory::countUniqueMaterials ( )

◆ create()

J3DMaterial * J3DMaterialFactory::create ( J3DMaterial i_material,
MaterialType  i_type,
int  i_idx,
u32  i_flags 
) const

◆ createLockedMaterial()

J3DMaterial * J3DMaterialFactory::createLockedMaterial ( J3DMaterial i_material,
int  i_idx,
u32  i_flags 
) const

◆ createNormalMaterial()

J3DMaterial * J3DMaterialFactory::createNormalMaterial ( J3DMaterial i_material,
int  i_idx,
u32  i_flags 
) const

◆ createPatchedMaterial()

J3DMaterial * J3DMaterialFactory::createPatchedMaterial ( J3DMaterial i_material,
int  i_idx,
u32  i_flags 
) const

◆ getMaterialID()

u16 J3DMaterialFactory::getMaterialID ( int  idx) const
inline

◆ getMaterialMode()

u8 J3DMaterialFactory::getMaterialMode ( int  idx) const
inline

◆ getMdlDataFlag_ColorFlag()

static u32 J3DMaterialFactory::getMdlDataFlag_ColorFlag ( u32  flags)
inlinestatic

◆ getMdlDataFlag_PEFlag()

static u32 J3DMaterialFactory::getMdlDataFlag_PEFlag ( u32  flags)
inlinestatic

◆ getMdlDataFlag_TevStageNum()

static int J3DMaterialFactory::getMdlDataFlag_TevStageNum ( u32  flags)
inlinestatic

◆ getMdlDataFlag_TexGenFlag()

static int J3DMaterialFactory::getMdlDataFlag_TexGenFlag ( u32  flags)
inlinestatic

◆ modifyPatchedCurrentMtx()

void J3DMaterialFactory::modifyPatchedCurrentMtx ( J3DMaterial i_material,
int  i_idx 
) const

◆ newAlphaComp()

J3DAlphaComp J3DMaterialFactory::newAlphaComp ( int  i_idx) const

◆ newAmbColor()

J3DGXColor J3DMaterialFactory::newAmbColor ( int  i_idx,
int  i_no 
) const

◆ newBlend()

J3DBlend J3DMaterialFactory::newBlend ( int  i_idx) const

◆ newColorChan()

J3DColorChan J3DMaterialFactory::newColorChan ( int  i_idx,
int  i_no 
) const

◆ newColorChanNum()

u8 J3DMaterialFactory::newColorChanNum ( int  i_idx) const

◆ newCullMode()

u8 J3DMaterialFactory::newCullMode ( int  i_idx) const

◆ newDither()

u8 J3DMaterialFactory::newDither ( int  i_idx) const

◆ newFog()

J3DFog J3DMaterialFactory::newFog ( int  i_idx) const

◆ newIndTevStage()

J3DIndTevStage J3DMaterialFactory::newIndTevStage ( int  i_idx,
int  i_no 
) const

◆ newIndTexCoordScale()

J3DIndTexCoordScale J3DMaterialFactory::newIndTexCoordScale ( int  i_idx,
int  i_no 
) const

◆ newIndTexMtx()

J3DIndTexMtx J3DMaterialFactory::newIndTexMtx ( int  i_idx,
int  i_no 
) const

◆ newIndTexOrder()

J3DIndTexOrder J3DMaterialFactory::newIndTexOrder ( int  i_idx,
int  i_no 
) const

◆ newIndTexStageNum()

u8 J3DMaterialFactory::newIndTexStageNum ( int  i_idx) const

◆ newMatColor()

J3DGXColor J3DMaterialFactory::newMatColor ( int  i_idx,
int  i_no 
) const

◆ newNBTScale()

J3DNBTScale J3DMaterialFactory::newNBTScale ( int  i_idx) const

◆ newTevColor()

J3DGXColorS10 J3DMaterialFactory::newTevColor ( int  i_idx,
int  i_no 
) const

◆ newTevKColor()

J3DGXColor J3DMaterialFactory::newTevKColor ( int  i_idx,
int  i_no 
) const

◆ newTevOrder()

J3DTevOrder J3DMaterialFactory::newTevOrder ( int  i_idx,
int  i_no 
) const

◆ newTevStage()

J3DTevStage J3DMaterialFactory::newTevStage ( int  i_idx,
int  i_no 
) const

◆ newTevStageNum()

u8 J3DMaterialFactory::newTevStageNum ( int  i_idx) const

◆ newTevSwapModeTable()

J3DTevSwapModeTable J3DMaterialFactory::newTevSwapModeTable ( int  i_idx,
int  i_no 
) const

◆ newTexCoord()

J3DTexCoord J3DMaterialFactory::newTexCoord ( int  i_idx,
int  i_no 
) const

◆ newTexGenNum()

u32 J3DMaterialFactory::newTexGenNum ( int  i_idx) const

◆ newTexMtx()

J3DTexMtx * J3DMaterialFactory::newTexMtx ( int  i_idx,
int  i_no 
) const

◆ newTexNo()

u16 J3DMaterialFactory::newTexNo ( int  i_idx,
int  i_no 
) const

◆ newZCompLoc()

u8 J3DMaterialFactory::newZCompLoc ( int  i_idx) const

◆ newZMode()

J3DZMode J3DMaterialFactory::newZMode ( int  i_idx) const

Member Data Documentation

◆ field_0x34

J3DTexMtxInfo* J3DMaterialFactory::field_0x34

◆ mMaterialNum

u16 J3DMaterialFactory::mMaterialNum

◆ mpAlphaCompInfo

J3DAlphaCompInfo* J3DMaterialFactory::mpAlphaCompInfo

◆ mpAmbColor

GXColor* J3DMaterialFactory::mpAmbColor

◆ mpBlendInfo

J3DBlendInfo* J3DMaterialFactory::mpBlendInfo

◆ mpColorChanInfo

J3DColorChanInfo* J3DMaterialFactory::mpColorChanInfo

◆ mpColorChanNum

u8* J3DMaterialFactory::mpColorChanNum

◆ mpCullMode

GXCullMode* J3DMaterialFactory::mpCullMode

◆ mpCurrentMtxInfo

J3DCurrentMtxInfo* J3DMaterialFactory::mpCurrentMtxInfo

◆ mpDisplayListInit

J3DDisplayListInit* J3DMaterialFactory::mpDisplayListInit

◆ mpDither

u8* J3DMaterialFactory::mpDither

◆ mpFogInfo

J3DFogInfo* J3DMaterialFactory::mpFogInfo

◆ mpIndInitData

J3DIndInitData* J3DMaterialFactory::mpIndInitData

◆ mpLightInfo

J3DLightInfo* J3DMaterialFactory::mpLightInfo

◆ mpMatColor

GXColor* J3DMaterialFactory::mpMatColor

◆ mpMaterialID

u16* J3DMaterialFactory::mpMaterialID

◆ mpMaterialInitData

J3DMaterialInitData* J3DMaterialFactory::mpMaterialInitData

◆ mpMaterialMode

u8* J3DMaterialFactory::mpMaterialMode

◆ mpNBTScaleInfo

J3DNBTScaleInfo* J3DMaterialFactory::mpNBTScaleInfo

◆ mpPatchingInfo

J3DPatchingInfo* J3DMaterialFactory::mpPatchingInfo

◆ mpTevColor

GXColorS10* J3DMaterialFactory::mpTevColor

◆ mpTevKColor

GXColor* J3DMaterialFactory::mpTevKColor

◆ mpTevOrderInfo

J3DTevOrderInfo* J3DMaterialFactory::mpTevOrderInfo

◆ mpTevStageInfo

J3DTevStageInfo* J3DMaterialFactory::mpTevStageInfo

◆ mpTevStageNum

u8* J3DMaterialFactory::mpTevStageNum

◆ mpTevSwapModeInfo

J3DTevSwapModeInfo* J3DMaterialFactory::mpTevSwapModeInfo

◆ mpTevSwapModeTableInfo

J3DTevSwapModeTableInfo* J3DMaterialFactory::mpTevSwapModeTableInfo

◆ mpTexCoord2Info

J3DTexCoord2Info* J3DMaterialFactory::mpTexCoord2Info

◆ mpTexCoordInfo

J3DTexCoordInfo* J3DMaterialFactory::mpTexCoordInfo

◆ mpTexGenNum

u8* J3DMaterialFactory::mpTexGenNum

◆ mpTexMtxInfo

J3DTexMtxInfo* J3DMaterialFactory::mpTexMtxInfo

◆ mpTexNo

u16* J3DMaterialFactory::mpTexNo

◆ mpZCompLoc

u8* J3DMaterialFactory::mpZCompLoc

◆ mpZModeInfo

J3DZModeInfo* J3DMaterialFactory::mpZModeInfo

The documentation for this class was generated from the following files: