RenderWindow.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 behavior of the window (borders, title bar, resizable, closable, ...).

The fourth parameter is an optional structure specifying advanced OpenGL context settings such as antialiasing, depth-buffer bits, etc. You shouldn't care about these parameters for a regular usage of the graphics module.

  1. this()
  2. this(VideoMode mode, const(T)[] title, Style style, ContextSettings settings)
  3. this(VideoMode mode, const(dchar)[] title, Style style, ContextSettings settings)
    class RenderWindow
    this
    (
    T
    )
    (,
    const(dchar)[] title
    ,
    Style style = Style.DefaultStyle
    ,)
  4. this(WindowHandle handle, ContextSettings settings)

Parameters

mode VideoMode

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

title const(dchar)[]

Title of the window

style Style

Window style, a bitwise OR combination of Style enumerators

settings ContextSettings

Additional settings for the underlying OpenGL context

Meta