Source

pyGAP / game / inc / platform / display.h

#ifndef _PLATFORM_DISPLAY_
#define _PLATFORM_DISPLAY_


namespace common {
class Log;
}


namespace platform {
struct VideoMode;


class Display
{
public:
    Display();
    virtual ~Display();

    void get_available_video_modes();
    int get_video_mode(int width, int height);
    int set_video_mode(int mode=0);
    void get_ratio(int& w, int& h);

private:
    Display(const Display&);
    Display& operator=(const Display&);

protected:
    int width_;
    int height_;

    int cur_video_mode_;
    int num_video_modes_;
    VideoMode* video_modes_;

#if defined(DEBUG)
    static common::Log*    log_;
#endif
};


} // namespace platform


#endif // _PLATFORM_DISPLAY_