Hi there,
I want my app to get the screen’s width and height and to launch a glut window in game mode with the same resolution. This would be very convenient since the display would configure itself automatically on every computer screen.
I found a hackish way to do it in ofAppGlutWindow.cpp in the setupOpenGL function (this fragment is called after glutInit):
int swidth = glutGet(GLUT_SCREEN_WIDTH);
int sheight = glutGet(GLUT_SCREEN_HEIGHT);
char gameStr[64];
sprintf( gameStr, "%dx%d:%d@%d", swidth, sheight, 32, 60 );
glutGameModeString(gameStr);
Is there any better way to do this?
Do you see any potential disadvantages with this method?
Would an upscale be preferable for huge screens?
Thanks a lot.