Table of Contents

Class RenderTargetGraphicsPresenter

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Graphics presenter for SwapChain.

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

Constructors

RenderTargetGraphicsPresenter(GraphicsDevice, Texture, PixelFormat)

public RenderTargetGraphicsPresenter(GraphicsDevice device, Texture renderTarget, PixelFormat depthFormat = PixelFormat.None)

Parameters

device GraphicsDevice
renderTarget Texture
depthFormat PixelFormat

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

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

SetBackBuffer(Texture)

Sets the back buffer.

public void SetBackBuffer(Texture backBuffer)

Parameters

backBuffer Texture

The back buffer.