Table of Contents

Class SwapChainGraphicsPresenter

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Graphics presenter for SwapChain.

public class SwapChainGraphicsPresenter : GraphicsPresenter, IDisposable, IComponent, IReferencable, ICollectorHolder
Inheritance
SwapChainGraphicsPresenter
Implements
Inherited Members
Extension Methods

Constructors

SwapChainGraphicsPresenter(GraphicsDevice, PresentationParameters)

public SwapChainGraphicsPresenter(GraphicsDevice device, PresentationParameters presentationParameters)

Parameters

device GraphicsDevice
presentationParameters PresentationParameters

Properties

BackBuffer

Gets the default back buffer for this presenter.

public override Texture BackBuffer { get; }

Property Value

Texture

IsFullScreen

Gets or sets fullscreen mode for this presenter.

public override bool IsFullScreen { get; set; }

Property Value

bool

true if 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

commandList CommandList

EndDraw(CommandList, bool)

public override void EndDraw(CommandList commandList, bool present)

Parameters

commandList CommandList
present bool

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

width int
height int
format PixelFormat

ResizeDepthStencilBuffer(int, int, PixelFormat)

protected override void ResizeDepthStencilBuffer(int width, int height, PixelFormat format)

Parameters

width int
height int
format PixelFormat