Mail Archives: djgpp/2000/02/24/13:15:04
From: | JAB <jab_joe AT my-deja DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Plotting a 24bit color pixel in Allegro
|
Date: | Thu, 24 Feb 2000 17:03:00 GMT
|
Organization: | Deja.com - Before you buy.
|
Lines: | 36
|
Message-ID: | <893o80$vag$1@nnrp1.deja.com>
|
References: | <8935rr$hs0$1 AT nnrp1 DOT deja DOT com> <m5mabs44vp0k261orhb5ni2k25vc7bh1m2 AT 4ax DOT com>
|
NNTP-Posting-Host: | 161.112.232.10
|
X-Article-Creation-Date: | Thu Feb 24 17:03:00 2000 GMT
|
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)
|
X-Http-Proxy: | 1.0 diaphanous:3128 (Squid/1.1.22), 1.0 x43.deja.com:80 (Squid/1.1.22) for client 161.112.78.136, 161.112.232.10
|
X-MyDeja-Info: | XMYDJUIDjab_joe
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
In article <m5mabs44vp0k261orhb5ni2k25vc7bh1m2 AT 4ax DOT com>,
Damian Yerrick <DONT DOT YOU DOT DAREd_yerrick AT hotmail DOT comSEND DOT SPAM> wrote:
> On Thu, 24 Feb 2000 11:49:15 GMT, JAB <jab_joe AT my-deja DOT com> wrote:
>
> > How do you plot a pixel in 24bit (or 32bit) color with Allegro?
> > I have the image I want on screen in a unsigned long 1D array. I
need
> >to write that to screen as fast as possible. (It's gfx 3D thing I've
> >made and converting to the PC). Before on the good old Acorn what I
was
> >doing was just writing this array to another array that's memory
> >pointer was at the screen address. I know that you can't really do
that
> >on the PC in 24bit color at things like 640 by 480 so I need to find
> >another fast way. Anyone got any words of advice, or at least telling
> >me how to get a 24bit color pixel on the screen.
>
> Look in the Allegro docs for putpixel() and direct memory access.
>
I have. I'm doing
putpixel(screen, x,y,makecol(Rendered[temp].r,Rendere[temp].g,Rendered
[temp].b));
at the moment and it's not working. Well I'll getting an image. But
not in a way that imply working true color to me, because there is no
more then 16 colors on the screen. Could I be missing something?
--
Catch ya later
JAB
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -