Window

* It represents an OS window.

Constructors

this
this(int width, int height, string title)

* Create a new system window specifying the width, the height and its title.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

getHandle
GLFWwindow* getHandle()

* Returns handle to this window.

getHeight
int getHeight()

* Returns window height.

getTitle
string getTitle()

* Returns window title.

getWidth
int getWidth()

* Returns window width.

isFullscreen
bool isFullscreen()

* Returns true if window is in fullscreen mode.

resizeFrameBuffer
typeof(this) resizeFrameBuffer()

* Resize the current frame buffer of the window. * Returns reference to this so it can be used in a stream.

setFullscreen
typeof(this) setFullscreen(bool fullscreen)

* Enter or leave fullscreen mode. * Returns reference to this so it can be used in a stream.

setTitle
typeof(this) setTitle(string title)

* Set window title. * Returns reference to this so it can be used in a stream.

shouldClose
bool shouldClose()

* Returns true if window should close.

swapFullscreen
typeof(this) swapFullscreen()

* Swap between window fullscreen and windowed mode.

Meta