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