logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_RenderTextureAffine - Copy a portion of the source texture to the current rendering target, with

Availability

       This function is available since SDL 3.2.0.

Function Parameters

renderer
              the renderer which should copy parts of a texture.

       texture
              the source texture.

       srcrect
              a pointer to the source rectangle, or NULL for the entire texture.

       origin a pointer to a point indicating where the top-left corner of srcrect should be mapped to, or  NULL
              for the rendering target's origin.

       right  a pointer to a point indicating where the top-right corner of srcrect should be mapped to, or NULL
              for the rendering target's top-right corner.

       down   a  pointer  to  a point indicating where the bottom-left corner of srcrect should be mapped to, or
              NULL for the rendering target's bottom-left corner.

Name

       SDL_RenderTextureAffine  -  Copy  a  portion  of the source texture to the current rendering target, with
       affine transform, at subpixel precision.

Return Value

       for more information.

See Also

SDL_RenderTexture(3)

Simple Directmedia Layer                           SDL 3.2.20                         SDL_RenderTextureAffine(3)

Synopsis

#include<SDL3/SDL_render.h>boolSDL_RenderTextureAffine(SDL_Renderer*renderer,SDL_Texture*texture,constSDL_FRect*srcrect,constSDL_FPoint*origin,constSDL_FPoint*right,constSDL_FPoint*down);

Thread Safety

       You may only call this function from the main thread.

See Also