CF_ImageIndexed¶
Category: image
GitHub: cute_image.h
An array of pixels, where each pixel is an index into a palette.
Struct Members | Description |
---|---|
int w |
Width of the image in pixels. |
int h |
Height of the image in pixels. |
uint8_t* pix |
An array of pixels. |
uint8_t palette_len |
The number of elements in the palette . |
CF_Pixel palette[256] |
The color palette for this image. |
Remarks¶
You probably do not need this. In Cute Framework loading images manually is not often necessary, as most games can use CF's Draw API to get sprites onto the screen. However, a good use case is, for example, if you want to implement some custom shader and feed it a texture.