public static TextureFromColor ( GraphicsDevice gd, Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
gd | GraphicsDevice | |
color | Color | |
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public static Texture2D GetDefaultAdv(GraphicsDevice gd) { if (DefaultAdvLight == null) { DefaultAdvLight = TextureUtils.TextureFromColor(gd, new Color(0, 255, 0, 255)); //outdoors color max } return(DefaultAdvLight); }
public static Texture2D GetPxWhite(GraphicsDevice gd) { if (PxWhite == null) { PxWhite = TextureUtils.TextureFromColor(gd, Color.White); } return(PxWhite); }