public static void Dump(this TextureMapChunk chunk, ThreeDSModel4LegacyOpenGL model, ThreeDSMaterial4LegacyOpenGL material) { foreach (var item in chunk.Children) { if (item is MappingFilenameChunk) { string filename = string.Empty; (item as MappingFilenameChunk).Dump(out filename); material.TextureFilename = filename; } else if (item is MappingParametersChunk) { (item as MappingParametersChunk).Dump(model, material); } else if (!(item is UndefinedChunk)) { throw new NotImplementedException(string.Format( "not dumper implemented for {0}", item.GetType())); } } }
public static void Dump(this TextureMapChunk chunk, ThreeDSModel4ModernOpengl model, ThreeDSMaterial4ModernOpenGL material) { // nothing to do. }