Mail Archives: djgpp/1997/09/30/21:16:35
From: | Vic <tudor AT cam DOT org>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro: scanline functions (Shawn?)
|
Date: | Tue, 30 Sep 1997 18:40:47 -0400
|
Organization: | Communications Accessibles Montreal, Quebec Canada
|
Lines: | 15
|
Message-ID: | <34317FEF.586D@cam.org>
|
NNTP-Posting-Host: | dynappp-179.hip.cam.org
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I know some people are complaining allegro's spped is not great,
especially 3D. And I know why: it is too general. For example, after
tweaking with my own flat triangle drawer, for 10000 iterations it took
185 clock ticks while allegro took 210 (my first function took 245). My
drawer is a simple one, made for triangles, while allegro uses the same
edge-table drawer for all polygons.
Now it would be easy to extend my triangle drawer in 3D, but I don't
want to write the scanline function now. Could I use the allegro
scanline drawers? if yes, what are the parameters to be passed? does it
do clipping? etc.
Thanx,
--
--> http://www.cam.org/~tudor <--
Go ahead and build another Messiah
We dig another grave...
- Raw text -