#include <DisplayResX.h>
Public Member Functions | |
| DisplayResX (void) | |
| ~DisplayResX (void) | |
| const std::vector < DisplayResScreen > & | GetVideoModes (void) const |
| Returns all video modes supported by the display. | |
Protected Member Functions | |
| bool | GetDisplayInfo (int &w_pix, int &h_pix, int &w_mm, int &h_mm, double &rate, double &par) const |
| bool | SwitchToVideoMode (int width, int height, double framerate) |
Private Attributes | |
| std::vector< DisplayResScreen > | m_videoModes |
| std::vector< DisplayResScreen > | m_videoModesUnsorted |
Definition at line 6 of file DisplayResX.h.
| DisplayResX::DisplayResX | ( | void | ) |
Definition at line 17 of file DisplayResX.cpp.
| DisplayResX::~DisplayResX | ( | void | ) |
Definition at line 22 of file DisplayResX.cpp.
| const DisplayResVector & DisplayResX::GetVideoModes | ( | void | ) | const [virtual] |
Returns all video modes supported by the display.
Returns all video modes available.
This is a conveniance class that instanciates a DisplayRes class if needed, and returns a copy of vector returned by DisplayRes::GetVideoModes(void).
Implements DisplayRes.
Definition at line 104 of file DisplayResX.cpp.
| bool DisplayResX::GetDisplayInfo | ( | int & | w_pix, | |
| int & | h_pix, | |||
| int & | w_mm, | |||
| int & | h_mm, | |||
| double & | rate, | |||
| double & | par | |||
| ) | const [protected, virtual] |
Implements DisplayRes.
Definition at line 26 of file DisplayResX.cpp.
| bool DisplayResX::SwitchToVideoMode | ( | int | width, | |
| int | height, | |||
| double | framerate | |||
| ) | [protected, virtual] |
Implements DisplayRes.
Definition at line 43 of file DisplayResX.cpp.
std::vector<DisplayResScreen> DisplayResX::m_videoModes [mutable, private] |
Definition at line 20 of file DisplayResX.h.
Referenced by GetVideoModes(), and SwitchToVideoMode().
std::vector<DisplayResScreen> DisplayResX::m_videoModesUnsorted [mutable, private] |
Definition at line 21 of file DisplayResX.h.
Referenced by GetVideoModes(), and SwitchToVideoMode().
1.6.3