OldSchool Library
OSL_PALETTE Struct Reference

Structure representing a palette. More...

#include <drawing.h>

Data Fields

short pixelFormat
 Pixel format of palette entries.
 
short nElements
 Number of entries.
 
short location
 Location of the palette (always use OSL_IN_RAM)
 
void * data
 Actual (raw) data, representing color entries in their pixel format.
 

Detailed Description

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.

The documentation for this struct was generated from the following file: