MonoGdx.Graphics.G2D.TextureContext.TextureContext C# (CSharp) 메소드

TextureContext() 공개 메소드

public TextureContext ( Microsoft.Xna.Framework.Content.ContentManager contentManager, string assetName, bool premultiplyAlpha ) : System
contentManager Microsoft.Xna.Framework.Content.ContentManager
assetName string
premultiplyAlpha bool
리턴 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