GraphicsDeviceManager.PreferredBackBufferFormat Property (Microsoft.Xna.Framework)

Indicates the desired back buffer color format.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public SurfaceFormat PreferredBackBufferFormat { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

When called at startup this will automatically set the format during initialization. If set after startup you must call ApplyChanges() for the format to be changed.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web