NAME

MgetColourPalette - get the colour palette

SYNOPSIS

#include "csf.h"

int MgetColourPalette
(
	MAP *m,
	UINT2 *pal
);

PARAMETERS

MAP *m
the map to get it from
UINT2 *pal
the resulting palette

DESCRIPTION

MgetColourPalette fills the pal argument with a number of rgb tupels of the colour palette. Each tupel is a sequence of 3 UINT2 words describing red, green and blue. Thus if the map has 8 colour palette entries it puts 24 UINT2 values in pal.

RETURNS

0 if not available or in case of error, nonzero otherwise

SEE ALSO

MgetHistorySize , MgetDescriptionSize , MgetNrColourPaletteEntries , MgetNrGreyPaletteEntries , MgetDescription , MgetHistory , MgetGreyPalette , MputDescription , MputHistory , MputColourPalette , MputGreyPalette