Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

GetColorMap

Allocate and initialize Colormap

Declaration

Source position: agraphics.pas line 2075

function GetColorMap(

  Entries: LongInt

):PColorMap;

Arguments

Entries

  

Number of entries for this colormap

Function result

The pointer value returned by this routine, if nonzero, may be stored into the ViewPort.ColorMap pointer. If a value of 0 is returned, the system was unable to allocate enough memory space for the required data structures.

Description

Allocates, initializes and returns a pointer to a ColorMap data structure, later enabling calls to SetRGB4()/SetRGB32() and LoadRGB4()/LoadRGB32() to load colors for a view port. The ColorTable pointer in the ColorMap structure points to a hardware specific colormap data structure. You should not count on it being anything you can understand. Use GetRGB4()/GetRGB32() to query it or SetRGB4CM()/SetRGB32CM() to set it directly.


Documentation generated on: 2021-07-30