SDL_SetTextureScaleMode

Set the scale mode used for texture scale operations.

The default texture scale mode is SDL_SCALEMODE_LINEAR.

If the scale mode is not supported, the closest supported mode is chosen.

extern (C) nothrow @nogc extern
bool
SDL_SetTextureScaleMode

Parameters

texture SDL_Texture*

The texture to update.

scaleMode SDL_ScaleMode

The SDL_ScaleMode to use for texture scaling.

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