Imagination PowerVR SDK Blog

Set flag for vertical flip


#1

Hello,

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?

Thanks,
Anoop


#2

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.


#3

Thanks it worked by setting the MetaData.


#4

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?