Skip to content

F3FBD413

Marcel Härtel edited this page Aug 27, 2023 · 2 revisions

SwapChainRenderTarget Property

A swap chain used for rendering to a secondary GameWindow. Note: When working with different RenderTarget2D, you need to set the current render target back to the SwapChainRenderTarget as this is the real 'Back Buffer'. 'GraphicsDevice.SetRenderTarget(null)' will NOT work as you are doing usally in MonoGame. Instead use 'GraphicsDevice.SetRenderTarget(SwapChainRenderTarget)'. Otherwise you will see only a black control window.

Definition

Namespace: MonoGame.Forms.NET.Controls
Assembly: MonoGame.Forms.NET (in MonoGame.Forms.NET.dll) Version: 3.2.0

C#

public SwapChainRenderTarget SwapChainRenderTarget { get; }

Property Value

SwapChainRenderTarget

See Also

Reference

GraphicsDeviceControl Class
MonoGame.Forms.NET.Controls Namespace

Clone this wiki locally