This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Changing screen orientation in real time


Changing screen orientation in real time

Postby egarayblas » Jan 11, 2004 @ 2:54pm

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.
-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby ruis » Jan 11, 2004 @ 3:37pm

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
User avatar
ruis
pm Member
 
Posts: 41
Joined: Nov 3, 2002 @ 5:00pm
Location: Sweden


Postby egarayblas » Jan 13, 2004 @ 3:41pm

-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

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 post attachments in this forum