#include <VideoMode.hpp>
Public Member Functions | |
sfVideoMode () | |
sfVideoMode (unsigned int ModeWidth, unsigned int ModeHeight, unsigned int ModeBpp=32) | |
bool | IsValid () const |
bool | operator== (const sfVideoMode &Other) const |
bool | operator!= (const sfVideoMode &Other) const |
Static Public Member Functions | |
static sfVideoMode | GetDesktopMode () |
static sfVideoMode | GetMode (unsigned int Index) |
static unsigned int | GetModesCount () |
Public Attributes | |
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. |
Definition at line 39 of file VideoMode.hpp.
sfVideoMode::sfVideoMode | ( | ) |
sfVideoMode::sfVideoMode | ( | unsigned int | ModeWidth, | |
unsigned int | ModeHeight, | |||
unsigned int | ModeBpp = 32 | |||
) |
Construct the video mode with its attributes
ModeWidth | : Width in pixels | |
ModeHeight | : Height in pixels | |
ModeBpp | : Pixel depths in bits per pixel (32 by default) |
Definition at line 77 of file VideoMode.cpp.
sfVideoMode sfVideoMode::GetDesktopMode | ( | ) | [static] |
Get the current desktop video mode
Definition at line 89 of file VideoMode.cpp.
sfVideoMode sfVideoMode::GetMode | ( | unsigned int | Index | ) | [static] |
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 |
Definition at line 100 of file VideoMode.cpp.
References GetModesCount(), and sfVideoMode().
Referenced by sfWindow::Create().
unsigned int sfVideoMode::GetModesCount | ( | ) | [static] |
Get valid video modes count
Definition at line 115 of file VideoMode.cpp.
Referenced by GetMode().
bool sfVideoMode::IsValid | ( | ) | const |
Tell whether or not the video mode is supported
Definition at line 127 of file VideoMode.cpp.
Referenced by sfWindow::Create().
bool sfVideoMode::operator== | ( | const sfVideoMode & | Other | ) | const |
Comparison operator overload -- tell if two video modes are equal
Other | : Video mode to compare |
Definition at line 139 of file VideoMode.cpp.
References BitsPerPixel, Height, and Width.
bool sfVideoMode::operator!= | ( | const sfVideoMode & | Other | ) | const |
Comparison operator overload -- tell if two video modes are different
Other | : Video mode to compare |
Definition at line 150 of file VideoMode.cpp.