Quote: "In fact don't set a ratio at all."
I'm not talking about setting a ratio. There is a natural ratio of the device itself. And there is the ratio of my desired app size. For my app, and many others, the size must be constant.
Quote: "I don't see why this is necessary."
Forcing a single orientation that you want the device to start up in is not done only in the AppGameKit code. Both iOS and Android have settings in project files that dictate how it starts up and how it responds to orientation changes. If you haven't tried to do this, you haven't run into the issue. My WIP must run in exactly one orientation because of the way it is played and it took a lot of work figuring out all the things needed to accomplish this. For Android, the basic app was okay, but there was a problem if I wanted to minimize the black screen on startup (there is one no matter how quickly you set your own splash screen in code) with an AGKSplash.png file. When I added that I discovered that, even if my device was in landscape, Android assumed portrait to start.
Unless I made the right changes in AndroidManifest.xml.
Quote: "Ratios are irrelevant if you set virtual res to the device hardware."
That is not correct at all. If an app is created for iPhone resolution, using virtual resolution as I do, then the height to width ratio is different when run on an iPad and there are black bars. And the variety of ratios on Android devices is rather wide.
And using SetVirtualResolution(GetDeviceWidth(),GetDeviceHeight()) is not an option if the app, like mine, needs to have a constant and known resolution. Even using a DVader's suggestion of percentages doesn't work for me because it still changes the distances and my WIP is a time based thing and, if the distances are different, the times are different.
Sometimes you need to use a specific size, period. That is when SetScissor allows you to fill the extra space (which becomes out of limits during game play, as indicated by other effects).
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master