SDL_RenderTextureRotated

Copy a portion of the source texture to the current rendering target, with rotation and flipping, at subpixel precision.

extern (C) nothrow @nogc extern
bool
SDL_RenderTextureRotated

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.

dstrect const(SDL_FRect)*

A pointer to the destination rectangle, or null for the entire rendering target.

angle double

An angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction.

center const(SDL_FPoint)*

A pointer to a point indicating the point around which dstrect will be rotated (if null, rotation will be done around dstrect.w/2, dstrect.h/2).

flip SDL_FlipMode

An SDL_FlipMode value stating which flipping actions should be performed on the texture.

Return Value

Type: bool

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

Threadsafety: This function should only be called on the main thread.

See Also

Meta