BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Classes | Enumerations
BrawlLib.Wii.Graphics Namespace Reference

Classes

struct  AlphaEnv
 
struct  BlendMode
 
struct  BPCommand
 
struct  CMD
 
struct  ColorEnv
 
struct  ColorReg
 
struct  ConstantAlpha
 
struct  CPElementDef
 
struct  CPElementSpec
 
struct  CPVertexFormat
 
struct  FacepointAttribute
 
struct  GXAlphaFunction
 
struct  KSel
 
struct  RAS1_IRef
 
struct  RAS1_SS
 
struct  RAS1_TRef
 
class  ShaderGenerator
 
struct  VertexAttributeFormat
 
struct  XFArrayFlags
 
struct  XFCommand
 
class  XFData
 
struct  XFDualTex
 
struct  XFTexMtxInfo
 
struct  XFVertexSpecs
 
struct  ZMode
 

Enumerations

enum  RegType
 
enum  BPMemory : byte
 
enum  CPCommand : byte
 
enum  GXVtxFmt
 
enum  GXCompCnt
 
enum  GXCompType
 
enum  GXListCommand : byte
 
enum  GXCompare
 
enum  GXBlendMode
 
enum  GXLogicOp
 
enum  ColorChannel
 
enum  ColorArg
 
enum  AlphaArg
 
enum  Bias
 
enum  TevStageID
 
enum  TevColorRegID
 
enum  TevAlphaRegID
 
enum  TevColorOp
 
enum  TevAlphaOp
 
enum  BlendFactor
 
enum  AlphaCompare
 
enum  TevSwapSel
 
enum  TevScale
 
enum  ProjectionType
 
enum  TevMode
 
enum  AlphaOp
 
enum  TexMapID
 
enum  ColorSelChan
 
enum  ChannelID
 
enum  TexCoordID
 
enum  TevKAlphaSel
 
enum  TevKColorSel
 
enum  IndTexStageID
 
enum  IndTexAlphaSel
 
enum  IndTexFormat
 
enum  IndTexBiasSel
 
enum  IndTexMtxID
 
enum  IndTexWrap
 
enum  IndTexScale
 
enum  PosNrmMtx
 
enum  TexMtx
 
enum  PTTexMtx
 
enum  ClipMode
 
enum  TexMtxType
 
enum  TexProjection
 
enum  TexInputForm
 
enum  TexTexgenType
 
enum  TexSourceRow
 
enum  SpotFn
 
enum  DistAttnFn
 
enum  FogType
 
enum  XFMemoryAddr : ushort
 
enum  XFNormalFormat
 
enum  XFDataFormat : byte
 
enum  GXAttribute
 

Enumeration Type Documentation

◆ AlphaArg

103 {
104 OutputAlpha, //GX_CA_APREV,
105 Alpha0, //GX_CA_A0,
106 Alpha1, //GX_CA_A1,
107 Alpha2, //GX_CA_A2,
108 TextureAlpha, //GX_CA_TEXA,
109 RasterAlpha, //GX_CA_RASA,
110 ConstantAlphaSelection, //GX_CA_KONST,
111 Zero //GX_CA_ZERO //0
112 }

◆ AlphaCompare

235 {
236 Never, //COMPARE_NEVER = 0,
237 Less, //COMPARE_LESS,
238 Equal, //COMPARE_EQUAL,
239 LessOrEqual, //COMPARE_LEQUAL,
240 Greater, //COMPARE_GREATER,
241 NotEqual, //COMPARE_NEQUAL,
242 GreaterOrEqual, //COMPARE_GEQUAL,
243 Always //COMPARE_ALWAYS
244 }

◆ AlphaOp

278 {
279 And, //ALPHAOP_AND = 0,
280 Or, //ALPHAOP_OR,
281 ExclusiveOr, //ALPHAOP_XOR,
282 InverseExclusiveOr //ALPHAOP_XNOR
283 }

◆ Bias

115 {
116 Zero, //GX_TB_ZERO,
117 AddHalf, //GX_TB_ADDHALF,
118 SubHalf //GX_TB_SUBHALF
119 }

◆ BlendFactor

208 {
209 //GX_BL_ZERO,
210 //GX_BL_ONE,
211 //GX_BL_SRCCLR,
212 //GX_BL_INVSRCCLR,
213 //GX_BL_SRCALPHA,
214 //GX_BL_INVSRCALPHA,
215 //GX_BL_DSTALPHA,
216 //GX_BL_INVDSTALPHA,
217
218 //GX_BL_DSTCLR = GX_BL_SRCCLR,
219 //GX_BL_INVDSTCLR = GX_BL_INVSRCCLR
220
221 Zero,
222 One,
223 SourceColor,
224 InverseSourceColor,
225 SourceAlpha,
226 InverseSourceAlpha,
227 DestinationAlpha,
228 InverseDestinationAlpha
229
230 //DestinationColor = SourceColor,
231 //InverseDestinationColor = InverseSourceColor
232 }

◆ BPMemory

1002 {
1003 BPMEM_GENMODE = 0x00,
1004
1005 BPMEM_DISPLAYCOPYFILER0 = 0x01,
1006 BPMEM_DISPLAYCOPYFILER1 = 0x02,
1007 BPMEM_DISPLAYCOPYFILER2 = 0x03,
1008 BPMEM_DISPLAYCOPYFILER3 = 0x04,
1009 BPMEM_DISPLAYCOPYFILER4 = 0x05,
1010
1011 BPMEM_IND_MTXA0 = 0x06,
1012 BPMEM_IND_MTXB0 = 0x07,
1013 BPMEM_IND_MTXC0 = 0x08,
1014 BPMEM_IND_MTXA1 = 0x09,
1015 BPMEM_IND_MTXB1 = 0x0A,
1016 BPMEM_IND_MTXC1 = 0x0B,
1017 BPMEM_IND_MTXA2 = 0x0C,
1018 BPMEM_IND_MTXB2 = 0x0D,
1019 BPMEM_IND_MTXC2 = 0x0E,
1020 BPMEM_IND_IMASK = 0x0F,
1021
1022 BPMEM_IND_CMD0 = 0x10,
1023 BPMEM_IND_CMD1 = 0x11,
1024 BPMEM_IND_CMD2 = 0x12,
1025 BPMEM_IND_CMD3 = 0x13,
1026 BPMEM_IND_CMD4 = 0x14,
1027 BPMEM_IND_CMD5 = 0x15,
1028 BPMEM_IND_CMD6 = 0x16,
1029 BPMEM_IND_CMD7 = 0x17,
1030 BPMEM_IND_CMD8 = 0x18,
1031 BPMEM_IND_CMD9 = 0x19,
1032 BPMEM_IND_CMDA = 0x1A,
1033 BPMEM_IND_CMDB = 0x1B,
1034 BPMEM_IND_CMDC = 0x1C,
1035 BPMEM_IND_CMDD = 0x1D,
1036 BPMEM_IND_CMDE = 0x1E,
1037 BPMEM_IND_CMDF = 0x1F,
1038
1039 BPMEM_SCISSORTL = 0x20,
1040 BPMEM_SCISSORBR = 0x21,
1041 BPMEM_LINEPTWIDTH = 0x22,
1042 BPMEM_PERF0_TRI = 0x23,
1043 BPMEM_PERF0_QUAD = 0x24,
1044
1045 BPMEM_RAS1_SS0 = 0x25,
1046 BPMEM_RAS1_SS1 = 0x26,
1047 BPMEM_IREF = 0x27,
1048
1049 BPMEM_TREF0 = 0x28,
1050 BPMEM_TREF1 = 0x29,
1051 BPMEM_TREF2 = 0x2A,
1052 BPMEM_TREF3 = 0x2B,
1053 BPMEM_TREF4 = 0x2C,
1054 BPMEM_TREF5 = 0x2D,
1055 BPMEM_TREF6 = 0x2E,
1056 BPMEM_TREF7 = 0x2F,
1057
1058 BPMEM_SU_SSIZE0 = 0x30,
1059 BPMEM_SU_TSIZE0 = 0x31,
1060 BPMEM_SU_SSIZE1 = 0x32,
1061 BPMEM_SU_TSIZE1 = 0x33,
1062 BPMEM_SU_SSIZE2 = 0x34,
1063 BPMEM_SU_TSIZE2 = 0x35,
1064 BPMEM_SU_SSIZE3 = 0x36,
1065 BPMEM_SU_TSIZE3 = 0x37,
1066 BPMEM_SU_SSIZE4 = 0x38,
1067 BPMEM_SU_TSIZE4 = 0x39,
1068 BPMEM_SU_SSIZE5 = 0x3A,
1069 BPMEM_SU_TSIZE5 = 0x3B,
1070 BPMEM_SU_SSIZE6 = 0x3C,
1071 BPMEM_SU_TSIZE6 = 0x3D,
1072 BPMEM_SU_SSIZE7 = 0x3E,
1073 BPMEM_SU_TSIZE7 = 0x3F,
1074
1075 BPMEM_ZMODE = 0x40,
1076 BPMEM_BLENDMODE = 0x41,
1077 BPMEM_CONSTANTALPHA = 0x42,
1078 BPMEM_ZCOMPARE = 0x43,
1079 BPMEM_FIELDMASK = 0x44,
1080 BPMEM_SETDRAWDONE = 0x45,
1081 BPMEM_BUSCLOCK0 = 0x46,
1082 BPMEM_PE_TOKEN_ID = 0x47,
1083 BPMEM_PE_TOKEN_INT_ID = 0x48,
1084
1085 BPMEM_EFB_TL = 0x49,
1086 BPMEM_EFB_BR = 0x4A,
1087 BPMEM_EFB_ADDR = 0x4B,
1088
1089 BPMEM_MIPMAP_STRIDE = 0x4D,
1090 BPMEM_COPYYSCALE = 0x4E,
1091
1092 BPMEM_CLEAR_AR = 0x4F,
1093 BPMEM_CLEAR_GB = 0x50,
1094 BPMEM_CLEAR_Z = 0x51,
1095
1096 BPMEM_TRIGGER_EFB_COPY = 0x52,
1097 BPMEM_COPYFILTER0 = 0x53,
1098 BPMEM_COPYFILTER1 = 0x54,
1099 BPMEM_CLEARBBOX1 = 0x55,
1100 BPMEM_CLEARBBOX2 = 0x56,
1101
1102 BPMEM_UNKNOWN_57 = 0x57,
1103
1104 BPMEM_REVBITS = 0x58,
1105 BPMEM_SCISSOROFFSET = 0x59,
1106
1107 BPMEM_UNKNOWN_60 = 0x60,
1108 BPMEM_UNKNOWN_61 = 0x61,
1109 BPMEM_UNKNOWN_62 = 0x62,
1110
1111 BPMEM_TEXMODESYNC = 0x63,
1112 BPMEM_LOADTLUT0 = 0x64,
1113 BPMEM_LOADTLUT1 = 0x65,
1114 BPMEM_TEXINVALIDATE = 0x66,
1115 BPMEM_PERF1 = 0x67,
1116 BPMEM_FIELDMODE = 0x68,
1117 BPMEM_BUSCLOCK1 = 0x69,
1118
1119 BPMEM_TX_SETMODE0_A = 0x80,
1120 BPMEM_TX_SETMODE0_B = 0x81,
1121 BPMEM_TX_SETMODE0_C = 0x82,
1122 BPMEM_TX_SETMODE0_D = 0x83,
1123
1124 BPMEM_TX_SETMODE1_A = 0x84,
1125 BPMEM_TX_SETMODE1_B = 0x85,
1126 BPMEM_TX_SETMODE1_C = 0x86,
1127 BPMEM_TX_SETMODE1_D = 0x87,
1128
1129 BPMEM_TX_SETIMAGE0_A = 0x88,
1130 BPMEM_TX_SETIMAGE0_B = 0x89,
1131 BPMEM_TX_SETIMAGE0_C = 0x8A,
1132 BPMEM_TX_SETIMAGE0_D = 0x8B,
1133
1134 BPMEM_TX_SETIMAGE1_A = 0x8C,
1135 BPMEM_TX_SETIMAGE1_B = 0x8D,
1136 BPMEM_TX_SETIMAGE1_C = 0x8E,
1137 BPMEM_TX_SETIMAGE1_D = 0x8F,
1138
1139 BPMEM_TX_SETIMAGE2_A = 0x90,
1140 BPMEM_TX_SETIMAGE2_B = 0x91,
1141 BPMEM_TX_SETIMAGE2_C = 0x92,
1142 BPMEM_TX_SETIMAGE2_D = 0x93,
1143
1144 BPMEM_TX_SETIMAGE3_A = 0x94,
1145 BPMEM_TX_SETIMAGE3_B = 0x95,
1146 BPMEM_TX_SETIMAGE3_C = 0x96,
1147 BPMEM_TX_SETIMAGE3_D = 0x97,
1148
1149 BPMEM_TX_SETTLUT_A = 0x98,
1150 BPMEM_TX_SETTLUT_B = 0x99,
1151 BPMEM_TX_SETTLUT_C = 0x9A,
1152 BPMEM_TX_SETTLUT_D = 0x9B,
1153
1154 BPMEM_TX_SETMODE0_4_A = 0xA0,
1155 BPMEM_TX_SETMODE0_4_B = 0xA1,
1156 BPMEM_TX_SETMODE0_4_C = 0xA2,
1157 BPMEM_TX_SETMODE0_4_D = 0xA3,
1158
1159 BPMEM_TX_SETMODE1_4_A = 0xA4,
1160 BPMEM_TX_SETMODE1_4_B = 0xA5,
1161 BPMEM_TX_SETMODE1_4_C = 0xA6,
1162 BPMEM_TX_SETMODE1_4_D = 0xA7,
1163
1164 BPMEM_TX_SETIMAGE0_4_A = 0xA8,
1165 BPMEM_TX_SETIMAGE0_4_B = 0xA9,
1166 BPMEM_TX_SETIMAGE0_4_C = 0xAA,
1167 BPMEM_TX_SETIMAGE0_4_D = 0xAB,
1168
1169 BPMEM_TX_SETIMAGE1_4_A = 0xAC,
1170 BPMEM_TX_SETIMAGE1_4_B = 0xAD,
1171 BPMEM_TX_SETIMAGE1_4_C = 0xAE,
1172 BPMEM_TX_SETIMAGE1_4_D = 0xAF,
1173
1174 BPMEM_TX_SETIMAGE2_4_A = 0xB0,
1175 BPMEM_TX_SETIMAGE2_4_B = 0xB1,
1176 BPMEM_TX_SETIMAGE2_4_C = 0xB2,
1177 BPMEM_TX_SETIMAGE2_4_D = 0xB3,
1178
1179 BPMEM_TX_SETIMAGE3_4_A = 0xB4,
1180 BPMEM_TX_SETIMAGE3_4_B = 0xB5,
1181 BPMEM_TX_SETIMAGE3_4_C = 0xB6,
1182 BPMEM_TX_SETIMAGE3_4_D = 0xB7,
1183
1184 BPMEM_TX_SETLUT_4_A = 0xB8,
1185 BPMEM_TX_SETLUT_4_B = 0xB9,
1186 BPMEM_TX_SETLUT_4_C = 0xBA,
1187 BPMEM_TX_SETLUT_4_D = 0xBB,
1188
1189 BPMEM_UNKNOWN_BC = 0xBC,
1190 BPMEM_UNKNOWN_BB = 0xBB,
1191 BPMEM_UNKNOWN_BD = 0xBD,
1192 BPMEM_UNKNOWN_BE = 0xBE,
1193 BPMEM_UNKNOWN_BF = 0xBF,
1194
1195 BPMEM_TEV_COLOR_ENV_0 = 0xC0,
1196 BPMEM_TEV_ALPHA_ENV_0 = 0xC1,
1197 BPMEM_TEV_COLOR_ENV_1 = 0xC2,
1198 BPMEM_TEV_ALPHA_ENV_1 = 0xC3,
1199 BPMEM_TEV_COLOR_ENV_2 = 0xC4,
1200 BPMEM_TEV_ALPHA_ENV_2 = 0xC5,
1201 BPMEM_TEV_COLOR_ENV_3 = 0xC6,
1202 BPMEM_TEV_ALPHA_ENV_3 = 0xC7,
1203 BPMEM_TEV_COLOR_ENV_4 = 0xC8,
1204 BPMEM_TEV_ALPHA_ENV_4 = 0xC9,
1205 BPMEM_TEV_COLOR_ENV_5 = 0xCA,
1206 BPMEM_TEV_ALPHA_ENV_5 = 0xCB,
1207 BPMEM_TEV_COLOR_ENV_6 = 0xCC,
1208 BPMEM_TEV_ALPHA_ENV_6 = 0xCD,
1209 BPMEM_TEV_COLOR_ENV_7 = 0xCE,
1210 BPMEM_TEV_ALPHA_ENV_7 = 0xCF,
1211 BPMEM_TEV_COLOR_ENV_8 = 0xD0,
1212 BPMEM_TEV_ALPHA_ENV_8 = 0xD1,
1213 BPMEM_TEV_COLOR_ENV_9 = 0xD2,
1214 BPMEM_TEV_ALPHA_ENV_9 = 0xD3,
1215 BPMEM_TEV_COLOR_ENV_A = 0xD4,
1216 BPMEM_TEV_ALPHA_ENV_A = 0xD5,
1217 BPMEM_TEV_COLOR_ENV_B = 0xD6,
1218 BPMEM_TEV_ALPHA_ENV_B = 0xD7,
1219 BPMEM_TEV_COLOR_ENV_C = 0xD8,
1220 BPMEM_TEV_ALPHA_ENV_C = 0xD9,
1221 BPMEM_TEV_COLOR_ENV_D = 0xDA,
1222 BPMEM_TEV_ALPHA_ENV_D = 0xDB,
1223 BPMEM_TEV_COLOR_ENV_E = 0xDC,
1224 BPMEM_TEV_ALPHA_ENV_E = 0xDD,
1225 BPMEM_TEV_COLOR_ENV_F = 0xDE,
1226 BPMEM_TEV_ALPHA_ENV_F = 0xDF,
1227
1228 BPMEM_TEV_REGISTER_L_0 = 0xE0,
1229 BPMEM_TEV_REGISTER_H_0 = 0xE1,
1230 BPMEM_TEV_REGISTER_L_1 = 0xE2,
1231 BPMEM_TEV_REGISTER_H_1 = 0xE3,
1232 BPMEM_TEV_REGISTER_L_2 = 0xE4,
1233 BPMEM_TEV_REGISTER_H_2 = 0xE5,
1234 BPMEM_TEV_REGISTER_L_3 = 0xE6,
1235 BPMEM_TEV_REGISTER_H_3 = 0xE7,
1236
1237 BPMEM_TEV_FOG_RANGE = 0xE8,
1238 BPMEM_TEV_FOG_PARAM_0 = 0xEE,
1239 BPMEM_TEV_FOG_B_MAGNITUDE = 0xEF,
1240 BPMEM_TEV_FOG_B_EXPONENT = 0xF0,
1241 BPMEM_TEV_FOG_PARAM_3 = 0xF1,
1242 BPMEM_TEV_FOG_COLOR = 0xF2,
1243
1244 BPMEM_ALPHACOMPARE = 0xF3,
1245 BPMEM_BIAS = 0xF4,
1246 BPMEM_ZTEX2 = 0xF5,
1247
1248 BPMEM_TEV_KSEL0 = 0xF6,
1249 BPMEM_TEV_KSEL1 = 0xF7,
1250 BPMEM_TEV_KSEL2 = 0xF8,
1251 BPMEM_TEV_KSEL3 = 0xF9,
1252 BPMEM_TEV_KSEL4 = 0xFA,
1253 BPMEM_TEV_KSEL5 = 0xFB,
1254 BPMEM_TEV_KSEL6 = 0xFC,
1255 BPMEM_TEV_KSEL7 = 0xFD,
1256
1257 BPMEM_BP_MASK = 0xFE
1258 }

◆ ChannelID

313 {
314 GX_COLOR0,
315 GX_COLOR1,
316 GX_ALPHA0,
317 GX_ALPHA1,
318 GX_COLOR0A0, // Color 0 + Alpha 0
319 GX_COLOR1A1, // Color 1 + Alpha 1
320 GX_COLOR_ZERO, // RGBA = 0
321 GX_ALPHA_BUMP, // bump alpha 0 - 248, RGB = 0
322 GX_ALPHA_BUMPN, // normalized bump alpha, 0 - 255, RGB = 0
323 GX_COLOR_NULL = 0xff
324 }

◆ ClipMode

542 {
543 Clip_Enabled = 0,
544 Clip_Disabled = 1
545 }

◆ ColorArg

83 {
84 OutputColor, //GX_CC_CPREV,
85 OutputAlpha, //GX_CC_APREV,
86 Color0, //GX_CC_C0,
87 Alpha0, //GX_CC_A0,
88 Color1, //GX_CC_C1,
89 Alpha1, //GX_CC_A1,
90 Color2, //GX_CC_C2,
91 Alpha2, //GX_CC_A2,
92 TextureColor, //GX_CC_TEXC,
93 TextureAlpha, //GX_CC_TEXA,
94 RasterColor, //GX_CC_RASC,
95 RasterAlpha, //GX_CC_RASA,
96 One, //GX_CC_ONE, //1
97 Half, //GX_CC_HALF, //0.5
98 ConstantColorSelection, //GX_CC_KONST,
99 Zero //GX_CC_ZERO //0
100 }

◆ ColorChannel

75 {
76 Red = 0,
77 Green,
78 Blue,
79 Alpha
80 }

◆ ColorSelChan

303 {
304 //Rasterized color selections
305 LightChannel0, //RAS1_CC_0 = 0, // Color channel 0
306 LightChannel1, //RAS1_CC_1 = 1, // Color channel 1
307 BumpAlpha = 5, //RAS1_CC_B = 5, // Indirect texture bump alpha
308 NormalizedBumpAlpha = 6, //RAS1_CC_BN = 6, // Indirect texture bump alpha, normalized 0-255
309 Zero = 7 //RAS1_CC_Z = 7 // Set color value to zero
310 }

◆ CPCommand

9 {
10 SetMatricesA = 3,
11 SetMatricesB = 4,
12 SetVertexDescLo = 5,
13 SetVertexDescHi = 6,
14 SetUVATGroup0 = 7,
15 SetUVATGroup1 = 8,
16 SetUVATGroup2 = 9
17 }

◆ DistAttnFn

602 {
603 Off = 0,
604 Gentle,
605 Medium,
606 Steep
607 }

◆ FogType

610 {
611 None = 0x00,
612
613 PerspectiveLinear = 0x02,
614 PerspectiveExp = 0x04,
615 PerspectiveExp2 = 0x05,
616 PerspectiveRevExp = 0x06,
617 PerspectiveRevExp2 = 0x07,
618
619 OrthographicLinear = 0x0A,
620 OrthographicExp = 0x0C,
621 OrthographicExp2 = 0x0D,
622 OrthographicRevExp = 0x0E,
623 OrthographicRevExp2 = 0x0F
624
626 //GX_FOG_LIN = GX_FOG_PERSP_LIN,
627 //GX_FOG_EXP = GX_FOG_PERSP_EXP,
628 //GX_FOG_EXP2 = GX_FOG_PERSP_EXP2,
629 //GX_FOG_REVEXP = GX_FOG_PERSP_REVEXP,
630 //GX_FOG_REVEXP2 = GX_FOG_PERSP_REVEXP2
631 }

◆ GXAttribute

480 {
481 PosNrmMtxId = 0,
482 Tex0MtxId,
483 Tex1MtxId,
484 Tex2MtxId,
485 Tex3MtxId,
486 Tex4MtxId,
487 Tex5MtxId,
488 Tex6MtxId,
489 Tex7MtxId,
490 Position = 9,
491 Normal,
492 Color0,
493 Color1,
494 Tex0,
495 Tex1,
496 Tex2,
497 Tex3,
498 Tex4,
499 Tex5,
500 Tex6,
501 Tex7,
502
503 PosMtxArray,
504 NrmMtxArray,
505 TexMtxArray,
506 LightArray,
507 NBT, //normal, bi-normal, tangent
508
509 Max,
510 Null = 0xFF
511 }

◆ GXBlendMode

47 {
48 None,
49 Blend,
50 Logic,
51 Subtract
52 }

◆ GXCompare

35 {
36 Never, //GX_NEVER,
37 Less, //GX_LESS,
38 Equal, //GX_EQUAL,
39 LessOrEqual, //GX_LEQUAL,
40 Greater, //GX_GREATER,
41 NotEqual, //GX_NEQUAL,
42 GreaterOrEqual, //GX_GEQUAL,
43 Always //GX_ALWAYS
44 }

◆ GXCompCnt

375 {
376 PosXY = 0,
377 PosXYZ = 1,
378 NrmXYZ = 0,
379 NrmNBT = 1, // one index per NBT
380 NrmNBT3 = 2, // one index per each of N/B/T
381 ClrRGB = 0,
382 ClrRGBA = 1,
383 TexS = 0,
384 TexST = 1
385 }

◆ GXCompType

388 {
389 UInt8 = 0,
390 Int8 = 1,
391 UInt16 = 2,
392 Int16 = 3,
393 Float = 4,
394
395 RGB565 = 0,
396 RGB8 = 1,
397 RGBX8 = 2,
398 RGBA4 = 3,
399 RGBA6 = 4,
400 RGBA8 = 5
401 }

◆ GXListCommand

4 {
5 NOP = 0,
6
7 LoadBPReg = 0x61,
8 LoadCPReg = 0x08,
9 LoadXFReg = 0x10,
10
11 //LoadIndex - 32bit data
12 //0000 0000 0000 0000 0000 1111 1111 1111 - XF Memory address
13 //0000 0000 0000 0000 1111 0000 0000 0000 - Length (reads length + 1 uint values into XF memory)
14 //1111 1111 1111 1111 0000 0000 0000 0000 - Index (for matrices, this is node index)
15
16 LoadIndexA = 0x20, //Position matrices (4 x 3)
17 LoadIndexB = 0x28, //Normal matrices (3 x 3)
18 LoadIndexC = 0x30, //Post matrices (4 x 4)
19 LoadIndexD = 0x38, //Lights
20
21 CmdCallDL = 0x40,
22 CmdUnknownMetrics = 0x44,
23 CmdInvlVC = 0x48,
24
25 DrawQuads = 0x80,
26 DrawTriangles = 0x90,
27 DrawTriangleStrip = 0x98,
28 DrawTriangleFan = 0xA0,
29 DrawLines = 0xA8,
30 DrawLineStrip = 0xB0,
31 DrawPoints = 0xB8
32 }

◆ GXLogicOp

55 {
56 Clear, //GX_LO_CLEAR,
57 And, //GX_LO_AND,
58 ReverseAnd, //GX_LO_REVAND,
59 Copy, //GX_LO_COPY,
60 InverseAnd, //GX_LO_INVAND,
61 NoOperation, //GX_LO_NOOP,
62 ExclusiveOr, //GX_LO_XOR,
63 Or, //GX_LO_OR,
64 NotOr, //GX_LO_NOR,
65 Equivalent, //GX_LO_EQUIV,
66 Inverse, //GX_LO_INV,
67 ReverseOr, //GX_LO_REVOR,
68 InverseCopy, //GX_LO_INVCOPY,
69 InverseOr, //GX_LO_INVOR,
70 NotAnd, //GX_LO_NAND,
71 Set //GX_LO_SET
72 }

◆ GXVtxFmt

362 {
363 GX_VTXFMT0 = 0,
364 GX_VTXFMT1,
365 GX_VTXFMT2,
366 GX_VTXFMT3,
367 GX_VTXFMT4,
368 GX_VTXFMT5,
369 GX_VTXFMT6,
370 GX_VTXFMT7,
371 GX_MAX_VTXFMT
372 }

◆ IndTexAlphaSel

422 {
423 Off, //GX_ITBA_OFF,
424 S, //GX_ITBA_S,
425 T, //GX_ITBA_T,
426 U //GX_ITBA_U
427 }

◆ IndTexBiasSel

438 {
439 None, //GX_ITB_NONE,
440 S, //GX_ITB_S,
441 T, //GX_ITB_T,
442 ST, //GX_ITB_ST,
443 U, //GX_ITB_U,
444 SU, //GX_ITB_SU,
445 TU, //GX_ITB_TU,
446 STU //GX_ITB_STU
447 }

◆ IndTexFormat

430 {
431 F_8_Bit_Offsets, //GX_ITF_8, // 8 bit texture offsets.
432 F_5_Bit_Offsets, //GX_ITF_5, // 5 bit texture offsets.
433 F_4_Bit_Offsets, //GX_ITF_4, // 4 bit texture offsets.
434 F_3_Bit_Offsets //GX_ITF_3 // 3 bit texture offsets.
435 }

◆ IndTexMtxID

450 {
451 NoMatrix, //GX_ITM_OFF,
452 Matrix0, //GX_ITM_0,
453 Matrix1, //GX_ITM_1,
454 Matrix2, //GX_ITM_2,
455 MatrixS0 = 5, //GX_ITM_S0 = 5,
456 MatrixS1, //GX_ITM_S1,
457 MatrixS2, //GX_ITM_S2,
458 MatrixT0 = 9, //GX_ITM_T0 = 9,
459 MatrixT1, //GX_ITM_T1,
460 MatrixT2 //GX_ITM_T2
461 }

◆ IndTexScale

475 {
476 DivideBy1, //GX_ITS_1, // Scale by 1.
477 DivideBy2, //GX_ITS_2, // Scale by 1/2.
478 DivideBy4, //GX_ITS_4, // Scale by 1/4.
479 DivideBy8, //GX_ITS_8, // Scale by 1/8.
480 DivideBy16, //GX_ITS_16, // Scale by 1/16.
481 DivideBy32, //GX_ITS_32, // Scale by 1/32.
482 DivideBy64, //GX_ITS_64, // Scale by 1/64.
483 DivideBy128, //GX_ITS_128, // Scale by 1/128.
484 DivideBy256 //GX_ITS_256 // Scale by 1/256.
485 }

◆ IndTexStageID

414 {
415 IndirectTexStg0, //GX_INDTEXSTAGE0,
416 IndirectTexStg1, //GX_INDTEXSTAGE1,
417 IndirectTexStg2, //GX_INDTEXSTAGE2,
418 IndirectTexStg3 //GX_INDTEXSTAGE3
419 }

◆ IndTexWrap

464 {
465 NoWrap, //GX_ITW_OFF, // no wrapping
466 Wrap256, //GX_ITW_256, // wrap 256
467 Wrap128, //GX_ITW_128, // wrap 128
468 Wrap64, //GX_ITW_64, // wrap 64
469 Wrap32, //GX_ITW_32, // wrap 32
470 Wrap16, //GX_ITW_16, // wrap 16
471 Wrap0 //GX_ITW_0, // wrap 0
472 }

◆ PosNrmMtx

488 {
489 GX_PNMTX0 = 0,
490 GX_PNMTX1 = 3,
491 GX_PNMTX2 = 6,
492 GX_PNMTX3 = 9,
493 GX_PNMTX4 = 12,
494 GX_PNMTX5 = 15,
495 GX_PNMTX6 = 18,
496 GX_PNMTX7 = 21,
497 GX_PNMTX8 = 24,
498 GX_PNMTX9 = 27
499 }

◆ ProjectionType

263 {
264 Perspective = 0,
265 Orthographic
266 }

◆ PTTexMtx

517 {
518 GX_PTTEXMTX0 = 64,
519 GX_PTTEXMTX1 = 67,
520 GX_PTTEXMTX2 = 70,
521 GX_PTTEXMTX3 = 73,
522 GX_PTTEXMTX4 = 76,
523 GX_PTTEXMTX5 = 79,
524 GX_PTTEXMTX6 = 82,
525 GX_PTTEXMTX7 = 85,
526 GX_PTTEXMTX8 = 88,
527 GX_PTTEXMTX9 = 91,
528 GX_PTTEXMTX10 = 94,
529 GX_PTTEXMTX11 = 97,
530 GX_PTTEXMTX12 = 100,
531 GX_PTTEXMTX13 = 103,
532 GX_PTTEXMTX14 = 106,
533 GX_PTTEXMTX15 = 109,
534 GX_PTTEXMTX16 = 112,
535 GX_PTTEXMTX17 = 115,
536 GX_PTTEXMTX18 = 118,
537 GX_PTTEXMTX19 = 121,
538 GX_PTIDENTITY = 125
539 }

◆ RegType

944 {
945 //TEV register type field
946 TEV_COLOR_REG = 0,
947 TEV_KONSTANT_REG = 1
948 }

◆ SpotFn

591 {
592 Off = 0,
593 Flat,
594 Cos,
595 Cos2,
596 Sharp,
597 Ring,
598 Ring2
599 }

◆ TevAlphaOp

193 {
194 Add = 0,
195 Subtract = 1,
196
197 CompR8Greater = 8,
198 CompR8Equal = 9,
199 CompGR16Greater = 10,
200 CompGR16Equal = 11,
201 CompBGR24Greater = 12,
202 CompBGR24Equal = 13,
203 CompA8Greater = 14,
204 CompA8Equal = 15
205 }

◆ TevAlphaRegID

167 {
168 OutputAlpha,
169 Alpha0,
170 Alpha1,
171 Alpha2
172 }

◆ TevColorOp

175 {
176 Add = 0,
177 Subtract = 1,
178
179 CompR8Greater = 8,
180 CompR8Equal = 9,
181 CompGR16Greater = 10,
182 CompGR16Equal = 11,
183 CompBGR24Greater = 12,
184 CompBGR24Equal = 13,
185 CompRGB8Greater = 14,
186 CompRGB8Equal = 15
187
188 //GX_TEV_COMP_A8_GT = GX_TEV_COMP_RGB8_GT, // for alpha channel
189 //GX_TEV_COMP_A8_EQ = GX_TEV_COMP_RGB8_EQ // for alpha channel
190 }

◆ TevColorRegID

159 {
160 OutputColor,
161 Color0,
162 Color1,
163 Color2
164 }

◆ TevKAlphaSel

342 {
343 Constant1_1 /*GX_TEV_KASEL_8_8*/ = 0x00, //1.0f
344 Constant7_8 /*GX_TEV_KASEL_7_8*/ = 0x01, //0.875f
345 Constant3_4 /*GX_TEV_KASEL_6_8*/ = 0x02, //0.75f
346 Constant5_8 /*GX_TEV_KASEL_5_8*/ = 0x03, //0.625f
347 Constant1_2 /*GX_TEV_KASEL_4_8*/ = 0x04, //0.5f
348 Constant3_8 /*GX_TEV_KASEL_3_8*/ = 0x05, //0.375f
349 Constant1_4 /*GX_TEV_KASEL_2_8*/ = 0x06, //0.25f
350 Constant1_8 /*GX_TEV_KASEL_1_8*/ = 0x07, //0.125f
351
352 //GX_TEV_KASEL_1 = GX_TEV_KASEL_8_8,
353 //GX_TEV_KASEL_3_4 = GX_TEV_KASEL_6_8,
354 //GX_TEV_KASEL_1_2 = GX_TEV_KASEL_4_8,
355 //GX_TEV_KASEL_1_4 = GX_TEV_KASEL_2_8,
356
357 ConstantColor0_Red /*GX_TEV_KASEL_K0_R*/ = 0x10,
358 ConstantColor1_Red /*GX_TEV_KASEL_K1_R*/ = 0x11,
359 ConstantColor2_Red /*GX_TEV_KASEL_K2_R*/ = 0x12,
360 ConstantColor3_Red /*GX_TEV_KASEL_K3_R*/ = 0x13,
361 ConstantColor0_Green /*GX_TEV_KASEL_K0_G*/ = 0x14,
362 ConstantColor1_Green /*GX_TEV_KASEL_K1_G*/ = 0x15,
363 ConstantColor2_Green /*GX_TEV_KASEL_K2_G*/ = 0x16,
364 ConstantColor3_Green /*GX_TEV_KASEL_K3_G*/ = 0x17,
365 ConstantColor0_Blue /*GX_TEV_KASEL_K0_B*/ = 0x18,
366 ConstantColor1_Blue /*GX_TEV_KASEL_K1_B*/ = 0x19,
367 ConstantColor2_Blue /*GX_TEV_KASEL_K2_B*/ = 0x1A,
368 ConstantColor3_Blue /*GX_TEV_KASEL_K3_B*/ = 0x1B,
369 ConstantColor0_Alpha /*GX_TEV_KASEL_K0_A*/ = 0x1C,
370 ConstantColor1_Alpha /*GX_TEV_KASEL_K1_A*/ = 0x1D,
371 ConstantColor2_Alpha /*GX_TEV_KASEL_K2_A*/ = 0x1E,
372 ConstantColor3_Alpha /*GX_TEV_KASEL_K3_A*/ = 0x1F
373 }

◆ TevKColorSel

376 {
377 Constant1_1 /*GX_TEV_KCSEL_8_8*/ = 0x00, //1.0f, 1.0f, 1.0f
378 Constant7_8 /*GX_TEV_KCSEL_7_8*/ = 0x01, //0.875f, 0.875f, 0.875f
379 Constant3_4 /*GX_TEV_KCSEL_6_8*/ = 0x02, //0.75f, 0.75f, 0.75f
380 Constant5_8 /*GX_TEV_KCSEL_5_8*/ = 0x03, //0.625f, 0.625f, 0.625f
381 Constant1_2 /*GX_TEV_KCSEL_4_8*/ = 0x04, //0.5f, 0.5f, 0.5f
382 Constant3_8 /*GX_TEV_KCSEL_3_8*/ = 0x05, //0.375f, 0.375f, 0.375f
383 Constant1_4 /*GX_TEV_KCSEL_2_8*/ = 0x06, //0.25f, 0.25f, 0.25f
384 Constant1_8 /*GX_TEV_KCSEL_1_8*/ = 0x07, //0.125f, 0.125f, 0.125f
385
386 //GX_TEV_KCSEL_1 = GX_TEV_KCSEL_8_8,
387 //GX_TEV_KCSEL_3_4 = GX_TEV_KCSEL_6_8,
388 //GX_TEV_KCSEL_1_2 = GX_TEV_KCSEL_4_8,
389 //GX_TEV_KCSEL_1_4 = GX_TEV_KCSEL_2_8,
390
391 ConstantColor0_RGB /*GX_TEV_KCSEL_K0*/ = 0x0C,
392 ConstantColor1_RGB /*GX_TEV_KCSEL_K1*/ = 0x0D,
393 ConstantColor2_RGB /*GX_TEV_KCSEL_K2*/ = 0x0E,
394 ConstantColor3_RGB /*GX_TEV_KCSEL_K3*/ = 0x0F,
395 ConstantColor0_RRR /*GX_TEV_KCSEL_K0_R*/ = 0x10,
396 ConstantColor1_RRR /*GX_TEV_KCSEL_K1_R*/ = 0x11,
397 ConstantColor2_RRR /*GX_TEV_KCSEL_K2_R*/ = 0x12,
398 ConstantColor3_RRR /*GX_TEV_KCSEL_K3_R*/ = 0x13,
399 ConstantColor0_GGG /*GX_TEV_KCSEL_K0_G*/ = 0x14,
400 ConstantColor1_GGG /*GX_TEV_KCSEL_K1_G*/ = 0x15,
401 ConstantColor2_GGG /*GX_TEV_KCSEL_K2_G*/ = 0x16,
402 ConstantColor3_GGG /*GX_TEV_KCSEL_K3_G*/ = 0x17,
403 ConstantColor0_BBB /*GX_TEV_KCSEL_K0_B*/ = 0x18,
404 ConstantColor1_BBB /*GX_TEV_KCSEL_K1_B*/ = 0x19,
405 ConstantColor2_BBB /*GX_TEV_KCSEL_K2_B*/ = 0x1A,
406 ConstantColor3_BBB /*GX_TEV_KCSEL_K3_B*/ = 0x1B,
407 ConstantColor0_AAA /*GX_TEV_KCSEL_K0_A*/ = 0x1C,
408 ConstantColor1_AAA /*GX_TEV_KCSEL_K1_A*/ = 0x1D,
409 ConstantColor2_AAA /*GX_TEV_KCSEL_K2_A*/ = 0x1E,
410 ConstantColor3_AAA /*GX_TEV_KCSEL_K3_A*/ = 0x1F
411 }

◆ TevMode

269 {
270 MODULATE = 0,
271 DECAL,
272 BLEND,
273 REPLACE,
274 PASSCLR
275 }

◆ TevScale

255 {
256 MultiplyBy1, //GX_CS_SCALE_1,
257 MultiplyBy2, //GX_CS_SCALE_2,
258 MultiplyBy4, //GX_CS_SCALE_4,
259 DivideBy2 //GX_CS_DIVIDE_2
260 }

◆ TevStageID

122 {
123 //GX_TEVSTAGE0,
124 //GX_TEVSTAGE1,
125 //GX_TEVSTAGE2,
126 //GX_TEVSTAGE3,
127 //GX_TEVSTAGE4,
128 //GX_TEVSTAGE5,
129 //GX_TEVSTAGE6,
130 //GX_TEVSTAGE7,
131 //GX_TEVSTAGE8,
132 //GX_TEVSTAGE9,
133 //GX_TEVSTAGE10,
134 //GX_TEVSTAGE11,
135 //GX_TEVSTAGE12,
136 //GX_TEVSTAGE13,
137 //GX_TEVSTAGE14,
138 //GX_TEVSTAGE15,
139
140 Stage0,
141 Stage1,
142 Stage2,
143 Stage3,
144 Stage4,
145 Stage5,
146 Stage6,
147 Stage7,
148 Stage8,
149 Stage9,
150 Stage10,
151 Stage11,
152 Stage12,
153 Stage13,
154 Stage14,
155 Stage15
156 }

◆ TevSwapSel

247 {
248 Swap0, //GX_TEV_SWAP0 = 0,
249 Swap1, //GX_TEV_SWAP1,
250 Swap2, //GX_TEV_SWAP2,
251 Swap3 //GX_TEV_SWAP3
252 }

◆ TexCoordID

327 {
328 TexCoord0, //GX_TEXCOORD0 = 0x0, // generated texture coordinate 0
329 TexCoord1, //GX_TEXCOORD1, // generated texture coordinate 1
330 TexCoord2, //GX_TEXCOORD2, // generated texture coordinate 2
331 TexCoord3, //GX_TEXCOORD3, // generated texture coordinate 3
332 TexCoord4, //GX_TEXCOORD4, // generated texture coordinate 4
333 TexCoord5, //GX_TEXCOORD5, // generated texture coordinate 5
334 TexCoord6, //GX_TEXCOORD6, // generated texture coordinate 6
335
336 TexCoord7 //GX_TEXCOORD7, // generated texture coordinate 7
337 //GX_MAX_TEXCOORD = 8,
338 //GX_TEXCOORD_NULL = 0xff
339 }

◆ TexInputForm

560 {
561 AB11, //XF_TEX_AB11 = 0x0,
562 ABC1 //XF_TEX_ABC1 = 0x1
563 }

◆ TexMapID

286 {
287 TexMap0, //GX_TEXMAP0,
288 TexMap1, //GX_TEXMAP1,
289 TexMap2, //GX_TEXMAP2,
290 TexMap3, //GX_TEXMAP3,
291 TexMap4, //GX_TEXMAP4,
292 TexMap5, //GX_TEXMAP5,
293 TexMap6, //GX_TEXMAP6,
294
295 TexMap7 //GX_TEXMAP7,
296 //GX_MAX_TEXMAP,
297
298 //GX_TEXMAP_NULL = 0xff,
299 //GX_TEX_DISABLE = 0x100 // mask : disables texture look up
300 }

◆ TexMtx

502 {
503 GX_TEXMTX0 = 30,
504 GX_TEXMTX1 = 33,
505 GX_TEXMTX2 = 36,
506 GX_TEXMTX3 = 39,
507 GX_TEXMTX4 = 42,
508 GX_TEXMTX5 = 45,
509 GX_TEXMTX6 = 48,
510 GX_TEXMTX7 = 51,
511 GX_TEXMTX8 = 54,
512 GX_TEXMTX9 = 57,
513 GX_IDENTITY = 60
514 }

◆ TexMtxType

548 {
549 GX_MTX3x4 = 0,
550 GX_MTX2x4
551 }

◆ TexProjection

554 {
555 ST, //XF_TEX_ST = 0x0,
556 STQ //XF_TEX_STQ = 0x1
557 }

◆ TexSourceRow

574 {
575 Geometry, //XF_GEOM_INROW = 0x0,
576 Normals, //XF_NORMAL_INROW = 0x1,
577 Colors, //XF_COLORS_INROW = 0x2,
578 BinormalsT, //XF_BINORMAL_T_INROW = 0x3,
579 BinormalsB, //XF_BINORMAL_B_INROW = 0x4,
580 TexCoord0, //XF_TEX0_INROW = 0x5,
581 TexCoord1, //XF_TEX1_INROW = 0x6,
582 TexCoord2, //XF_TEX2_INROW = 0x7,
583 TexCoord3, //XF_TEX3_INROW = 0x8,
584 TexCoord4, //XF_TEX4_INROW = 0x9,
585 TexCoord5, //XF_TEX5_INROW = 0xA,
586 TexCoord6, //XF_TEX6_INROW = 0xB,
587 TexCoord7 //XF_TEX7_INROW = 0xC
588 }

◆ TexTexgenType

566 {
567 Regular, //XF_TEXGEN_REGULAR = 0x0,
568 EmbossMap, //XF_TEXGEN_EMBOSS_MAP = 0x1,
569 Color0, //XF_TEXGEN_COLOR_STRGBC0 = 0x2,
570 Color1 //XF_TEXGEN_COLOR_STRGBC1 = 0x3
571 }

◆ XFDataFormat

459 {
460 None = 0,
461 Direct = 1,
462 Index8 = 2,
463 Index16 = 3
464 }

◆ XFMemoryAddr

232 {
233 PosMatrices = 0x0000,
234
235 Size = 0x8000,
236 Error = 0x1000,
237 Diag = 0x1001,
238 State0 = 0x1002,
239 State1 = 0x1003,
240 Clock = 0x1004,
241 ClipDisable = 0x1005,
242 SetGPMetric = 0x1006,
243
244 //VTXSpecs = 0x1008,
245 //SetNumChan = 0x1009,
246 SetChan0AmbColor = 0x100A,
247 SetChan1AmbColor = 0x100B,
248 SetChan0MatColor = 0x100C,
249 SetChan1MatColor = 0x100D,
250 SetChan0Color = 0x100E,
251 SetChan1Color = 0x100F,
252 SetChan0Alpha = 0x1010,
253 SetChan1Alpha = 0x1011,
254 DualTex = 0x1012,
255 SetMatrixIndA = 0x1018,
256 SetMatrixIndB = 0x1019,
257 SetViewport = 0x101A,
258 SetZScale = 0x101C,
259 SetZOffset = 0x101F,
260 SetProjection = 0x1020,
261 //SetNumTexGens = 0x103F,
262 //SetTexMtxInfo = 0x1040,
263 //SetPosMtxInfo = 0x1050,
264
265 XF_INVTXSPEC_ID = 0x1008,
266 XF_NUMCOLORS_ID = 0x1009,
267 XF_NUMTEX_ID = 0x103f,
268
269 XF_TEX0_ID = 0x1040,
270 XF_TEX1_ID = 0x1041,
271 XF_TEX2_ID = 0x1042,
272 XF_TEX3_ID = 0x1043,
273 XF_TEX4_ID = 0x1044,
274 XF_TEX5_ID = 0x1045,
275 XF_TEX6_ID = 0x1046,
276 XF_TEX7_ID = 0x1047,
277
278 XF_DUALTEX0_ID = 0x1050,
279 XF_DUALTEX1_ID = 0x1051,
280 XF_DUALTEX2_ID = 0x1052,
281 XF_DUALTEX3_ID = 0x1053,
282 XF_DUALTEX4_ID = 0x1054,
283 XF_DUALTEX5_ID = 0x1055,
284 XF_DUALTEX6_ID = 0x1056,
285 XF_DUALTEX7_ID = 0x1057
286 }

◆ XFNormalFormat

289 {
290 None = 0, //I've seen models with no normals.
291 XYZ = 1,
292 NBT = 2
293 }