Re: [AD] clipping line algorithm

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


> But if _putpixel() is more efficient, we can test the bitmap type to see
> if it allows for _putpixel(), and only otherwise use
> bmp->vtable->putpixel(). I think the correct test would be
>
>     if (is_linear_bitmap(bmp) && _drawing_mode == DRAW_MODE_SOLID)
>        use _putpixel
>     else
>        use bmp->vtable->putpixel

I guess Bob would not be exactly pleased by that. :-)

How do you deal with special screen bitmaps (like that of AllegroGL) that use 
a custom vtable?

-- 
Eric Botcazou




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