Skip to content

Sprite2bpp ​

Struct

Source: Renderer.h

Description ​

Sprite descriptor for 2bpp (4-color) multi-color sprites.

Properties ​

NameTypeDescription
dataconst uint8_t*Pointer to 2bpp bitmap data.
paletteconst Color*Pointer to color palette (max 4 colors).
widthuint8_tSprite width in pixels.
heightuint8_tSprite height in pixels.
paletteSizeuint8_tNumber of colors in the palette.
rowMinXconst uint8_t*Optional per-row opaque span (start col). nullptr = full bbox.
rowMaxXconst uint8_t*Optional per-row opaque span (one past last col). nullptr = full bbox.

Released under the MIT License.