Programmatically enter full screen on launch (OSX)

I’ve designed an app that launches to 1080p dimensions on launch for an installation. Unfortunately I still see the window title bar. To eliminate this I need to manually choose ‘Window > Enter full screen’

This is using OSX El Capitan and the latest STABLE release of OFX.

A quick search turned up this referencing a much older version of OFX

I have no idea where to find the GLUT preference pane, and assume this only is applicable to an older version of OFX?

Is there a way to programmatically cause an app to enter full screen on launch?


There are a few ways to do so. You can do ofSetupOpenGL(1920, 1080, OF_FULLSCREEN) in main.

Or you can do ofSetFullscreen(true) or ofToggleFullscreen() in setup.