Page 1 of 1

I need guide regarding change orientation on-the-fly

PostPosted: Oct 12, 2006 @ 5:46pm
by letmein
I searched the forums and found several posts discussed this, they mentioned:



PocketFrog currently doesn't provide a method for this. But you can probably fake it by destroying the Display object inside the framework (class Game) and re-creating it.


The problem with you not beeing able to reinit the display has to do with the global pointers in pocketpc.cpp not beeing reset when the display gets destroyed. Please look at the following two links as they contain the info you need


can anyone provide me one sample for how to do this? I do delete/reset the global pointers in pocketpc.cpp, but still failed to change orientation on-the-fly

PostPosted: Oct 16, 2006 @ 8:50am
by letmein
finally I got this issue resolved. I may post detailed information later. cheers!

Check this demo, click screen will change the screen between portrait and landscape on-the-fly. The only problem is: after change the orientation several times, the performance will drop. You may check the difference between FPS. I am now debuging this issue...