Class SwapChainGraphicsPresenter
Graphics presenter for SwapChain.
public class SwapChainGraphicsPresenter : GraphicsPresenter, IDisposable, IComponent, IReferencable, ICollectorHolder- Inheritance
- 
      objectSwapChainGraphicsPresenter
- Implements
- Inherited Members
- Extension Methods
Constructors
SwapChainGraphicsPresenter(GraphicsDevice, PresentationParameters)
public SwapChainGraphicsPresenter(GraphicsDevice device, PresentationParameters presentationParameters)Parameters
- deviceGraphicsDevice
- presentationParametersPresentationParameters
Properties
BackBuffer
Gets the default back buffer for this presenter.
public override Texture BackBuffer { get; }Property Value
IsFullScreen
Gets or sets fullscreen mode for this presenter.
public override bool IsFullScreen { get; set; }Property Value
- bool
- trueif this instance is full screen; otherwise,- false.
Remarks
This method is only valid on Windows Desktop and has no effect on Windows Metro.
NativePresenter
Gets the underlying native presenter (can be a SharpDX.DXGI.SwapChain or SharpDX.DXGI.SwapChain1 or null, depending on the platform).
public override object NativePresenter { get; }Property Value
- object
- The native presenter. 
Methods
BeginDraw(CommandList)
public override void BeginDraw(CommandList commandList)Parameters
- commandListCommandList
EndDraw(CommandList, bool)
public override void EndDraw(CommandList commandList, bool present)Parameters
- commandListCommandList
- presentbool
OnDestroyed()
Called when [destroyed].
protected override void OnDestroyed()OnNameChanged()
Called when Name property was changed.
protected override void OnNameChanged()OnRecreated()
Called when [recreated].
public override void OnRecreated()Present()
Presents the Backbuffer to the screen.
public override void Present()ResizeBackBuffer(int, int, PixelFormat)
protected override void ResizeBackBuffer(int width, int height, PixelFormat format)Parameters
- widthint
- heightint
- formatPixelFormat
ResizeDepthStencilBuffer(int, int, PixelFormat)
protected override void ResizeDepthStencilBuffer(int width, int height, PixelFormat format)Parameters
- widthint
- heightint
- formatPixelFormat