[ Maverik Level 1 functions ]


mav_surfaceParamsNew

Summary

Create a new set of surface parameters.


Syntax

MAV_surfaceParams *mav_surfaceParamsNew(int mode, int colour, int material, int texture);


Description

This function creates and returns a new set of surface parameters, which when used (by mav_surfaceParamsUse) controls "what colour" is subsequent used to render objects in a window.

mode can take one of the following values:

The other fields, colour, material and texture, respectively specify which colour, material and/or texture index to use from the palette associated with the window in which the object is being drawn. Only for the case of MAV_LIT_TEXTURE and MAV_BLENDED_TEXTURE does more than one index need to be given.


See also

MAV_surfaceParams.html>MAV_surfaceParams, mav_surfaceParamsUse.html>mav_surfaceParamsUse, mav_paletteColourSet.html>mav_paletteColourSet, mav_paletteMaterialSet.html>mav_paletteMaterialSet, mav_paletteTextureSet.html>mav_paletteTextureSet


Back to the index page.