From d5847d54a527c41006cb4cade15d0b6346490e77 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 25 Aug 2013 19:36:20 +0300 Subject: add partial support for software mode with SDL2. --- src/resources/image.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/image.h') diff --git a/src/resources/image.h b/src/resources/image.h index ed42991bb..a40f62dee 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -199,9 +199,16 @@ class Image : public Resource Image(SDL_Surface *const image, const bool hasAlphaChannel = false, uint8_t *const alphaChannel = nullptr); +#ifdef USE_SDL2 + Image(SDL_Texture *const image, const int width, const int height); +#endif + SDL_Surface *getByAlpha(const float alpha) A_WARN_UNUSED; SDL_Surface *mSDLSurface; +#ifdef USE_SDL2 + SDL_Texture *mTexture; +#endif /** Alpha Channel pointer used for 32bit based SDL surfaces */ uint8_t *mAlphaChannel; -- cgit v1.2.3-60-g2f50