24 #ifndef RESOURCES_SDL2SOFTWAREIMAGEHELPER_H
25 #define RESOURCES_SDL2SOFTWAREIMAGEHELPER_H
44 SDL2SoftwareImageHelper() :
57 const int width,
const int height,
62 { mEnableAlphaCache = n; }
65 {
return mEnableAlphaCache; }
67 static SDL_Surface* SDLDuplicateSurface(SDL_Surface *
const tmpImage)
70 static int combineSurface(SDL_Surface *
restrict const src,
75 static void setFormat(SDL_PixelFormat *
const format)
noexcept2
80 mFormat->Amask = ~(format->Rmask
81 | format->Gmask | format->Bmask);
89 static bool mEnableAlphaCache;
90 static SDL_PixelFormat *mFormat;
virtual Image * createTextSurface(SDL_Surface *const tmpImage, const int width, const int height, const float alpha) const
virtual Image * loadSurface(SDL_Surface *const)
#define A_DELETE_COPY(func)