RenderWindow.create

Create (or recreate) the window.

If the window was already created, it closes it first. If style contains Window.Style.Fullscreen, then mode must be a valid video mode.

The fourth parameter is an optional structure specifying advanced OpenGL context settings such as antialiasing, depth-buffer bits, etc.

Parameters

mode
Type: VideoMode

Video mode to use (defines the width, height and depth of the rendering area of the window)

title
Type: const(dchar)[]

Title of the window

style
Type: Style

Window style, a bitwise OR combination of Style enumerators

settings

Additional settings for the underlying OpenGL context

Meta