delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/16/05:54:04

From: Victor jetten <jeten AT laon DOT inra DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: all is polygon in Allegro??
Date: Wed, 14 Jan 1998 15:01:41 -0800
Organization: INRA
Lines: 14
Message-Id: <34BD43D5.EA2F15B4@laon.inra.fr>
Nntp-Posting-Host: 192.93.98.129
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

hi,
a) if you look at commands like triangle, quad etc, all functions call
polygon with 3 edges, 4 edges etc. I agree that this ellegant, but is it
fast? It seems that this would use a lot of unnecessary overhead. Is
this so?
b) in polygon.c all drawing routines, float or fixed, are converted to
fixed point in the structure POLYGON_EDGE. Again, why? This just seems
to lead to endless ftofix and other conversions, while finally in
draw_polygon_segment, everything is converted back to int and guiven to
the drawer routine.
is this historical?
thanks for replying, Victor



- Raw text -


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