Hi !!!
I want to change orientation runtime.
Is it posible?
I made following:
After orientation change via settings dialog my program saves the changed orientation into the settings file, it sets the changeOrientationFlag and calls Shutdown().
If orientation was changed the program creates instance of myGame class again.
In the emulator it works without problems, but
when i ran my project in the device and changed orientation the instance was not created again.
Why?
Please help.
I want to change orientation runtime.
Is it posible?
I made following:
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
_Module.Init( 0, hInstance );
again:
myGame * game = myGame::inst();
game->Run();
if (game->changeOrientationFlag) { game->freeInst(); goto again; }
else { game->freeInst(); }
return 0;
}
After orientation change via settings dialog my program saves the changed orientation into the settings file, it sets the changeOrientationFlag and calls Shutdown().
If orientation was changed the program creates instance of myGame class again.
In the emulator it works without problems, but
when i ran my project in the device and changed orientation the instance was not created again.
Why?
Please help.