Re: [AD] update bitmap drawing after addition of transformations

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


On Fri, 2010-08-13 at 10:57 +1000, Peter Wang wrote:
> 
> I have not benchmarked it yet, but I imagine the performance loss will be
> significant.  If it is, can we not make the memory draw_bitmap_region
> implementation infer the rotate/scale special cases from the transformation
> matrix and call the specialised functions?
> 

We can check for identity transform and for only scaled transform quite
easily I think.

Not sure about rotation. Would there be a big difference for it? What
the rasterizer has to do in both cases is draw a textured quad... so I
hope it doesn't really matter.

(My long-term plan actually was to get rid of this archaic
parallelogram_map function completely - a software polygon rasterizer
doesn't fit into the core lib in my picture of how things should be
organized :P)

-- 
Elias Pschernig <elias.pschernig@xxxxxxxxxx>





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