Mail Archives: djgpp/1998/07/16/09:42:17
>Using allegro's do_line() is VERY fast for interpolation (that is,
>calculating all points in-between two given points). But it is limited
>by the type int. Does anyone know of a fast interpolation routine which
>accepts long (thereby allowing for fixed pt.)?
I thought that DJGPP's int was 32-bit anyway.
If you're looking for a fast line routine, do a web search for "Bresenham"
(named afer the bloke who developed a very fast routine).
I've got a pretty fast version, if you don't want to develop your own. Gust
mail me.
James Arthur
jaa AT arfa DOT clara DOT net
- Raw text -