dsfml.window.videomode
struct
VideoMode
;
VideoMode
defines a video mode (width, height, bpp, frequency) and provides static functions for getting modes supported by the display device
static VideoMode
getDesktopMode
();
Get the current desktop video mode
Returns:
Current desktop video mode
static VideoMode
getMode
(uint
index
);
Get a valid video mode Index must be in range [0, GetModesCount()[ Modes are sorted from best to worst
Params:
uint
index
Index of video mode to get
Returns:
Corresponding video mode (invalid mode if
index
is out of range)
static uint
getModesCount
();
Get valid video modes count
Returns:
Number of valid video modes available
bool
isValid
();
Tell whether or not the video mode is supported
Returns:
True if video mode is supported,
false
otherwise
bool
opEquals
(VideoMode
other
);
Comparison operator overload -- tell if two video modes are equal
Params:
Returns:
True if modes are equal
uint
Width
;
Video mode width, in pixels
uint
Height
;
Video mode height, in pixels
uint
BitsPerPixel
;
Video mode pixel depth, in bits per pixels
Page generated by
Ddoc
.