Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 1:42 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Aug 22, 2009 9:51 am 
Offline

Joined: Sat Aug 22, 2009 9:25 am
Posts: 4
In a few words:

Code:
new Image("some.png",true); //returns a flipped image . OK
new Image("some.png",false);  //returns a flipped image . KO!


This is because then InternalTextureLoader cache index does not take into account the flipped boolean.
    - The first call records the flipped buffer in the map with the key "some.png"
    - The second call records reuse the flipped buffer in the map with the key "some.png"

InternalTextureLoader.getTexture should handle flipped argument the same way as transparent argument.

Why is the image loader flipping the image buffer ? It encourages to have two buffers, one for each flipped image. Shouldn't it be easier to reuse getFlippedCopy ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 15, 2009 6:59 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Fixed in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group