Window.this

Construct a new window. * This constructor creates the window with the size and pixel depth defined in mode. An optional style can be passed to customize the look and behaviour of the window (borders, title bar, resizable, closable, ...). If style contains 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. *

  1. this()
  2. this(VideoMode mode, immutable(T)[] title, Style style = Style.DefaultStyle, ContextSettings settings = ContextSettings.init)
    class Window
    this
    (
    T
    )
    if (
    is(T == dchar) ||
    is(T == wchar)
    ||
    is(T == char)
    )
  3. this(WindowHandle handle, ContextSettings settings = ContextSettings.init)

Parameters

mode
Type: VideoMode

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

title
Type: immutable(T)[]

Title of the window

style
Type: Style

Window style

settings

Additional settings for the underlying OpenGL context

Meta