src/video/video_driver.hpp
branchNewGRF_ports
changeset 6872 1c4a4a609f85
parent 6720 35756db7e577
child 10724 68a692eacf22
equal deleted inserted replaced
6871:5a9dc001e1ad 6872:1c4a4a609f85
    11 
    11 
    12 	virtual void MainLoop() = 0;
    12 	virtual void MainLoop() = 0;
    13 
    13 
    14 	virtual bool ChangeResolution(int w, int h) = 0;
    14 	virtual bool ChangeResolution(int w, int h) = 0;
    15 
    15 
    16 	virtual void ToggleFullscreen(bool fullscreen) = 0;
    16 	virtual bool ToggleFullscreen(bool fullscreen) = 0;
    17 };
    17 };
    18 
    18 
    19 class VideoDriverFactoryBase: public DriverFactoryBase {
    19 class VideoDriverFactoryBase: public DriverFactoryBase {
    20 };
    20 };
    21 
    21 
    29 	 */
    29 	 */
    30 	const char *GetName();
    30 	const char *GetName();
    31 };
    31 };
    32 
    32 
    33 extern VideoDriver *_video_driver;
    33 extern VideoDriver *_video_driver;
       
    34 extern char _ini_videodriver[32];
       
    35 extern int _num_resolutions;
       
    36 extern uint16 _resolutions[32][2];
       
    37 extern uint16 _cur_resolution[2];
    34 
    38 
    35 #endif /* VIDEO_VIDEO_DRIVER_HPP */
    39 #endif /* VIDEO_VIDEO_DRIVER_HPP */