diff options
author | truelight <truelight@openttd.org> | 2007-06-18 19:38:23 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-18 19:38:23 +0000 |
commit | 09879ea308c600cd5c1a2d69ba70bd4c566710cb (patch) | |
tree | 269271622a8d64c7bdf5ea91e2e0e9f553bde1cf /src/blitter/base.hpp | |
parent | c31ff284c321be86dcd3e4640f11b4e82a6c7cb4 (diff) | |
download | openttd-09879ea308c600cd5c1a2d69ba70bd4c566710cb.tar.xz |
(svn r10203) -Codechange: more moving things to blitter-layer: DrawLine
Diffstat (limited to 'src/blitter/base.hpp')
-rw-r--r-- | src/blitter/base.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/blitter/base.hpp b/src/blitter/base.hpp index 79a0895f9..6e59f4e2e 100644 --- a/src/blitter/base.hpp +++ b/src/blitter/base.hpp @@ -97,6 +97,19 @@ public: virtual void DrawRect(void *video, int width, int height, uint8 color) = 0; /** + * Draw a line with a given color. + * @param video The destination pointer (video-buffer). + * @param x The x coordinate from where the line starts. + * @param y The y coordinate from where the line starts. + * @param x2 The x coordinate to where the line goes. + * @param y2 The y coordinate to where the lines goes. + * @param screen_width The width of the screen you are drawing in (to avoid buffer-overflows). + * @param screen_height The height of the screen you are drawing in (to avoid buffer-overflows). + * @param color A 8bpp mapping color. + */ + virtual void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color) = 0; + + /** * Copy from a buffer to the screen. * @param video The destionation pointer (video-buffer). * @param src The buffer from which the data will be read. |