diff options
author | Cameron Cawley | 2019-03-01 00:15:43 +0000 |
---|---|---|
committer | Bastien Bouclet | 2019-03-02 07:29:22 +0100 |
commit | 8ae17b481a8f0a0c7d78e975a32e9e6df055b8df (patch) | |
tree | 0e3a67b44005735362c9f3a519b39be24813b075 /image/bmp.h | |
parent | fd1162cb7106130d328f9d7d523a8e73c42a53a3 (diff) | |
download | scummvm-rg350-8ae17b481a8f0a0c7d78e975a32e9e6df055b8df.tar.gz scummvm-rg350-8ae17b481a8f0a0c7d78e975a32e9e6df055b8df.tar.bz2 scummvm-rg350-8ae17b481a8f0a0c7d78e975a32e9e6df055b8df.zip |
IMAGE: Move bitmap writing code out of OpenGLGraphicsManager
Diffstat (limited to 'image/bmp.h')
-rw-r--r-- | image/bmp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/image/bmp.h b/image/bmp.h index b482cc674b..a23f1e0978 100644 --- a/image/bmp.h +++ b/image/bmp.h @@ -37,6 +37,7 @@ namespace Common { class SeekableReadStream; +class WriteStream; } namespace Graphics { @@ -66,6 +67,14 @@ private: uint16 _paletteColorCount; }; +/** + * Outputs an uncompressed BMP stream of the given input surface. + * + * @param bottomUp Flip the vertical axis so pixel data is drawn from the + * bottom up, instead of from the top down. + */ +bool writeBMP(Common::WriteStream &out, const Graphics::Surface &input, const bool bottomUp = false); + } // End of namespace Image #endif |