Re: [AD] Re: Re: Line clipping bug found

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, 2004-01-08 at 21:25, Doug Eleveld wrote:
> Yes, the current line clipping approach is faster,
> especially for line (-100000000, ....).  I can
> certainly see the attraction to use such a method. 
> But it is not pixel correct.
> 
> It might be 'easy' to get the expected behavior using
> do_line, but it is even easier to get unexpected
> behavior.  Personally I think it should be 'easiest'
> to get pixel correct behavior and a little harder to
> get 'fastest but inaccurate' behavior.  Usually
> referred to as the priniciple of the least suprise I
> believe.
> 

Yeah. As I said - ideally someone would add code to the clipping to also
clip the Bresenham line drawer state. So we would always have fast and
correct code :)

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/