C# Class SFML.Window.VideoMode

Show file Open project: SFML/SFML.Net Class Usage Examples

Public Properties

Property Type Description
BitsPerPixel uint
Height uint
Width uint

Public Methods

Method Description
IsValid ( ) : bool

Tell whether or not the video mode is supported

ToString ( ) : string

Provide a string describing the object

VideoMode ( uint width, uint height ) : System.Runtime.InteropServices

Construct the video mode with its width and height

VideoMode ( uint width, uint height, uint bpp ) : System.Runtime.InteropServices

Construct the video mode with its width, height and depth

Private Methods

Method Description
sfVideoMode_getDesktopMode ( ) : VideoMode
sfVideoMode_getFullscreenModes ( uint &Count ) : VideoMode*
sfVideoMode_isValid ( VideoMode Mode ) : bool

Method Details

IsValid() public method

Tell whether or not the video mode is supported
public IsValid ( ) : bool
return bool

ToString() public method

Provide a string describing the object
public ToString ( ) : string
return string

VideoMode() public method

Construct the video mode with its width and height
public VideoMode ( uint width, uint height ) : System.Runtime.InteropServices
width uint Video mode width
height uint Video mode height
return System.Runtime.InteropServices

VideoMode() public method

Construct the video mode with its width, height and depth
public VideoMode ( uint width, uint height, uint bpp ) : System.Runtime.InteropServices
width uint Video mode width
height uint Video mode height
bpp uint Video mode depth (bits per pixel)
return System.Runtime.InteropServices

Property Details

BitsPerPixel public property

Video mode depth, in bits per pixel
public uint BitsPerPixel
return uint

Height public property

Video mode height, in pixels
public uint Height
return uint

Width public property

Video mode width, in pixels
public uint Width
return uint