00001 #ifndef _DISPLAYRESX_H_ 00002 #define _DISPLAYRESX_H_ 00003 00004 #include "DisplayRes.h" 00005 00006 class DisplayResX : public DisplayRes 00007 { 00008 public: 00009 DisplayResX(void); 00010 ~DisplayResX(void); 00011 00012 const std::vector<DisplayResScreen>& GetVideoModes(void) const; 00013 00014 protected: 00015 bool GetDisplayInfo(int &w_pix, int &h_pix, int &w_mm, 00016 int &h_mm, double &rate, double &par) const; 00017 bool SwitchToVideoMode(int width, int height, double framerate); 00018 00019 private: 00020 mutable std::vector<DisplayResScreen> m_videoModes; 00021 mutable std::vector<DisplayResScreen> m_videoModesUnsorted; 00022 }; 00023 00024 #endif // _DISPLAYRESX_H_