24 #ifndef RESOURCES_SDL2IMAGEHELPER_H
25 #define RESOURCES_SDL2IMAGEHELPER_H
34 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
62 const int width,
const int height,
67 const int x,
const int y,
68 SDL_Surface *
const surface)
85 constexpr2 static void setRenderer(SDL_Renderer *
const renderer)
87 { mRenderer = renderer; }
94 static SDL_Renderer *mRenderer;
static Image * _SDLload(SDL_Surface *tmpImage)
static void SDLSetEnableAlphaCache(const bool n)
static int combineSurface(SDL_Surface *const src, SDL_Rect *const srcrect, SDL_Surface *const dst, SDL_Rect *const dstrect)
static bool SDLGetEnableAlphaCache()
static SDL_Surface * SDLDuplicateSurface(SDL_Surface *const tmpImage)
void copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *const surface) const
Image * createTextSurface(SDL_Surface *const tmpImage, const int width, const int height, const float alpha)
static bool mEnableAlphaCache
Image * loadSurface(SDL_Surface *const tmpImage)
#define A_DELETE_COPY(func)