Function SDL_SetTextureScaleMode

pub unsafe extern "C" fn SDL_SetTextureScaleMode(
    texture: *mut SDL_Texture,
    scaleMode: SDL_ScaleMode,
) -> i32
Available on crate feature dep_sdl2 only.
Expand description

Set the scale mode used for texture scale operations.

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

\param texture The texture to update. \param scaleMode the SDL_ScaleMode to use for texture scaling. \returns 0 on success, or -1 if the texture is not valid.

\since This function is available since SDL 2.0.12.

\sa SDL_GetTextureScaleMode