I am creating a class for creating window for multiple platforms including Windows, Mac, Linux, iOS and Android
. I want my class to work the following way
MyWindow window( "My Window", 480, 320 );
while( window.IsRunning() )
{
// do something
}
However, on iOS, we are needed to call UIApplicationMain
after main is called which takes care of all the internal stuff and the main loop. I was wondering if there was any way to bypass UIApplicationMain
so that I could get control of the main loop on iOS? A working code example would be of great help.
Thank you.