mav_paletteTextureSet(3)

NAME
mav_paletteTextureSet - Define a texture entry in a palette.

LEVEL
Maverik Level 1

SYNTAX
int mav_paletteTextureSet(MAV_palette *p, int index, char *filename);

ARGUMENTS
Palette to set. Index of texture to define, in range 0..mav_opt_maxTextures (default 150); The name of the file containing the texture.

DESCRIPTION
This function defines texture entry index of palette p from file filename. Recognised texture file formats are PPM (raw or ASCII encodings), and TIFF (not on all platforms).

The function returns MAV_TRUE if the texture was successfully read and MAV_FALSE if the operation failed.

SEE ALSO
mav_paletteColourSet, mav_paletteMaterialSet