From 62e2ccbb158f146e2c3ceab14ff5581d3f3975ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 1 Jul 2014 21:57:46 +0300 Subject: Add to image helper function to copy surface into part of image. --- src/resources/openglimagehelper.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/openglimagehelper.h') 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; -- cgit v1.2.3-60-g2f50