This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_Palette

A structure that contains palette information.

Data Fields

int

ncolors

the number of colors in the palette

SDL_Color*

colors

an array of SDL_Color structures representing the palette

<style="color: #808080;">Uint32

<style="color: #808080;">version

<style="color: #808080;">incrementally tracks changes to the palette (internal use)

<style="color: #808080;">int

<style="color: #808080;">refcount

<style="color: #808080;">reference count (internal use)

Remarks

Each pixel in an 8-bit surface is an index into the colors field of the SDL_Palette structure stored in SDL_PixelFormat. An SDL_Palette should never need to be created manually. It is automatically created when SDL allocates an SDL_PixelFormat for a surface. The colors values of an SDL_Surface's palette can be set with SDL_SetPaletteColors().

SDL_PixelFormat
SDL_AllocPalette
SDL_FreePalette
SDL_SetPaletteColors

CategoryStruct, CategoryPixels


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.