www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/01/02:54:54

From: demandrd AT compusmart DOT ab DOT ca (Demandred)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Any Allegro users want to help?
Date: Wed, 01 Jan 1997 01:12:48 GMT
References: <01bbf45d$777df560$932449c2 AT default> <32C74003 DOT 36FC AT avalon DOT net> <32c83f77 DOT 1314949 AT news DOT ucalgary DOT ca>
NNTP-Posting-Host: remote533.compusmart.ab.ca
Message-ID: <32c9ba25.0@ntnews.compusmart.ab.ca>
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

fdschnap AT acs DOT ucalgary DOT ca (Paul Szuch) wrote:

>On Sun, 29 Dec 1996 20:07:31 -0800, Kevin Ivarsen
><ivarneli AT avalon DOT net> wrote:

>SNIP!
>>I hope this helps.  Feel free to mail me with any more Allegro questions.  It's hard to 
>>get used to, but it's a WONDERFUL library - incredibly fast, VERY usefull functions, 
>>etc. BTW - have you checked out the demo game yet? :)
>>
>>-Kevin Ivarsen

>As you volunteered...
> what does the heck does d do in do_line?

>void do_line(BITMAP *bmp, int x1, y1, x2, y2, int d, void (*proc)());
>   Calculates all the points along a line from point (x1, y1) to
>(x2,y2), calling the supplied function for each one. This will be
>passed a copy of the bmp parameter, the x and y position, and a copy
>of the d parameter, so it is suitable for use with putpixel().

Granted, *I* didn't volunteer, but...

Since putpixel() takes four parameters (BITMAP *bmp, int x, int y, int
color), I'd guess that int d is just a sort of "scratch pad" where you
can put the color value for putpixel() if you want.  I'm not sure how
this works when calling functions that only take 3 params, or
parameters that aren't ints...

- Raw text -


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