[AD] [ alleg-Bugs-3484535 ] Projection transform should be a bitmap local state

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


Bugs item #3484535, was opened at 2012-02-04 21:16
Message generated for change (Tracker Item Submitted) made by siegelord
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3484535&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: 5.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: SiegeLord (siegelord)
Assigned to: Nobody/Anonymous (nobody)
Summary: Projection transform should be a bitmap local state

Initial Comment:
Right now in 5.1 the projection transform is a display local state. This leads to unexpected behaviour when dealing with al_set_target_bitmap which modifies it. This is doubly an issue in calls where al_set_target_bitmap is used internally, such as in al_draw_text (in ttf addon). You might call al_draw_text and then find that your projection matrix has been irrevocably lost without warning.

I propose that the projection transform should be bitmap local, just like the standard transform is. al_set_target_bitmap will then simply set the transformation stored inside the bitmap, like it does right now with the standard transform. The bitmap transform will be initialized using al_ortho_transform upon bitmap creation.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3484535&group_id=5665




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