fullscreen

Hello

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?

thank you for reply

helda

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) ; 

glutGameModeString("1600x1200:32@60") ;

if (glutGameModeGet(GLUT_GAME_MODE_WIDTH) != -1)  // if the width is different to -1

{

	glutEnterGameMode()   ;		// enter full screen mode

	glutDisplayFunc(display) ;

	glutReshapeFunc(reshape) ;

	glutIdleFunc(anim) ;

	glutKeyboardFunc(keyboard) ;

}

else							// print out that this mode is not available

	printf("The current mode is not supported in this system

") ;

glutMainLoop() ;

return 0 ;

}

just put whatever resolution you want where it says glutGameModeString. if this doesnt work you might have a viewing or reshape problem.