2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <proto/graphics.h>
14 static const char THIS_FILE
[] = __FILE__
;
17 /*****************************************************************************
21 AROS_LH2(void, LoadRGB32
,
24 AROS_LHA(struct ViewPort
*, vp
, A0
),
25 AROS_LHA(const ULONG
*, table
, A1
),
28 struct GfxBase
*, GfxBase
, 147, Graphics
)
31 Load RGB color values from table.
35 table - pointer to table of records
36 1 Word with the number of colors to load
37 1 Word with the first color to be loaded.
38 3 Longwords representing a left justified 32 bit RGB triplet.
39 The list is terminated by a count value of 0.
45 ULONG table[] = { 1l << 16 + 0 , 0xffffffff , 0 , 0 , 0}
46 ULONG table[] = { 256l << 16 + 0 , r1 , g1 , b1 , r2 , g2 , b2 , ..... 0}
55 27-11-96 digulla automatically created from
56 graphics_lib.fd and clib/graphics_protos.h
58 *****************************************************************************/
63 ASSERT_VALID_PTR_OR_NULL(table
);
65 /* it is legal to pass a NULL table */
71 /* table is terminated by a count value of 0 */
73 while ((count
= (*table
) >> 16))
77 first
= (*table
) & 0xFFFF;
81 for (t
= 0; t
< count
; t
++)
92 } /* while (*table) */