Associate a user-specified pointer with a texture.
Defined in SDL_render.h
texture | the texture to update. |
userdata | the pointer to associate with the texture. |
Returns 0 on success, or -1 if the texture is not valid.
This function is available since SDL 2.0.18.