SDL_RenderTextureTiled

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

The pixels in srcrect will be repeated as many times as needed to completely fill dstrect.

extern (C) nothrow @nogc extern
bool
SDL_RenderTextureTiled

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.

scale float

The scale used to transform srcrect into the destination rectangle, e.g. a 32x32 texture with a scale of 2 would fill 64x64 tiles.

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