delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: DJGPP/Allegro Palette Routines... |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <hgbehso7e3khl1peksit9aurv40qijdtk5@4ax.com> |
References: | <BcDR4.710$R4 DOT 33083 AT news1 DOT news DOT adelphia DOT net> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 30 |
X-Trace: | /ba9Qdxj52as/ZvtXbssfKPS2tYsVtlp9M/g7VN90RnQaXHap1t8Ogq3qe1jZ5h5fX1SkvnZKXts!Bzw69mQDvkdzOWpeDWfCxh+q5QZto92LCIXuOsHsGv8BvaLBoO2J6QZJ0ePW2IaxjHZnVQirSzcZ!9Q9If4Y= |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Mon, 08 May 2000 21:16:14 GMT |
Distribution: | world |
Date: | Mon, 08 May 2000 21:16:14 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Mon, 08 May 2000 17:55:45 GMT, "Justine Szczap" <jmszczap82 AT adelphia DOT net> wrote: >Hi, > I'm new to DJGPP and Allegro. Can someplease please give at least a fair >example of how to use the palette routines. I'm not sure how the whole >structure thing works. Please help... Thanks in advance... Look at some of the "palette rotation" examples in /.../allegro/examples/ex*.c Play with them until you get the hang of: 1. storing palette values in an array 2. set_palette() PALETTE pal; // means RGB pal[256]; pal[i].r = pal[i].b = 63; pal[i].g = 0; set_palette(pal); -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |