SetPaletteData

Programs the hardware color palette in VBE/Core compatible mode

Declaration

void GA_VBEFuncs::SetPaletteData(
    GA_palette *pal,
    N_int32 num,
    N_int32 index,
    N_int32 waitVRT)

Prototype In

snap/graphics.h

Parameters

pal

Pointer to the palette data to program

num

Number of palette entries to program

index

Index of first entry to program

waitVRT

Wait for vertical retrace flag

 

Description

This function is similar to SetPaletteData, however the palette data is always programmed into the hardware palette verbatim, and no palette translation occurs. Hence these functions are compatible with the way the VESA VBE/Core palette functions work, which is different to the native SNAP way of handling palette programming.

See Also

SetBytesPerLine, Set8BitDAC, GetPaletteData

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com