public static GetClearTexture2D ( |
||
batch | The batch to create the texture from. | |
return | 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;
}