mav_paletteWarn - Define whether to warn on redefinition or not

[ Maverik Level 1 functions ]

#

mav_paletteWarn

mav_paletteWarnSet, mav_paletteColourWarnSet, mav_paletteMaterialWarnSet, mav_paletteTextureWarnSet, mav_paletteLightWarnSet, mav_paletteLightingModelWarnSet, mav_paletteFontWarnSet, mav_paletteColourIndexWarnSet, mav_paletteMaterialIndexWarnSet, mav_paletteTextureIndexWarnSet, mav_paletteLightIndexWarnSet, mav_paletteFontIndexWarnSet

## Summary

Define whether to warn on redefinition or not

## Syntax

void mav_paletteWarnSet(MAV_palette *p, int v);

void mav_paletteColourWarnSet(MAV_palette *p, int v);

void mav_paletteMaterialWarnSet(MAV_palette *p, int v);

void mav_paletteTextureWarnSet(MAV_palette *p, int v);

void mav_paletteLightWarnSet(MAV_palette *p, int v);

void mav_paletteLightingModelWarnSet(MAV_palette *p, int v);

void mav_paletteFontWarnSet(MAV_palette *p, int v);

void mav_paletteColourIndexWarnSet(MAV_palette *p, int idx, int v);

void mav_paletteMaterialIndexWarnSet(MAV_palette *p, int idx, int v);

void mav_paletteTextureIndexWarnSet(MAV_palette *p, int idx, int v);

void mav_paletteLightIndexWarnSet(MAV_palette *p, int idx, int v);

void mav_paletteFontIndexWarnSet(MAV_palette *p, int idx, int v);

- MAV_palette *p
  Palette to set

- int idx
  Colour, material, texture, light or font index

- int v
  Whether to warn on redefinition or not

## Description

These functions define whether or not a warning is generated if the contents of a palette are redefined. This warning can be on a per-palette basis, per-type (colour, material, texture, light or font) or per-type-index basis.

Back to the index page.