fg_mapdacs()Win32 DirectX Fastgraph/Light Prototype void fg_mapdacs (void *source, void *dest, int count); Sub fg_mapdacs (source() As Any, dest() As Any, ByVal count As Long) procedure fg_mapdacs (var source, dest; count : integer); Description The fg_mapdacs() function translates RGB color components from the "0 to 63" range used in Fastgraph for DOS to the "0 to 255" range used in Fastgraph for Windows. Parameters source is the name of the array containing the "0 to 63" color components. The first three bytes of this array must contain the red, green, and blue components for the first color, the next three bytes contain the components for the second color, and so forth. The size of the source array must be at least 3*count bytes. dest is the name of the array to receive the "0 to 255" color components. On return, the first three bytes of this array will contain the red, green, and blue components for the first color, the next three bytes will contain the components for the second color, and so forth. The size of the dest array must be at least 3*count bytes. count is the number of sets of RGB color values to translate. Return value none Restrictions none See also
|
 
copyright 2001 Ted Gruber Software, Inc.