[ Maverik Level 1 functions ]


mav_paletteTextureSet

Summary

Define a texture entry in a palette.


Syntax

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


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.html>mav_paletteColourSet, mav_paletteMaterialSet.html>mav_paletteMaterialSet


Back to the index page.