Image *SDL2SoftwareImageHelper::createTextSurface(SDL_Surface *const tmpImage, const int width A_UNUSED, const int height A_UNUSED, const float alpha) { if (!tmpImage) return nullptr; Image *const img = _SDLload(tmpImage); if (img) img->setAlpha(alpha); return img; }
Image *SurfaceImageHelper::loadSurface(SDL_Surface *const tmpImage) { return _SDLload(tmpImage); }
Image *SDL2SoftwareImageHelper::load(SDL_Surface *const tmpImage) { return _SDLload(tmpImage); }