Skip to content

MultiSprite

Struct

Source: Renderer.h

Description

Multi-layer, multi-color sprite built from 1bpp layers.

A MultiSprite combines several SpriteLayer entries that share the same width and height. Layers are drawn in array order, allowing more complex visuals (highlights, outlines) while keeping each layer 1bpp.

This design keeps compatibility with the existing Sprite format while enabling NES/GameBoy-style layered sprites.

Properties

NameTypeDescription
widthuint8_tSprite width in pixels (<= 16).
heightuint8_tSprite height in pixels.
SpriteLayerconstPointer to array of layers.
layerCountuint8_tNumber of layers in the array.

Released under the MIT License.