Function fermium::renderer::SDL_SetTextureScaleMode
source · pub unsafe extern "C" fn SDL_SetTextureScaleMode(
texture: *mut SDL_Texture,
scaleMode: SDL_ScaleMode
) -> c_int
Expand description
Set the scale mode used for texture scale operations.
texture
The texture to update.scaleMode
SDL_ScaleMode
to use for texture scaling.
Returns: 0 on success, or -1 if the texture is not valid.
If the scale mode is not supported, the closest supported mode is chosen.
See Also: SDL_GetTextureScaleMode