Window.windowFactory

Create a new window based on the GraphicsBackendType. If the backend has not been compiled into mango-engine, an exception will be thrown.

class Window
static @safe
windowFactory

Parameters

title string

The title of the Window.

width uint

The width of the window (in pixels)

height uint

The height of the window (in pixels)

syncType SyncType

The SyncType used by the window.

backend GraphicsBackendType

The Backend to use for rendering. This needs to be consistent across your application, or else there will be strange bugs.

Throws

Exception if no backends are avaliable.

Meta