Setting up a Testing enviroment

Monkey Forums/Monkey Programming/Setting up a Testing enviroment

Tibit(Posted 2012) [#1]
I was thinking about creating a way to test different resolutions in glfw, xna or some other target.

The idea was to be able to click F1 (for example) and toggle iPad1 resolution, F2 for iPhone4, and so on for each profile.

I was curious if anyone have have good idea on how to accomplish this is a practical way - maybe someone already has?


Gerry Quinn(Posted 2012) [#2]
What about SetNativeGraphicsSize() in Diddy?

Another option might be to use HTML5 and have some browser pages of different sizes that can tap into the current MonkeyGame build.


Tibit(Posted 2012) [#3]
Does that reset the window-resolution? Then it is exactly what I'm looking for.

I could create a html page where I change resolution using javascript and add some user buttons for that. Downside to that is that html5 is painfully slow, so I'd prefer to be able to test in a high-performance target.


therevills(Posted 2012) [#4]
Does that reset the window-resolution?

Yep :) Although I'd suggest you use SetGraphics(w, h) as this will change the "constants" SCREEN_WIDTH and SCREEN_HEIGHT too.