summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r--src/resources/openglimagehelper.h7
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;