MonoGdx.Graphics.G2D.TextureContext.TextureContext C# (CSharp) Method

TextureContext() public method

public TextureContext ( Microsoft.Xna.Framework.Content.ContentManager contentManager, string assetName, bool premultiplyAlpha ) : System
contentManager Microsoft.Xna.Framework.Content.ContentManager
assetName string
premultiplyAlpha bool
return System
        public TextureContext(ContentManager contentManager, string assetName, bool premultiplyAlpha)
        {
            _texture = contentManager.Load<Texture2D>(assetName);

            if (premultiplyAlpha)
                PremultiplyTexture(_texture);
        }

Same methods

TextureContext::TextureContext ( Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, Stream stream, bool premultiplyAlpha ) : System
TextureContext::TextureContext ( Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, string file, bool premultiplyAlpha ) : System
TextureContext::TextureContext ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System