DisplayListItem.renderFunc

From version 0.10.0 onwards, each sprites can have their own rendering function set up to allow different effect on a single layer. If not specified otherwise, the layer's main rendering function will be used instead. Custom rendering functions can be written by the user, it requires knowledge of writing pixel shader-like functions using fixed-point arithmetics. Use of vector optimizatons techniques (SSE2, AVX, NEON, etc) are needed for optimal performance.

struct DisplayListItem
@nogc pure nothrow
void function(uint* src, uint* dest, size_t length, ubyte value) renderFunc;

Meta