Is there any way to specify the filtering type when magnifying an image using SDL_RenderCopy?


#1

By default, SDL_RenderCopy or SDL_RenderCopyEx applies some filtering when srcRect and dstRect are not of the same size, say, when magnifying an image. Is there any way in SDL to specify a different way to filter the rendering output, like nearest neighbor, linear filtering, cubic filtering, or some API for a user to define his/her own? Thanks a lot,


#2

Yes, see

https://wiki.libsdl.org/SDL_HINT_RENDER_SCALE_QUALITY