Table of Contents

Interface IOffscreenRenderer

Namespace
BSGameLib.Game.Rendering
Assembly
BSGameLib.Game.dll

Provides helpers for rendering into offscreen targets without exposing the full graphics surface.

public interface IOffscreenRenderer

Methods

RenderToTarget(int, int, Action<IRenderEncoderScope>, RenderPassTag, string, Color?)

Draws what record records into a new render target width by height pixels, and returns the target.

IRenderTarget RenderToTarget(int width, int height, Action<IRenderEncoderScope> record, RenderPassTag passTag = RenderPassTag.UI, string passName = null, Color? clearColor = null)

Parameters

width int
height int
record Action<IRenderEncoderScope>
passTag RenderPassTag
passName string
clearColor Color?

The colour the target is cleared to first. Transparent when null.

Returns

IRenderTarget