OldSchool Library 1.6.0
Loading...
Searching...
No Matches
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.

Parameters
pixelFormatPixel format of the palette entries. This defines how colors are stored in the palette.
nElementsNumber of entries in the palette. This indicates how many colors are available in the palette.
locationLocation of the palette. This should always be set to OSL_IN_RAM to indicate that the palette is stored in RAM.
dataPointer to the actual raw data representing the color entries in their pixel format.

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