summaryrefslogtreecommitdiff
path: root/src/blitter/base.hpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-18 20:08:21 +0000
committertruelight <truelight@openttd.org>2007-06-18 20:08:21 +0000
commit26e9b5ca5f0eafae421a640ea4e4753d6ac7ec0e (patch)
tree50524cab6a4a5052a93115c2d41248a6b3bf2528 /src/blitter/base.hpp
parent49220cc6f1e3570dc1b9001c40af2a8a4e35b649 (diff)
downloadopenttd-26e9b5ca5f0eafae421a640ea4e4753d6ac7ec0e.tar.xz
(svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer
Diffstat (limited to 'src/blitter/base.hpp')
-rw-r--r--src/blitter/base.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/blitter/base.hpp b/src/blitter/base.hpp
index 6e59f4e2e..90e1dde03 100644
--- a/src/blitter/base.hpp
+++ b/src/blitter/base.hpp
@@ -139,6 +139,18 @@ public:
virtual void MoveBuffer(void *video_dst, const void *video_src, int width, int height) = 0;
/**
+ * Scroll the videobuffer some 'x' and 'y' value.
+ * @param video The buffer to scroll into.
+ * @param left The left value of the screen to scroll.
+ * @param top The top value of the screen to scroll.
+ * @param width The width of the screen to scroll.
+ * @param height The height of the screen to scroll.
+ * @param scroll_x How much to scroll in X.
+ * @param scroll_y How much to scroll in Y.
+ */
+ virtual void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y) = 0;
+
+ /**
* Calculate how much memory there is needed for an image of this size in the video-buffer.
* @param width The width of the buffer-to-be.
* @param height The height of the buffer-to-be.