private static ResGFXBNTX.ChannelType ConvertWiiUToBNTXChannel(ResU.GX2.GX2CompSel compU) { ResGFXBNTX.ChannelType type = new ResGFXBNTX.ChannelType(); switch (compU) { case ResU.GX2.GX2CompSel.Always0: type = ResGFXBNTX.ChannelType.Zero; break; case ResU.GX2.GX2CompSel.Always1: type = ResGFXBNTX.ChannelType.One; break; case ResU.GX2.GX2CompSel.ChannelA: type = ResGFXBNTX.ChannelType.Alpha; break; case ResU.GX2.GX2CompSel.ChannelB: type = ResGFXBNTX.ChannelType.Blue; break; case ResU.GX2.GX2CompSel.ChannelG: type = ResGFXBNTX.ChannelType.Green; break; case ResU.GX2.GX2CompSel.ChannelR: type = ResGFXBNTX.ChannelType.Red; break; } return(type); }
private static ResU.GX2.GX2CompSel ConvertBNTXToWiiUChannel(ResGFXBNTX.ChannelType compNX) { ResU.GX2.GX2CompSel type = new ResU.GX2.GX2CompSel(); switch (compNX) { case ResGFXBNTX.ChannelType.Zero: type = ResU.GX2.GX2CompSel.Always0; break; case ResGFXBNTX.ChannelType.One: type = ResU.GX2.GX2CompSel.Always1; break; case ResGFXBNTX.ChannelType.Alpha: type = ResU.GX2.GX2CompSel.ChannelA; break; case ResGFXBNTX.ChannelType.Blue: type = ResU.GX2.GX2CompSel.ChannelB; break; case ResGFXBNTX.ChannelType.Green: type = ResU.GX2.GX2CompSel.ChannelG; break; case ResGFXBNTX.ChannelType.Red: type = ResU.GX2.GX2CompSel.ChannelR; break; } return(type); }