PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Changing screen orientation in real time

Can I change my game's orientation in real time using CGapiApplication? Can anyone share some sample code on how to do this?

Thanks in advance.
Hello

The simple demo program included with GapiDraw shows how to change display orientation in real time using CGapiApplication::SetDisplayMode().

What happens is that after CGapiDisplay::SetDisplayMode() is called, the two CreateSurfaces methods in CGapiApplication is called to make all surfaces match the orientation of the display.

//Erik
Thanks ruis! I can't believe I missed it! I was looking through all the advanced samples all the while and I never thought it will be in the "simple" demo. :)