Search code examples
csdl-2

Is there a function to stretch an image's points to parts of the renderer in SDL2?


Is there a function to stretch an image's points to coordinates on the screen based on it's four points?

If not, is there a way I could do that using math?


Solution

  • I mean something like a generalized texture-mapped quad.

    SDL_RenderGeometry()/SDL_RenderGeometryRaw() were added in SDL 2.0.18.