GraphicsDevice.DiscardColor Property (Microsoft.Xna.Framework.Graphics)

Get or set the color a RenderTarget2D is cleared to when it is set.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static Color DiscardColor { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: Microsoft.Xna.Framework.Color
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web