i have a problem with my fullscreen mode(glut). When i render my scene in the fullscreen mode, the whole screen will be black, but the scene is not bigger as the scene without the fullscreen mode.
I think the problem is that the screen area is 1024x768 and i use 640x480.
Now i want to change the screen area of the system with glut.
But i don’t know how. Is this possible, when not, what can i do?
this is what i do to get full screen at 1600x1200 at 32 bits in my apps.
int main (int argc, char** argv)
glutInit(&argc, argv) ;
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH) ;
if (glutGameModeGet(GLUT_GAME_MODE_WIDTH) != -1) // if the width is different to -1
glutEnterGameMode() ; // enter full screen mode
else // print out that this mode is not available
printf("The current mode is not supported in this system
return 0 ;
just put whatever resolution you want where it says glutGameModeString. if this doesnt work you might have a viewing or reshape problem.