SDL_RenderTexture

Copy a portion of the texture to the current rendering target at subpixel precision.

extern (C) nothrow @nogc extern
bool
SDL_RenderTexture

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.

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