|
@@ -7,25 +7,25 @@
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
|
|
|
|
/** @file video_driver.hpp Base of all video drivers. */
|
|
|
|
|
|
#ifndef VIDEO_VIDEO_DRIVER_HPP
|
|
|
#define VIDEO_VIDEO_DRIVER_HPP
|
|
|
|
|
|
#include "../driver.h"
|
|
|
#include "../core/geometry_type.hpp"
|
|
|
|
|
|
/** The base of all video drivers. */
|
|
|
class VideoDriver: public Driver {
|
|
|
class VideoDriver : public Driver {
|
|
|
public:
|
|
|
/**
|
|
|
* Mark a particular area dirty.
|
|
|
* @param left The left most line of the dirty area.
|
|
|
* @param top The top most line of the dirty area.
|
|
|
* @param width The width of the dirty area.
|
|
|
* @param height The height of the dirty area.
|
|
|
*/
|
|
|
virtual void MakeDirty(int left, int top, int width, int height) = 0;
|
|
|
|
|
|
/**
|
|
|
* Perform the actual drawing.
|