SDL_RenderTextureAffine

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

extern (C) nothrow @nogc extern
bool
SDL_RenderTextureAffine

Parameters

renderer SDL_Renderer*

The renderer which should copy parts of a texture.

texture SDL_Texture*

The source texture.

srcrect const(SDL_FRect)*

A pointer to the source rectangle, or null for the entire texture.

origin const(SDL_FPoint)*

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 const(SDL_FPoint)*

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 const(SDL_FPoint)*

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.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: You may only call this function from the main thread.

See Also

Meta