Mail Archives: djgpp/1997/01/18/01:06:45
From: | Rob Vasquez <digital DOT fx AT worldnet DOT att DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro Palette functions
|
Date: | Fri, 17 Jan 1997 21:16:51 -0500
|
Organization: | Digital Fx
|
Lines: | 24
|
Message-ID: | <32E03293.2908@worldnet.att.net>
|
NNTP-Posting-Host: | 207.147.60.98
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I've set up and maked (made?) Allegro, and the only functions I can't
get to work are the palette functions.
There is a function:
set_color(int index, RGB*);
RGB is a structure as:
typedef struct RGB
{
unsigned char r, g, b;
} RGB;
Can someone send me some code that will work with this function? I
tried making a FOR loop and having it fade in colors, but to no avail.
The only other way I can do this is to use GRX, which is a waste to
include 'grx.h' and link 'grx.lib' for just one function.
--
Rob Vasquez
Digital Fx '97
email: digital DOT fx AT worldnet DOT att DOT net
- Raw text -