Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
Materials.cs File Reference

Classes

class  ZMode
 GX_SetZMode - Sets the Z-buffer compare mode. The result of the Z compare is used to conditionally write color values to the Embedded Frame Buffer. More...
 
class  AlphaTest
 GX_SetAlphaCompare - Sets the parameters for the alpha compare function which uses the alpha output from the last active TEV stage. The alpha compare operation is: alpha_pass = (alpha_src(comp0)ref0) (op) (alpha_src(comp1)ref1) where alpha_src is the alpha from the last active TEV stage. More...
 
class  BlendMode
 GX_SetBlendMode - Determines how the source image is blended with the Embedded Frame Buffer. When Type is set to GXBlendMode.None the source data is written directly to the EFB. When set to GXBlendMode.Blend source and EFB pixels are blended using the following equation: dst_pix_clr = src_pix_clr * src_fact + dst_pix_clr * dst_fact. More...
 
class  ColorChannelControl
 The color channel can have 1-8 lights associated with it, set using ColorChannelControl.LitMask. The ColorChannelControl.DiffuseFunction and ColorChannelControl.AttenuationFunction parameters control the lighting equation for all lights associated with this channel. The ColorChannelControl.AmbientSrc and ColorChannelControl.MaterialSrc used to select whether the input source colors come from the register colors or vertex colors. More...
 
class  TexCoordGen
 Specifies how texture coordinates are generated. More...
 
class  TexMatrix
 
class  TevIn
 
class  TevOp
 
class  TevOrder
 GXSetTevOrder(GXTevStageID stage, GXTexCoordID coord, GXTexMapID map, GXChannelID color) Determines which texture and rasterize color inputs are available to each TEV stage. GXSetTevColorIn/GXSetTevAlphaIn control how the inputs plug into each TEV operation for each stage. More...
 
class  TevIndirect
 
class  NBTScale
 
class  TevSwapMode
 GXSetTevSwapMode(GXTevStageID stage, GXTevSwapSel ras_sel, GXTevSwapSel tex_sel) For each TEV Stage you can select entry from the GXSetTevSwapModeTable for the rasterized input and the texture color input. The texture color inputs and the rasterized color inputs can be swapped, and a color channel can be selected. More...
 
class  TevSwapModeTable
 GXSetTevSwapModeTable(GXTevSwapSel select, GXTevColorChan red, GXTevColorChan green, GXTevColorChan blue, GXColorChan alpha) The swap table allows the rasterized/color colors to be swapped component-wise. An entry into the swap table specifies how input components remap to output components. More...
 
class  IndTexOrder
 
class  IndTexCoordScale
 
class  TevStage
 
class  FogInfo
 
class  IndirectTexture
 
class  IndirectTextureMatrix
 
class  IndirectTextureScale
 Defines S (U) and T (V) scale values to transform source texture coordinates during an indirect texture lookup. More...
 
class  IndirectTevOrder
 Configures a TEV stage during an indirect texture lookup. More...
 

Enumerations

enum  GXCompareType {
  Never = 0 , Less = 1 , Equal = 2 , LEqual = 3 ,
  Greater = 4 , NEqual = 5 , GEqual = 6 , Always = 7
}
 
enum  GXAlphaOp { And = 0 , Or = 1 , XOR = 2 , XNOR = 3 }
 
enum  GXCullMode { None = 0 , Front = 1 , Back = 2 , All = 3 }
 
enum  GXBlendModeControl {
  Zero = 0 , One = 1 , SrcColor = 2 , InverseSrcColor = 3 ,
  SrcAlpha = 4 , InverseSrcAlpha = 5 , DstAlpha = 6 , InverseDstAlpha = 7
}
 
enum  GXBlendMode { None = 0 , Blend = 1 , Logic = 2 , Subtract = 3 }
 
enum  GXTevOp {
  Add = 0 , Sub = 1 , Comp_R8_GT = 8 , Comp_R8_EQ = 9 ,
  Comp_GR16_GT = 10 , Comp_GR16_EQ = 11 , Comp_BGR24_GT = 12 , Comp_BGR24_EQ = 13 ,
  Comp_RGB8_GT = 14 , Comp_RGB8_EQ = 15 , Comp_A8_EQ = Comp_RGB8_EQ , Comp_A8_GT = Comp_RGB8_GT
}
 
enum  GXTevBias { Zero = 0 , AddHalf = 1 , SubHalf = 2 }
 
enum  GXTevScale { Scale_1 = 0 , Scale_2 = 1 , Scale_4 = 2 , Divide_2 = 3 }
 
enum  GXCombineColorInput {
  ColorPrev = 0 , AlphaPrev = 1 , C0 = 2 , A0 = 3 ,
  C1 = 4 , A1 = 5 , C2 = 6 , A2 = 7 ,
  TexColor = 8 , TexAlpha = 9 , RasColor = 10 , RasAlpha = 11 ,
  One = 12 , Half = 13 , Konst = 14 , Zero = 15
}
 GXSetTevColorIn(GXTevStageID stage, GXTevColorArg a, GXTevColorArg b, GXTevColorArg c, GXTevColorArg d) Defines the color input source to a TEV Stage, allowing the TEV Stage to choose between constant (register) colors/alphas, rasterized color/alpha (per-vertex lighting result) and pre-defined constants. More...
 
enum  GXCombineAlphaInput {
  AlphaPrev = 0 , A0 = 1 , A1 = 2 , A2 = 3 ,
  TexAlpha = 4 , RasAlpha = 5 , Konst = 6 , Zero = 7
}
 GXSetTevAlphaIn(GXTevStageID stage, GXTevAlphaArg a, GXTevAlphaArg b, GXTevAlphaArg c, GXTevAlphaArg d) Defines the alpha input source for a TEV stage, allowing the TEV stage to choose different alpha sources. More...
 
enum  GXKonstColorSel {
  KCSel_1 = 0x00 , KCSel_7_8 = 0x01 , KCSel_3_4 = 0x02 , KCSel_5_8 = 0x03 ,
  KCSel_1_2 = 0x04 , KCSel_3_8 = 0x05 , KCSel_1_4 = 0x06 , KCSel_1_8 = 0x07 ,
  KCSel_K0 = 0x0C , KCSel_K1 = 0x0D , KCSel_K2 = 0x0E , KCSel_K3 = 0x0F ,
  KCSel_K0_R = 0x10 , KCSel_K1_R = 0x11 , KCSel_K2_R = 0x12 , KCSel_K3_R = 0x13 ,
  KCSel_K0_G = 0x14 , KCSel_K1_G = 0x15 , KCSel_K2_G = 0x16 , KCSel_K3_G = 0x17 ,
  KCSel_K0_B = 0x18 , KCSel_K1_B = 0x19 , KCSel_K2_B = 0x1A , KCSel_K3_B = 0x1B ,
  KCSel_K0_A = 0x1C , KCSel_K1_A = 0x1D , KCSel_K2_A = 0x1E , KCSel_K3_A = 0x1F
}
 
enum  GXKonstAlphaSel {
  KASel_1 = 0x00 , KASel_7_8 = 0x01 , KASel_3_4 = 0x02 , KASel_5_8 = 0x03 ,
  KASel_1_2 = 0x04 , KASel_3_8 = 0x05 , KASel_1_4 = 0x06 , KASel_1_8 = 0x07 ,
  KASel_K0_R = 0x10 , KASel_K1_R = 0x11 , KASel_K2_R = 0x12 , KASel_K3_R = 0x13 ,
  KASel_K0_G = 0x14 , KASel_K1_G = 0x15 , KASel_K2_G = 0x16 , KASel_K3_G = 0x17 ,
  KASel_K0_B = 0x18 , KASel_K1_B = 0x19 , KASel_K2_B = 0x1A , KASel_K3_B = 0x1B ,
  KASel_K0_A = 0x1C , KASel_K1_A = 0x1D , KASel_K2_A = 0x1E , KASel_K3_A = 0x1F
}
 
enum  GXTexGenSrc {
  Position = 0 , Normal = 1 , Binormal = 2 , Tangent = 3 ,
  Tex0 = 4 , Tex1 = 5 , Tex2 = 6 , Tex3 = 7 ,
  Tex4 = 8 , Tex5 = 9 , Tex6 = 10 , Tex7 = 11 ,
  TexCoord0 = 12 , TexCoord1 = 13 , TexCoord2 = 14 , TexCoord3 = 15 ,
  TexCoord4 = 16 , TexCoord5 = 17 , TexCoord6 = 18 , Color0 = 19 ,
  Color1 = 20
}
 
enum  GXTexGenType {
  Matrix3x4 = 0 , Matrix2x4 = 1 , Bump0 = 2 , Bump1 = 3 ,
  Bump2 = 4 , Bump3 = 5 , Bump4 = 6 , Bump5 = 7 ,
  Bump6 = 8 , Bump7 = 9 , SRTG = 10
}
 
enum  GXTexMatrix {
  TexMtx0 = 30 , TexMtx1 = 33 , TexMtx2 = 36 , TexMtx3 = 39 ,
  TexMtx4 = 42 , TexMtx5 = 45 , TexMtx6 = 48 , TexMtx7 = 51 ,
  TexMtx8 = 54 , TexMtx9 = 57 , Identity = 60
}
 
enum  GXPrimitiveType {
  Points = 0xB8 , Lines = 0xA8 , LineStrip = 0xB0 , Triangles = 0x90 ,
  TriangleStrip = 0x98 , TriangleFan = 0xA0 , Quads = 0x80
}
 
enum  GXLightMask {
  Light0 = 0x001 , Light1 = 0x002 , Light2 = 0x004 , Light3 = 0x008 ,
  Light4 = 0x010 , Light5 = 0x020 , Light6 = 0x040 , Light7 = 0x080 ,
  None = 0x000
}
 
enum  GXDiffuseFunction { None = 0 , Signed = 1 , Clamp = 2 }
 
enum  GXAttenuationFunction { None = 2 , Spec = 0 , Spot = 1 }
 
enum  GXColorSrc { Register = 0 , Vertex = 1 }
 
enum  GXLogicOp {
  Clear = 0 , And = 1 , Copy = 3 , Equiv = 9 ,
  Inv = 10 , InvAnd = 4 , InvCopy = 12 , InvOr = 13 ,
  NAnd = 14 , NoOp = 5 , NOr = 8 , Or = 7 ,
  RevAnd = 2 , RevOr = 11 , Set = 15 , XOr = 6
}
 
enum  GXTexCoordSlot {
  TexCoord0 = 0 , TexCoord1 = 1 , TexCoord2 = 2 , TexCoord3 = 3 ,
  TexCoord4 = 4 , TexCoord5 = 5 , TexCoord6 = 6 , TexCoord7 = 7 ,
  Null = 0xFF
}
 
enum  GXColorChannelId {
  Color0 = 0 , Color1 = 1 , Alpha0 = 2 , Alpha1 = 3 ,
  Color0A0 = 4 , Color1A1 = 5 , ColorZero = 6 , AlphaBump = 7 ,
  AlphaBumpN = 8 , ColorNull = 0xFF
}
 
enum  GXRegister { Prev = 0 , Reg0 = 1 , Reg1 = 2 , Reg2 = 3 }
 
enum  TexMatrixProjection { TexProj_ST = 0 , TexProj_STQ = 1 }
 

Enumeration Type Documentation

◆ GXAlphaOp

enum GXAlphaOp
Enumerator
And 
Or 
XOR 
XNOR 

◆ GXAttenuationFunction

Enumerator
None 
Spec 
Spot 

◆ GXBlendMode

Enumerator
None 
Blend 
Logic 
Subtract 

◆ GXBlendModeControl

Enumerator
Zero 
One 
SrcColor 
InverseSrcColor 
SrcAlpha 
InverseSrcAlpha 
DstAlpha 
InverseDstAlpha 

◆ GXColorChannelId

Enumerator
Color0 
Color1 
Alpha0 
Alpha1 
Color0A0 
Color1A1 
ColorZero 
AlphaBump 
AlphaBumpN 
ColorNull 

◆ GXColorSrc

enum GXColorSrc
Enumerator
Register 
Vertex 

◆ GXCombineAlphaInput

GXSetTevAlphaIn(GXTevStageID stage, GXTevAlphaArg a, GXTevAlphaArg b, GXTevAlphaArg c, GXTevAlphaArg d) Defines the alpha input source for a TEV stage, allowing the TEV stage to choose different alpha sources.

Enumerator
AlphaPrev 
A0 
A1 
A2 
TexAlpha 
RasAlpha 
Konst 
Zero 

◆ GXCombineColorInput

GXSetTevColorIn(GXTevStageID stage, GXTevColorArg a, GXTevColorArg b, GXTevColorArg c, GXTevColorArg d) Defines the color input source to a TEV Stage, allowing the TEV Stage to choose between constant (register) colors/alphas, rasterized color/alpha (per-vertex lighting result) and pre-defined constants.

Enumerator
ColorPrev 
AlphaPrev 
C0 
A0 
C1 
A1 
C2 
A2 
TexColor 
TexAlpha 
RasColor 
RasAlpha 
One 
Half 
Konst 
Zero 

◆ GXCompareType

Enumerator
Never 
Less 
Equal 
LEqual 
Greater 
NEqual 
GEqual 
Always 

◆ GXCullMode

enum GXCullMode
Enumerator
None 
Front 
Back 
All 

◆ GXDiffuseFunction

Enumerator
None 
Signed 
Clamp 

◆ GXKonstAlphaSel

Enumerator
KASel_1 
KASel_7_8 
KASel_3_4 
KASel_5_8 
KASel_1_2 
KASel_3_8 
KASel_1_4 
KASel_1_8 
KASel_K0_R 
KASel_K1_R 
KASel_K2_R 
KASel_K3_R 
KASel_K0_G 
KASel_K1_G 
KASel_K2_G 
KASel_K3_G 
KASel_K0_B 
KASel_K1_B 
KASel_K2_B 
KASel_K3_B 
KASel_K0_A 
KASel_K1_A 
KASel_K2_A 
KASel_K3_A 

◆ GXKonstColorSel

Enumerator
KCSel_1 
KCSel_7_8 
KCSel_3_4 
KCSel_5_8 
KCSel_1_2 
KCSel_3_8 
KCSel_1_4 
KCSel_1_8 
KCSel_K0 
KCSel_K1 
KCSel_K2 
KCSel_K3 
KCSel_K0_R 
KCSel_K1_R 
KCSel_K2_R 
KCSel_K3_R 
KCSel_K0_G 
KCSel_K1_G 
KCSel_K2_G 
KCSel_K3_G 
KCSel_K0_B 
KCSel_K1_B 
KCSel_K2_B 
KCSel_K3_B 
KCSel_K0_A 
KCSel_K1_A 
KCSel_K2_A 
KCSel_K3_A 

◆ GXLightMask

Enumerator
Light0 
Light1 
Light2 
Light3 
Light4 
Light5 
Light6 
Light7 
None 

◆ GXLogicOp

enum GXLogicOp
Enumerator
Clear 
And 
Copy 
Equiv 
Inv 
InvAnd 
InvCopy 
InvOr 
NAnd 
NoOp 
NOr 
Or 
RevAnd 
RevOr 
Set 
XOr 

◆ GXPrimitiveType

Enumerator
Points 
Lines 
LineStrip 
Triangles 
TriangleStrip 
TriangleFan 
Quads 

◆ GXRegister

enum GXRegister
Enumerator
Prev 
Reg0 
Reg1 
Reg2 

◆ GXTevBias

enum GXTevBias
Enumerator
Zero 
AddHalf 
SubHalf 

◆ GXTevOp

enum GXTevOp
Enumerator
Add 
Sub 
Comp_R8_GT 
Comp_R8_EQ 
Comp_GR16_GT 
Comp_GR16_EQ 
Comp_BGR24_GT 
Comp_BGR24_EQ 
Comp_RGB8_GT 
Comp_RGB8_EQ 
Comp_A8_EQ 
Comp_A8_GT 

◆ GXTevScale

enum GXTevScale
Enumerator
Scale_1 
Scale_2 
Scale_4 
Divide_2 

◆ GXTexCoordSlot

Enumerator
TexCoord0 
TexCoord1 
TexCoord2 
TexCoord3 
TexCoord4 
TexCoord5 
TexCoord6 
TexCoord7 
Null 

◆ GXTexGenSrc

Enumerator
Position 
Normal 
Binormal 
Tangent 
Tex0 
Tex1 
Tex2 
Tex3 
Tex4 
Tex5 
Tex6 
Tex7 
TexCoord0 
TexCoord1 
TexCoord2 
TexCoord3 
TexCoord4 
TexCoord5 
TexCoord6 
Color0 
Color1 

◆ GXTexGenType

Enumerator
Matrix3x4 
Matrix2x4 
Bump0 
Bump1 
Bump2 
Bump3 
Bump4 
Bump5 
Bump6 
Bump7 
SRTG 

◆ GXTexMatrix

Enumerator
TexMtx0 
TexMtx1 
TexMtx2 
TexMtx3 
TexMtx4 
TexMtx5 
TexMtx6 
TexMtx7 
TexMtx8 
TexMtx9 
Identity 

◆ TexMatrixProjection

Enumerator
TexProj_ST 
TexProj_STQ