[ Maverik Level 1 typedefs ]

#

MAV_surfaceParams

## Summary

Surface parameters.

## Syntax

    typedef struct {
      int mode;
      int colour;
      int material;
      int texture;
    } MAV_surfaceParams;

## Description

Every default object contains a field of type `MAV_surfaceParams`, which determines ``what colour'' is used to render the object. `mode` can take one of the following values:

- `MAV_COLOUR` an ambient colour

- `MAV_MATERIAL` a material type

- `MAV_TEXTURE` a decal texture

- `MAV_LIT_TEXTURE` a texture modulated by the material

- `MAV_BLENDED_TEXTURE` a blending of the material and texture depending on the texture's alpha value (0=material, 1=texture).

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_surfaceParamsNew.html>mav_surfaceParamsNew

Back to the index page.