VideoMode

VideoMode defines a video mode (width, height, bpp).

Constructors

this
this(uint Width, uint Height, uint bits = 32)

Construct the video mode with its attributes. *

Members

Functions

isValid
bool isValid()

Tell whether or not the video mode is valid. * The validity of video modes is only relevant when using fullscreen windows; otherwise any video mode can be used with no restriction. *

toString
string toString()

Returns a string representation of the video mode.

Static functions

getDesktopMode
VideoMode getDesktopMode()

Get the current desktop video mode. *

getFullscreenModes
VideoMode[] getFullscreenModes()

Retrieve all the video modes supported in fullscreen mode. * When creating a fullscreen window, the video mode is restricted to be compatible with what the graphics driver and monitor support. This function returns the complete list of all video modes that can be used in fullscreen mode. The returned array is sorted from best to worst, so that the first element will always give the best mode (higher width, height and bits-per-pixel). *

Variables

bitsPerPixel
uint bitsPerPixel;

Video mode pixel depth, in bits per pixels.

height
uint height;

Video mode height, in pixels.

width
uint width;

Video mode width, in pixels.

Meta