50 if (rl->
image ==
nullptr)
52 Image *
const rescaled = rl->
image->SDLgetScaledImage(
54 if (rescaled ==
nullptr)
57 rl->
image->mIdPath.c_str())
72 const std::string idPath = image->mIdPath +
strprintf(
73 "_rescaled%dx%d", width, height);
74 const RescaledLoader rl = { image, width, height };
75 return static_cast<Image *
>(
#define reportAlways(...)
#define A_DEFAULT_COPY(func)
Image * getRescaled(const Image *const image, const int width, const int height)
Resource * get(const std::string &idPath, generator fun, const void *const data)
std::string strprintf(const char *const format,...)