TextureFromColor() public static method

public static TextureFromColor ( GraphicsDevice gd, Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
color Color
return Microsoft.Xna.Framework.Graphics.Texture2D
Example #1
0
 public static Texture2D GetDefaultAdv(GraphicsDevice gd)
 {
     if (DefaultAdvLight == null)
     {
         DefaultAdvLight = TextureUtils.TextureFromColor(gd, new Color(0, 255, 0, 255));                          //outdoors color max
     }
     return(DefaultAdvLight);
 }
Example #2
0
 public static Texture2D GetPxWhite(GraphicsDevice gd)
 {
     if (PxWhite == null)
     {
         PxWhite = TextureUtils.TextureFromColor(gd, Color.White);
     }
     return(PxWhite);
 }