Layer.updateRaster

Renders the layer's output to the raster. Function is called sequentially for all layers. Layers with higher priority number will render to the raster in a later time. Function is marked as @nogc, as render-time allocation has negative impact on performance. For errors, either use asserts for unrecoverable errors, or errorcodes for less severe cases.

class Layer
abstract @nogc
void
updateRaster
(
void* workpad
,
int pitch
,
Color* palette
)

Parameters

workpad void*

The pointer to the workpad's first pixel to be shown. Does not have to be equal with the actual first pixel of the workpad.

pitch int

The difference between lines in the amount of bytes. Must also contain any padding bytes, e.g. pixels, etc.

palette Color*

Pointer to the first element on the palette. Note: Due to the nature of how rendering functions work on vector extensions, arrays are not as feasible as in other places, so that's why pointers are used instead.

Meta