delorie.com/archives/browse.cgi | search |
From: | "DeHackEd" <notgiven AT out DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <77tlc8$hhh$1 AT remarQ DOT com> |
Subject: | Re: 24-bit color using Allegro |
Lines: | 22 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.0810.800 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.0810.800 |
Message-ID: | <Nnuo2.348$jW2.33@tundra.ops.attcanada.net> |
Date: | Sun, 17 Jan 1999 18:27:25 -0500 |
NNTP-Posting-Host: | 142.194.222.143 |
X-Trace: | tundra.ops.attcanada.net 916615789 142.194.222.143 (Sun, 17 Jan 1999 23:29:49 GMT) |
NNTP-Posting-Date: | Sun, 17 Jan 1999 23:29:49 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
The simple solution is this: set_color_depth( either 8,15,16,24 or 32); And that's it. Setting a graphics mode will use that colour depth, loaded bitmaps will use whatever is used (not sure how palette paramater is used though...) and create_bitmap defaults to the specified colour depth. A more detailed document is on the Allegro web page. Twilight Knight <what4 AT fuse DOT net> wrote in message news:77tlc8$hhh$1 AT remarQ DOT com... >I'm kinda new to higher than 8-bit color, so setting up 24 bit color seems >to evade me. Any comments on how I could set up 24 bit color, and please >add something on blitting with 24 bit color. > >Thanx > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |