28#include <SFML/Window/VideoMode.hpp>
29#include <SFML/Window/VideoModeSupport.hpp>
40 std::vector<sf::VideoMode> SupportedModes;
94 return priv::VideoModeSupport::GetDesktopVideoMode();
154 return !(*
this ==
Other);
161void VideoMode::InitializeModes()
Vector2 is an utility class for manipulating 2 dimensional vectors.
VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for gett...
VideoMode()
Default constructor.
static VideoMode GetDesktopMode()
Get the current desktop video mode.
bool operator==(const VideoMode &Other) const
Comparison operator overload – tell if two video modes are equal.
static std::size_t GetModesCount()
Get valid video modes count.
static VideoMode GetMode(std::size_t Index)
Get a valid video mode Index must be in range [0, GetModesCount()[ Modes are sorted from best to wors...
bool IsValid() const
Tell whether or not the video mode is supported.
unsigned int Width
Video mode width, in pixels.
unsigned int BitsPerPixel
Video mode pixel depth, in bits per pixels.
bool operator!=(const VideoMode &Other) const
Comparison operator overload – tell if two video modes are different.
unsigned int Height
Video mode height, in pixels.