Engines/FlatRedBallXNA/FlatRedBall.Content/BitmapTextureProcessor.cs
/// <summary>
/// builds an external reference to a texture
/// </summary>
builds an external reference to a texture
builds an external reference to a texture
internal static ExternalReference<TextureContent> BuildTexture(string file, ContentProcessorContext context)
        {
            ExternalReference<Texture2DContent> tex = new ExternalReference<Texture2DContent>(file);
            tex.Name = Path.GetFileNameWithoutExtension(file);
            CreateDictionaryIfNecessary();
            return context.BuildAsset<Texture2DContent, TextureContent>(
                    tex,
                    typeof(TextureProcessor).Name,
                    dictionary,
                    "TextureImporter",
                    null 
                    );
        }
internal static ExternalReference < TextureContent > BuildTexture ( string file , ContentProcessorContext context ) { ExternalReference < Texture2DContent > tex = new ExternalReference < Texture2DContent > ( file ) ; tex . Name = Path . GetFileNameWithoutExtension ( file ) ; CreateDictionaryIfNecessary ( ) ; return context . BuildAsset < Texture2DContent , TextureContent > ( tex , typeof ( TextureProcessor ) . Name , dictionary , " " , null ) ; }
builds an external reference to a texture
builds an external reference to a texture
//string extension = Path.GetExtension(file); //UseBlackAsAlpha = extension.ToLower() == ".bmp"; //if (UseBlackAsAlpha) //{ //    TextureProcessor.ColorKeyColor = Color.Black; //    TextureProcessor.ColorKeyEnabled = true; //} //else //{ //    TextureProcessor.ColorKeyEnabled = false; //} // Passing null lets the content pipeline decide on the default name, which is what we want.
file
string
context
ContentProcessorContext