home *** CD-ROM | disk | FTP | other *** search
- Path: news.genie.net!usenet
- From: i.einman@genie.com (IAN J. EINMAN)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: LoadRGB32()
- Date: 9 Jan 1996 04:28:37 GMT
- Organization: via GEnie Services (1-800-638-9636 or info@genie.com)
- Sender: i.einman@genie.com (IAN J. EINMAN)
- Message-ID: <4csqtl$ob3@rock101.genie.net>
- NNTP-Posting-Host: rock103.is.ge.com
-
- It needs, the viewport, and a table in a certain format:
-
- A series of records, like this...
-
- dc.w (number of colors to load)
- dc.w (first color)
- dc.l r, g, b, ... (left justifies fraction)
-
- repeat this as much as necessary; terminate with a count value of zero.
-
- For example:
-
- unsigned long junk[] =
- {
- 2<<16 | 4,
- 0xFFFFFFFF, 0x7FFFFFFF, 0x00000000,
- 0x00000000, 0x00000000, 0xA0000000,
- 0
- }
-
- LoadRGB32(viewp, junk);
-
- will make color 4 be orange and color 5 be blue... The left justified fraction
- is importand, just shift the colors over three bytes if they are 8 bit descriptors
- like such found in an IFF ILBM.
-
-