SFML-2.3.2.1: SFML bindings

Safe HaskellSafe-Inferred
LanguageHaskell98

SFML.Window.VideoMode

Synopsis

Documentation

data VideoMode Source

Constructors

VideoMode 

Fields

windowWidth :: Int

Video mode width, in pixels

windowHeight :: Int

Video mode height, in pixels

windowBPP :: Int

Video mode pixel depth, in bits per pixels

getDesktopMode :: IO VideoMode Source

Get the current desktop video mode

getFullscreenModes :: IO [VideoMode] Source

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.

isValid :: VideoMode -> IO Bool Source

Tell whether or not a 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.