Class PresentationParameters
public class PresentationParameters
- Inheritance
-
PresentationParameters
- Inherited Members
Constructors
PresentationParameters()
Create a PresentationParameters instance with default values for all properties.
public PresentationParameters()
Fields
DefaultPresentRate
public const int DefaultPresentRate = 60
Field Value
Properties
BackBufferFormat
Get or set the format of the back buffer.
public SurfaceFormat BackBufferFormat { get; set; }
Property Value
BackBufferHeight
Get or set the height of the back buffer.
public int BackBufferHeight { get; set; }
Property Value
BackBufferWidth
Get or set the width of the back buffer.
public int BackBufferWidth { get; set; }
Property Value
Bounds
Get the bounds of the back buffer.
public Rectangle Bounds { get; }
Property Value
DepthStencilFormat
Get or set the depth stencil format for the back buffer.
public DepthFormat DepthStencilFormat { get; set; }
Property Value
DeviceWindowHandle
Get or set the handle of the window that will present the back buffer.
public IntPtr DeviceWindowHandle { get; set; }
Property Value
DisplayOrientation
Get or set the display orientation.
public DisplayOrientation DisplayOrientation { get; set; }
Property Value
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
IsFullScreen
Get or set a value indicating if we are in full screen mode.
public bool IsFullScreen { get; set; }
Property Value
MultiSampleCount
Get or set the multisample count for the back buffer.
public int MultiSampleCount { get; set; }
Property Value
PresentationInterval
Get or set the presentation interval.
public PresentInterval PresentationInterval { get; set; }
Property Value
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
Methods
Clear()
Reset all properties to their default values.
public void Clear()
Clone()
Create a copy of this PresentationParameters instance.
public PresentationParameters Clone()