Function SDL_SetTextureUserData
pub unsafe extern "C" fn SDL_SetTextureUserData(
texture: *mut SDL_Texture,
userdata: *mut c_void,
) -> i32
Available on crate feature
dep_sdl2
only.Expand description
Associate a user-specified pointer with a texture.
\param texture the texture to update. \param userdata the pointer to associate with the texture. \returns 0 on success, or -1 if the texture is not valid.
\since This function is available since SDL 2.0.18.
\sa SDL_GetTextureUserData