public static EncodingDefinition GetEncodingDefinition(MtTexPlatform platform) { var definition = new EncodingDefinition(); switch (platform) { case MtTexPlatform.N3DS: definition.AddColorEncodings(CtrFormats); break; case MtTexPlatform.Switch: definition.AddColorEncodings(SwitchFormats); break; case MtTexPlatform.PS3: definition.AddColorEncodings(Ps3Formats); definition.AddColorShaders(Shaders); break; case MtTexPlatform.Mobile: definition.AddColorEncodings(MobileFormats); break; case MtTexPlatform.Wii: throw new InvalidOperationException("Cannot obtain encoding definition for Wii MT Tex."); } return(definition); }
public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(CitraFormats); return(definition); }
public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(Formats.ToDictionary(x => (int)x.Key, y => y.Value)); return(definition); }
public static EncodingDefinition GetCafeDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(Nw4cImageFormats.CafeFormats); return(definition); }
public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(ColorFormats); definition.AddPaletteEncodings(PaletteFormats); definition.AddIndexEncodings(IndexFormats); return(definition); }
public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(ColorFormats); definition.AddPaletteEncoding(0, new Rgba(5, 5, 5, "BGR")); definition.AddIndexEncodings(IndexFormats.Select(x => (x.Key, new IndexEncodingDefinition(x.Value, new[] { 0 }))).ToArray()); return(definition); }
public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(ColorFormats); definition.AddPaletteEncodings(PaletteFormats); definition.AddIndexEncodings(IndexFormats.Select(x => (x.Key, new IndexEncodingDefinition(x.Value, new List <int> { 0, 1, 2 }))).ToArray()); return(definition); }
public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddColorEncodings(ColorFormats); definition.AddPaletteEncodings(ColorFormats); definition.AddIndexEncodings(IndexFormats.ToDictionary(x => x.Key, y => new IndexEncodingDefinition(y.Value, new[] { 0, 1, 2 }))); // HINT: The color shader is only applied on color encodings or palette encodings // Since both, color encodings and palette encodings, share the same encodings declaration // They also share the same shader declaration definition.AddColorShaders(Shaders); definition.AddPaletteShaders(Shaders); return(definition); }