OldSchool Library
|
Structure representing a palette. More...
#include <drawing.h>
Structure representing a palette.
This structure defines a palette used for image processing in OSLib. It holds information about the pixel format, the number of palette entries, the location of the palette, and a pointer to the raw palette data. @struct OSL_PALETTE @param pixelFormat Pixel format of the palette entries. This defines how colors are stored in the palette. @param nElements Number of entries in the palette. This indicates how many colors are available in the palette. @param location Location of the palette. This should always be set to `OSL_IN_RAM` to indicate that the palette is stored in RAM. @param data Pointer to the actual raw data representing the color entries in their pixel format.