diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-01 21:57:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-01 21:57:46 +0300 |
commit | 62e2ccbb158f146e2c3ceab14ff5581d3f3975ef (patch) | |
tree | 736e615b6ff94e09144df7df3aa06f9f231743ff /src/resources/openglimagehelper.h | |
parent | d3b57bd96a07a674432fd28cefd2f20ae5404b8b (diff) | |
download | plus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.gz plus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.bz2 plus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.xz plus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.zip |
Add to image helper function to copy surface into part of image.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r-- | src/resources/openglimagehelper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h index 2a91689d9..b413e21ae 100644 --- a/src/resources/openglimagehelper.h +++ b/src/resources/openglimagehelper.h @@ -123,12 +123,19 @@ class OpenGLImageHelper final : public ImageHelper void postInit() override final; + void copySurfaceToImage(Image *const image, + const int x, const int y, + SDL_Surface *surface) const; + protected: /** * Returns the first power of two equal or bigger than the input. */ static int powerOfTwo(const int input) A_WARN_UNUSED; + static SDL_Surface *convertSurface(SDL_Surface *tmpImage, + int width, int height); + Image *glLoad(SDL_Surface *tmpImage, int width = 0, int height = 0) A_WARN_UNUSED; |