Function sdl2_sys::SDL_SetTextureScaleMode[][src]

pub unsafe extern "C" fn SDL_SetTextureScaleMode(
    texture: *mut SDL_Texture,
    scaleMode: SDL_ScaleMode
) -> c_int
Expand description

\brief Set the scale mode used for texture scale operations.

\param texture The texture to update. \param scaleMode ::SDL_ScaleMode to use for texture scaling.

\return 0 on success, or -1 if the texture is not valid.

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

\sa SDL_GetTextureScaleMode()