RenderWare V2.1

Previous Page Index Next Page

RwInt32

RwSetPaletteEntries(RwInt32 start, RwInt32 length,
RwPaletteEntry *palette, RwPaletteOptions options);

Description

Sets length palette entries of the current RenderWare palette starting at entry start.

Arguments

start First palette entry to set.

length Number of entries to set.

palette Pointer to an array of RwPaletteEntrys.

options A bitfield representing a palette processing operation.

Return Value

The argument length if successful, and 0 otherwise.

Comments

The supported palette options are as follows:

· rwGAMMAPALETTE Gamma correct the palette.

Note: Not all platforms allow the application to overwrite all of the palette. Under Windows for example the first 10 and the last 10 entries are reserved by the system. An attempt to set these system entries will result in an error being returned by this function.

The function RwGetDeviceInfo() can be used to determine the first and last palette entries available to the application.

See Also

RwGetDeviceInfo()

RwGetPaletteEntries()