KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

Enable or disable U/V flipping on the PVR More...

Macros

#define PVR_UVFLIP_NONE   0
 No flipped coordinates.
 
#define PVR_UVFLIP_V   1
 Flip V only.
 
#define PVR_UVFLIP_U   2
 Flip U only.
 
#define PVR_UVFLIP_UV   3
 Flip U and V.
 

Detailed Description

Enable or disable U/V flipping on the PVR

These flags determine what happens when U/V coordinate values exceed 1.0. In any of the flipped cases, the specified coordinate value will flip around after 1.0, essentially mirroring the image. So, if you displayed an image with a U coordinate of 0.0 on the left hand side and 2.0 on the right hand side with U flipping turned on, you'd have an image that was displayed twice as if mirrored across the middle. This mirroring behavior happens at every unit boundary (so at 2.0 it returns to normal, at 3.0 it flips, etc).

The default case is to disable mirroring. In addition, clamping of the U/V coordinates by PVR_UVCLAMP_U, PVR_UVCLAMP_V, or PVR_UVCLAMP_UV will disable the mirroring behavior.

Macro Definition Documentation

◆ PVR_UVFLIP_NONE

#define PVR_UVFLIP_NONE   0

No flipped coordinates.

◆ PVR_UVFLIP_U

#define PVR_UVFLIP_U   2

Flip U only.

◆ PVR_UVFLIP_UV

#define PVR_UVFLIP_UV   3

Flip U and V.

◆ PVR_UVFLIP_V

#define PVR_UVFLIP_V   1

Flip V only.