00001 #ifndef _DISPLAYRESOSX_H_ 00002 #define _DISPLAYRESOSX_H_ 00003 00004 #include "DisplayRes.h" 00005 00006 class DisplayResOSX : public DisplayRes 00007 { 00008 public: 00009 DisplayResOSX(void); 00010 ~DisplayResOSX(void); 00011 00012 const std::vector<DisplayResScreen>& GetVideoModes() 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 }; 00022 00023 #endif // _DISPLAYRESOSX_H_