BeginRender(DisplayList, Bitmap, in Matrix, Boolean, CancellationToken) Method

Definition

Assembly Broadside.Rendering.WebGL.dll

Starts a render that records in time slices and draws on the GPU when the recording completes.

public WebGLRender BeginRender(DisplayList list, Bitmap target, in Matrix deviceTransform, bool readBack, CancellationToken cancellationToken)

Parameters

list
DisplayList

The display list.

target
Bitmap

The pixels, holding a uniform background on entry (white paper, or transparent).

deviceTransform
Matrix

Default user space to the target's pixels.

readBack
Boolean

Whether the GPU's pixels are copied into target; when false they stay in Canvas until the next render (unless IsInCanvas is false: the software rasterizer drew the render into the target).

cancellationToken
CancellationToken

Stops the render.

Returns

WebGLRender
The render in progress; the caller disposes it.