@Atilim,
Some texture packing software sometimes add images that are rotated, so when reading that rectangle and creating a texture region and then a bitmap from it is easy, but because the iamge is rotated, setting the rotation by -90 or 270 orients the image properly. The issue is that when the image is rotated, it's co-ordinates are different, in the sense if the images are positioned at xx, yy the rotated images display at a different xx and yy than the one specified. Is there a way to align/orient them, the easier way would be to use non-rotated images.
Comments
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps