PVR hardware flip

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
Newbie
Insane DCEmu
Insane DCEmu
Posts: 171
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sat Jul 27, 2013 1:16 pm
Has thanked: 0
Been thanked: 0

PVR hardware flip

Post by Newbie »

Hi everybody,

I want to know if it is possible to use PVR hardware only (no SH4 bytes processing or intermediate texture caching) to horizontal flip a texture stored in video ram and draw it straight on screen.

Thanks for help.
Attachments
SAMPLE.JPG
SAMPLE.JPG (10.13 KiB) Viewed 667 times
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: PVR hardware flip

Post by BlueCrab »

Swap the U coordinates on your vertices such that the right hand side is 0.0 and the left hand side is 1.0 (assuming that you're drawing the entire texture -- otherwise, adjust as necessary if you're doing something like a sprite sheet).
User avatar
Newbie
Insane DCEmu
Insane DCEmu
Posts: 171
Joined: Sat Jul 27, 2013 1:16 pm
Has thanked: 0
Been thanked: 0

Re: PVR hardware flip

Post by Newbie »

Thanks it works great !
Post Reply