2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 Desc: Graphics function GetRGB32()
8 #include <graphics/view.h>
9 #include "graphics_intern.h"
11 /*****************************************************************************
14 #include <proto/graphics.h>
16 AROS_LH4(void, GetRGB32
,
19 AROS_LHA(struct ColorMap
*, cm
, A0
),
20 AROS_LHA(ULONG
, firstcolor
, D0
),
21 AROS_LHA(ULONG
, ncolors
, D1
),
22 AROS_LHA(ULONG
* , table
, A1
),
25 struct GfxBase
*, GfxBase
, 150, Graphics
)
28 Fill the table with the 32 bit fractional RGB values from the
32 cm - ColorMap structure obtained via GetColorMap()
33 firstcolor - the index of first color register to get (starting with 0)
34 ncolors - the number of color registers to examine and write
36 table - a pointer to an array of 32 bit RGB triplets
39 the ULONG pointed to by table will be filled with the 32 bit
40 fractional RGB values from the colormap
43 table should point to an array of at least 3*ncolors longwords.
50 GetColorMap(), FreeColorMap(), SetRGB4(), LoadRGB4()
51 LoadRGB32(), SetRGB32CM(), graphics/view.h
54 This function depends on the ColorMap->ColorTable structure
58 *****************************************************************************/
64 for (i
= firstcolor
, n
= 0; i
< (ncolors
+firstcolor
); i
++ )
66 ULONG red
, green
, blue
;
68 color_get(cm
, &red
, &green
, &blue
, i
);