Skip to content

WindowManager

Daniel Grace edited this page May 20, 2019 · 1 revision

Configuration

The window manager configuration is defined by the com.gracefulcode.opengine.WindowManager.Configuration class. It currently has two fields:

boolean exitAfterLastWindow (default: true)

If this is set to true, the application is closed after the last window is closed. This is what most applications are expected to do. Note that if you open multiple windows, it will wait until there are zero open windows.

com.gracefulcode.opengine.Window.Configuration defaultWindowConfiguration

Whenever you create a new window, if you don't provide a configuration, this is the configuration that is used.

com.gracefulcode.opengine.Window createWindow(com.gracefulcode.opengine.Window.Configuration configuration)

com.gracefulcode.opengine.Window createWindow()

These two functions create a new window. If no configuration is passed, the default configuration is used.

boolean tick()

Ticks this window manager. This will draw one frame of the window. Returns true if the application should end.

Clone this wiki locally