Re: [AD] Optimized rotation routine

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


In reply to Sven Sandberg <ssven.geo@xxxxxxxxxx>:
>Also, what is sensible to do when scale<0 in
>`rotate_scaled_sprite()' & co? Draw flipped or don't
>draw at all?

In math, a negative scale factor means that the object being enlarged is
rotated by pi around the origin of the enlargement before actually being
enlarged. So a negative scale is sensible.

If, however, Allegro flips the sprite rather than rotating it, then I
would stick with that behaviour.

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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