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 VideoMode

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

title const(char)[]

Title of the window

style Style

Window style, a bitwise OR combination of Style enumerators

settings ContextSettings

Additional settings for the underlying OpenGL context

* //deprecated: Use the version of create that takes a 'const(dchar)[]'. /deprecated("Use the version of create that takes a 'const(dchar)[]'.")

Meta