sdlSetTextureUserData function
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
extern DECLSPEC int SDLCALL SDL_SetTextureUserData(SDL_Texture * texture, void *userdata)
Implementation
int sdlSetTextureUserData(
Pointer<SdlTexture> texture, Pointer<NativeType> userdata) {
final sdlSetTextureUserDataLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlTexture> texture, Pointer<NativeType> userdata),
int Function(Pointer<SdlTexture> texture,
Pointer<NativeType> userdata)>('SDL_SetTextureUserData');
return sdlSetTextureUserDataLookupFunction(texture, userdata);
}