Re: [AD] clipping line algorithm

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


Eric Botcazou wrote:
(2) is obviously false. I'd rewrite it as:

(2') Every drawing function should use (or optimize based on) the vtable, except if it is specifically intended to bypass it (e.g. _putpixel).

Good! Then we can do the following: put a flag in the vtable, which indicates whether putpixel and _putpixel/bmp_read* have the same meaning for this type of bitmap. This allows us and users to use bmp_read* for speed, as they were intended for, while not breaking anyone's coding paradigms. Is this OK?

Sven





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