VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for getting modes supported by the display device.
More...
#include <VideoMode.hpp>
|
| | VideoMode () |
| | Default constructor.
|
| |
| | VideoMode (unsigned int ModeWidth, unsigned int ModeHeight, unsigned int ModeBpp=32) |
| | Construct the video mode with its attributes.
|
| |
| bool | IsValid () const |
| | Tell whether or not the video mode is supported.
|
| |
| bool | operator== (const VideoMode &Other) const |
| | Comparison operator overload – tell if two video modes are equal.
|
| |
| bool | operator!= (const VideoMode &Other) const |
| | Comparison operator overload – tell if two video modes are different.
|
| |
|
| unsigned int | Width |
| | Video mode width, in pixels.
|
| |
| unsigned int | Height |
| | Video mode height, in pixels.
|
| |
| unsigned int | BitsPerPixel |
| | Video mode pixel depth, in bits per pixels.
|
| |
VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for getting modes supported by the display device.
Definition at line 42 of file VideoMode.hpp.
| sf::VideoMode::VideoMode |
( |
| ) |
|
| sf::VideoMode::VideoMode |
( |
unsigned int |
ModeWidth, |
|
|
unsigned int |
ModeHeight, |
|
|
unsigned int |
ModeBpp = 32 |
|
) |
| |
Construct the video mode with its attributes.
- Parameters
-
| ModeWidth | : Width in pixels |
| ModeHeight | : Height in pixels |
| ModeBpp | : Pixel depths in bits per pixel (32 by default) |
| static VideoMode sf::VideoMode::GetDesktopMode |
( |
| ) |
|
|
static |
Get the current desktop video mode.
- Returns
- Current desktop video mode
| static VideoMode sf::VideoMode::GetMode |
( |
std::size_t |
Index | ) |
|
|
static |
Get a valid video mode Index must be in range [0, GetModesCount()[ Modes are sorted from best to worst.
- Parameters
-
| Index | : Index of video mode to get |
- Returns
- Corresponding video mode (invalid mode if index is out of range)
| static std::size_t sf::VideoMode::GetModesCount |
( |
| ) |
|
|
static |
Get valid video modes count.
- Returns
- Number of valid video modes available
| bool sf::VideoMode::IsValid |
( |
| ) |
const |
Tell whether or not the video mode is supported.
- Returns
- True if video mode is supported, false otherwise
| bool sf::VideoMode::operator!= |
( |
const VideoMode & |
Other | ) |
const |
Comparison operator overload – tell if two video modes are different.
- Parameters
-
| Other | : Video mode to compare |
- Returns
- True if modes are different
| bool sf::VideoMode::operator== |
( |
const VideoMode & |
Other | ) |
const |
Comparison operator overload – tell if two video modes are equal.
- Parameters
-
| Other | : Video mode to compare |
- Returns
- True if modes are equal
| unsigned int sf::VideoMode::BitsPerPixel |
Video mode pixel depth, in bits per pixels.
Definition at line 123 of file VideoMode.hpp.
| unsigned int sf::VideoMode::Height |
| unsigned int sf::VideoMode::Width |
The documentation for this class was generated from the following file: