delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/27/22:36:31.1

From: Tom St Denis <stdenis AT compmore DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: BITMAP info
Date: Sun, 28 Jan 2001 03:20:15 GMT
Organization: Deja.com
Lines: 34
Message-ID: <95035b$t0e$1@nnrp1.deja.com>
References: <3a730d46_3 AT corp DOT newsfeeds DOT com> <94vkii$i3n$1 AT nnrp1 DOT deja DOT com> <3a736592_3 AT corp DOT newsfeeds DOT com> <OE24CKDkb9pPFR6sKBE000007e1 AT hotmail DOT com> <3a7384c5_1 AT corp DOT newsfeeds DOT com>
NNTP-Posting-Host: 24.112.8.23
X-Article-Creation-Date: Sun Jan 28 03:20:15 2001 GMT
X-Http-User-Agent: Mozilla/5.0 (Windows 98; U) Opera 5.01 [en]
X-Http-Proxy: 1.1 x69.deja.com:80 (Squid/1.1.22) for client 24.112.8.23
X-MyDeja-Info: XMYDJUIDtomstdenis
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019