toggleFullScreen()

A function that toggles between fullscreen and window mode would be great. Example code:

void toggleFullScreen(){
fullscreenmode = !fullscreenmode;
if(fullscreenmode){
glutFullScreen();
}else{
glutReshapeWindow(1024, 768);
glutPositionWindow(0,10);
}
}

Hey Christian!

Yeah totally with you - its being added for the next version!

For the meantime:

ofToggleFullscreen();
http://impssble.com/TMP/fullscreen.zip

1 Like