sf.VideoMode Class Reference

sf.VideoMode defines a video mode (width, height, bpp, frequency) and provides functions for getting modes supported by the display device
Default constructor : VideoMode()
Construct the video mode with its attributes : VideoMode(ModeWidth, ModeHeight, ModeBpp = 32)
    ModeWidth : Width in pixels
    ModeHeight : Height in pixels
    ModeBpp : Pixel depths in bits per pixel (32 by default)

Attributes

BitsPerPixel
Video mode pixel depth, in bits per pixels.
Height
Video mode height, in pixels.
Width
Video mode width, in pixels.

Static methods

GetDesktopMode()
Get the current desktop video mode.
GetMode(Index)
Get a valid video mode. Index must be in range [0, GetModesCount()[ Modes are sorted from best to worst.
    Index : Index of video mode to get
GetModesCount()
Get valid video modes count.

Methods

IsValid()
Tell whether or not the video mode is supported.