Table of Contents

Class PresentationParameters

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

Contains graphics presentation parameters.

public class PresentationParameters
Inheritance
PresentationParameters
Inherited Members

Constructors

PresentationParameters()

Create a PresentationParameters instance with default values for all properties.

public PresentationParameters()

Fields

DefaultPresentRate

Default presentation rate

public const int DefaultPresentRate = 60

Field Value

int

Properties

BackBufferFormat

Get or set the format of the back buffer.

public SurfaceFormat BackBufferFormat { get; set; }

Property Value

SurfaceFormat

BackBufferHeight

Get or set the height of the back buffer.

public int BackBufferHeight { get; set; }

Property Value

int

BackBufferWidth

Get or set the width of the back buffer.

public int BackBufferWidth { get; set; }

Property Value

int

Bounds

Get the bounds of the back buffer.

public Rectangle Bounds { get; }

Property Value

Rectangle

DepthStencilFormat

Get or set the depth stencil format for the back buffer.

public DepthFormat DepthStencilFormat { get; set; }

Property Value

DepthFormat

DeviceWindowHandle

Get or set the handle of the window that will present the back buffer.

public nint DeviceWindowHandle { get; set; }

Property Value

nint

DisplayOrientation

Get or set the display orientation.

public DisplayOrientation DisplayOrientation { get; set; }

Property Value

DisplayOrientation

HardwareModeSwitch

If

true
the GraphicsDevice will do a mode switch when going to full screen mode. If
false
it will instead do a soft full screen by maximizing the window and making it borderless.
public bool HardwareModeSwitch { get; set; }

Property Value

bool

IsFullScreen

Get or set a value indicating if we are in full screen mode.

public bool IsFullScreen { get; set; }

Property Value

bool

MultiSampleCount

Get or set the multisample count for the back buffer.

public int MultiSampleCount { get; set; }

Property Value

int

PresentationInterval

Get or set the presentation interval.

public PresentInterval PresentationInterval { get; set; }

Property Value

PresentInterval

RenderTargetUsage

Get or set the RenderTargetUsage for the back buffer. Determines if the back buffer is cleared when it is set as the render target by the GraphicsDevice. GraphicsDevice target.

public RenderTargetUsage RenderTargetUsage { get; set; }

Property Value

RenderTargetUsage

Methods

Clear()

Reset all properties to their default values.

public void Clear()

Clone()

Create a copy of this PresentationParameters instance.

public PresentationParameters Clone()

Returns

PresentationParameters