AStarCollisionMap.DrawUtil.GetClearTexture2D C# (CSharp) Метод

GetClearTexture2D() публичный статический Метод

Gets a 1x1 texture with a clear transparent pixel in it.
public static GetClearTexture2D ( SpriteBatch batch ) : Microsoft.Xna.Framework.Graphics.Texture2D
batch Microsoft.Xna.Framework.Graphics.SpriteBatch The batch to create the texture from.
Результат Microsoft.Xna.Framework.Graphics.Texture2D
        public static Texture2D GetClearTexture2D(SpriteBatch batch)
        {
            Texture2D lineTexture = new Texture2D(batch.GraphicsDevice, 1, 1);
            int[] intColor = { (int)Color.White.PackedValue };
            lineTexture.SetData(intColor);
            return lineTexture;
        }