Function sdl2_sys::SDL_SetTextureUserData
source ยท pub unsafe extern "C" fn SDL_SetTextureUserData(
texture: *mut SDL_Texture,
userdata: *mut c_void,
) -> c_int
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