forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Flipping the Screen (actually rotating 180 degrees)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
F9zDark



Joined: 02 Apr 2005
Posts: 127

PostPosted: Fri Oct 06, 2006 5:15 am    Post subject: Flipping the Screen (actually rotating 180 degrees) Reply with quote

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?
Back to top
View user's profile Send private message AIM Address
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Fri Oct 06, 2006 5:54 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
F9zDark



Joined: 02 Apr 2005
Posts: 127

PostPosted: Fri Oct 06, 2006 6:38 am    Post subject: Reply with quote

Alright I'll see what I can come up with.
Back to top
View user's profile Send private message AIM Address
shifty



Joined: 16 Jun 2005
Posts: 32
Location: MIT

PostPosted: Sun Oct 29, 2006 1:55 am    Post subject: rotate screen 180 degrees Reply with quote

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 :)
Back to top
View user's profile Send private message Visit poster's website
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Oct 29, 2006 5:15 am    Post subject: Reply with quote

Wouldn't something like this accomplish the task?

Code:
sceGumMatrixMode(GU_VIEW);
sceGumLoadIdentity();
sceGumRotateZ(GU_PI);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group