Mail Archives: djgpp/2001/01/27/22:36:31.1
In article <3a7384c5_1 AT corp DOT newsfeeds DOT com>,
"23yrold3yrold" <cbarry AT pangea DOT ca> wrote:
> "Norberto Alfredo Bensa" <ceo AT nbensacomputers DOT com> wrote in message
> news:OE24CKDkb9pPFR6sKBE000007e1 AT hotmail DOT com...
> > Hello
> >
> > From: "23yrold3yrold" <cbarry AT pangea DOT ca>
> > >
> > > Well, look at that. But what about the create_bitmap() functions and
> all?
> > > I want to know how to write my own ....
> >
> > Take a look at allegro/src/graphics.c, bmp.c, blit.c
>
> Nope. Although from getting a little deeper in the files, it seems blitting
> and such requires assembly to access screen coordinate values. True?
You can draw to memory bitmaps (or linear screens) using screen->line[0] as a
pointer to a series of pixels.
or
BITMAP *bmp;
bmp = create_bitmap(16, 16);
*((unsigned char *bmp->line[0])+1) = makecol(0,0,255);
Sets the second pixel to red.
Tom
Sent via Deja.com
http://www.deja.com/
- Raw text -