Window

Represents a surface that the backend renders on.

Constructors

this
this(string title, uint width, uint height, SyncType syncType)
Undocumented in source.

Members

Functions

resize
void resize(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
resize_
void resize_(uint width, uint height)
Undocumented in source.
setGame
void setGame(GameManager game)

Used ONLY by GameManager. DO NOT CALL!

setGame_
void setGame_()
Undocumented in source.
setSync_
void setSync_(SyncType syncType)
Undocumented in source.
setTitle_
void setTitle_(string title)
Undocumented in source.
updateBuffers
void updateBuffers()
Undocumented in source.

Properties

game
GameManager game [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
uint height [@property getter]

The height of the window in pixels.

syncType
SyncType syncType [@property getter]

The type of synchronization the window is using.

title
string title [@property getter]

The title of the Window.

title
string title [@property setter]

The title of the Window.

width
uint width [@property getter]

The width of the window in pixels.

Static functions

windowFactory
Window windowFactory(string title, uint width, uint height, SyncType syncType, GraphicsBackendType backend)

Create a new window based on the GraphicsBackendType. If the backend has not been compiled into mango-engine, an exception will be thrown.

Meta