Flipping the Screen (actually rotating 180 degrees)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Flipping the Screen (actually rotating 180 degrees)

Post by F9zDark »

Hello, I am working on an application that would benefit highly from being able to flip the PSP's screen 180 degrees. I did some searches and research but came to dead ends. Can anyone point in the right direction as to how I could accomplish this?
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Flipping 180 degrees doesn't explain it well.

Are you wanting to truly flip horizontally or vertically, or are you wanting to rotate?

[EDIT] Just saw the title stating rotate, just change the U/V co-ordinates to what you need.
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

Alright I'll see what I can come up with.
shifty
Posts: 32
Joined: Thu Jun 16, 2005 8:59 am
Location: MIT
Contact:

rotate screen 180 degrees

Post by shifty »

hi!

I wonder if you mean "rotate the virtual image 180 degrees" ?

This would be cool for some games, I think, too. especially, two-player
ones.

I don't know of any inherent ability to do this in PSP, but *I* think it could
be best achieved by writing wrappers of all the graphics functions you
expect to utilize. There would perhaps be a global flag to select
rotate or not. It's pretty tedious, I agree, but I think it would be re-usable
code. If I ever have occasion to do it, I'll post my version :)
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Wouldn't something like this accomplish the task?

Code: Select all

sceGumMatrixMode(GU_VIEW);
sceGumLoadIdentity();
sceGumRotateZ(GU_PI);
Post Reply