diff options
author | Sebastian Geerken <devnull@localhost> | 2013-11-18 20:16:42 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-11-18 20:16:42 +0100 |
commit | 9ec54d30159139ef7e66eefd24fbe601d7544b99 (patch) | |
tree | 6ae74cccd930cfef738cf162215b72c8eb852919 /dw/imgbuf.hh | |
parent | a406f9d43bdc140fa7355be4e72aaef5081d7dd2 (diff) |
Optimized drawing of very small background images.
Diffstat (limited to 'dw/imgbuf.hh')
-rw-r--r-- | dw/imgbuf.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dw/imgbuf.hh b/dw/imgbuf.hh index 02ba9087..3ccbe3c5 100644 --- a/dw/imgbuf.hh +++ b/dw/imgbuf.hh @@ -178,6 +178,19 @@ public: virtual int getRootWidth () = 0; virtual int getRootHeight () = 0; + + /** + * Creates an image buffer with same parameters (type, gamma etc.) + * except size. + */ + virtual Imgbuf *createSimilarBuf (int width, int height) = 0; + + /** + * Copies another image buffer into this image buffer. + */ + virtual void copyTo (Imgbuf *dest, int xDestRoot, int yDestRoot, + int xSrc, int ySrc, int widthSrc, int heightSrc) = 0; + /* * Reference counting. */ |