Download Pluto 5 Manual
Transcript
Page 91 3.7.16.3 Return Value None. 3.7.16.4 Example Write to the screen at current cursor position. VPutStr(&CremsonDevice,”Hello World”); 3.7.17 Loadpalette, LoadCpalette, loadMBPalette void void void LoadCPalette(const DEVICE* dev,const RGB* palette) LoadMBPalette(const DEVICE* dev,const RGB* palette) LoadPalette(const DEVICE* dev,const RGB* palette) 3.7.17.1 Description Load the given colour palette. Colour palettes are used in 256 colour mode. The Cremson Device has two colour palettes: one for the Middle/ Base Layers, and one for the Console Layer. There are three similar functions: LoadCPalette - loads the Console Layer palette LoadMBPalette - loads the Middle/Base Layer palette LoadPalette - loads both palettes identically 3.7.17.2 Parameters 3.7.17.2.1 Parameter1 – dev Pointer to the video device driver structure. 3.7.17.2.2 Parameter2 – palette Pointer to an array of 256 RGB structures which define the colours of the palette. 3.7.17.3 Return Value None. 3.7.17.4 Example LoadPalette(palette_table); 3.7.18 GetPalette, GetMBPalette, GetCPalette void void void GetPalette(const DEVICE* dev,UBYTE entry,RGB* col) GetMBPalette(const DEVICE* dev,UBYTE entry,RGB* col) GetCPalette(const DEVICE* dev,UBYTE entry,RGB* col) 3.7.18.1 Description Read the red, green, blues values of the colour at a given palette index. GetPalette (obsolete) reads the Middle/Base Layer palette GetMBPalette reads the Middle/Base Layer palette GetCPalette reads the Console Layer palette 3.7.18.2 Parameters 3.7.18.2.1 Parameter1 – dev Pointer to the video device driver structure. 3.7.18.2.2 Parameter3 – entry Position in the palette the colour values are to be read from. 3.7.18.2.3 Parameter3 – col Pointer to an RGB structure which the RGB values are to be written to. Document No. 80-16040 Issue 6r1 HEBER LTD