Mail Archives: djgpp/1998/03/15/16:48:32
| From: | Vic <tudor AT cam DOT org>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Re: color depth in allegro
|
| Date: | Sun, 15 Mar 1998 16:29:49 +0200
|
| Organization: | Communications Accessibles Montreal, Quebec Canada
|
| Lines: | 9
|
| Message-ID: | <350BE5DD.3857@cam.org>
|
| References: | <350C2987 DOT 7ED62B4E AT geocities DOT com>
|
| NNTP-Posting-Host: | dialup-716.hip.cam.org
|
| Mime-Version: | 1.0
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
chakster AT geocities DOT com wrote:
>
> Is it possible to have color depths greater than 256 with allegro?
Read the docs. Basically you put set_color_depth(depth) before the mode
set (where depth is 8,15,16,24 or 32).
Then you use makecol(RED,GREEN,BLUE) to make the color (as in
putpixel(bitmap,x,y,makecol(100,200,100)); )
--
--> http://www.cam.org/~tudor <--
- Raw text -