VideoMode

The VideoMode struct contains informations about the current window video mode. It is passed to Window which extract the informations and use them to build a window context.

Constructors

this
this(uint width, uint height, uint hz)

CTor

Members

Functions

isValid
bool isValid(ubyte display)
opEquals
bool opEquals(VideoMode vm)

opEquals

Static functions

countDisplays
int countDisplays()

Returns how many display are available.

countModes
int countModes(ubyte display)

Returns how many valid video modes are supported

getDesktopMode
VideoMode getDesktopMode(ubyte display)
getMode
VideoMode getMode(uint index, ubyte display)
listModes
VideoMode[] listModes(ubyte display)

Variables

height
ushort height;

The height of this video mode

refreshRate
ubyte refreshRate;

The refresh rate of this video mode

width
ushort width;

The width of this video mode

Meta

Authors

rschuett