Class RenderTargetGraphicsPresenter
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
GraphicsDevicerenderTarget
TexturedepthFormat
PixelFormat
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
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
intheight
intformat
PixelFormat
ResizeDepthStencilBuffer(int, int, PixelFormat)
protected override void ResizeDepthStencilBuffer(int width, int height, PixelFormat format)
Parameters
width
intheight
intformat
PixelFormat
SetBackBuffer(Texture)
Sets the back buffer.
public void SetBackBuffer(Texture backBuffer)
Parameters
backBuffer
TextureThe back buffer.