Imagination PowerVR SDK Blog

Set flag for vertical flip



I want to save the texture using saveFileLegacyPVR and need to set the flag for vertical flip also.
Is there any way to set the vertical flip flag?



In PVR file metadata the fourCC PVR3, key 3, is a set of three byte values that define the orientation of the texture data. The second value represents the Y axis, so flipping this value will invert the data vertically.

For more detail, please see the PVR file format specification in the documentation included in the PowerVR SDK.


Thanks it worked by setting the MetaData.


By using the setOrientation(ePVRTOrientUp) also I get the same result. May be internally it is doing the same by setting the MetaData. Is it right?