public override Asset Import(string path) { Texture texture = new Texture(); texture.FileName = path; PIX pix = PIX.Load(path); texture.CreateFromBitmap(pix.Pixies[0].GetBitmap(), pix.Pixies[0].Name); return(texture); }
public override AssetList ImportMany(string path) { TextureList textures = new TextureList(); PIX pix = PIX.Load(path); foreach (PIXIE pixelmap in pix.Pixies) { Texture texture = new Texture { FileName = pixelmap.Name }; texture.CreateFromBitmap(pixelmap.GetBitmap(), pixelmap.Name); textures.Entries.Add(texture); } return(textures); }
public override AssetList ImportMany(string path) { TextureList textures = new TextureList(); var pix = PIX.Load(path); foreach (var pixelmap in pix.Pixies) { Texture texture = new Texture(); texture.CreateFromBitmap(pixelmap.GetBitmap(), pixelmap.Name); textures.Entries.Add(texture); } //texture.SetData(tdx.Name, tdx.Format.ToString(), tdx.MipMaps[0].Width, tdx.MipMaps[0].Height, tdx.MipMaps[0].Data); //texture.SupportingDocuments["Source"] = tdx; //texture.FileName = path; return(textures); }