(svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer

This commit is contained in:
truelight
2007-06-18 20:08:21 +00:00
parent 49220cc6f1
commit 26e9b5ca5f
7 changed files with 120 additions and 47 deletions

View File

@@ -138,6 +138,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.