Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileVsetRGB()VgetRGB() XBIOSSyntaxVOID VgetRGB( index, count, rgb )
WORD index, count;
RGB *rgb;
Function VgetRGB() returns palette information as 24-bit RGB data.
Opcode 94 (0x5E)
Availability Available if the '_VDO' cookie has a value of 0x00030000 or
greater.
Parameters index specifies the beginning color index in the palette to
read data from. count specifies the number of palette
entries to read. rgb is a pointer to an array of RGBs which
will be filled in by the functions. RGB is defined as:
typedef struct
{
BYTE reserved;
BYTE red;
BYTE green;
BYTE blue;
} RGB;
Binding pea rgb
move.w count,-(sp)
move.w index,-(sp)
move.w #$5E,-(sp)
trap #14
lea 10(sp),sp
Comments VgetRGB() is device-dependent in nature and it is therefore
recommended that vq_color() be used instead.
See Also VsetRGB()