sdlGetTextureUserData function

Pointer<NativeType> sdlGetTextureUserData(
  1. Pointer<SdlTexture> texture
)

Get the user-specified pointer associated with a texture

\param texture the texture to query. \return the pointer associated with the texture, or NULL if the texture is not valid.

\since This function is available since SDL 2.0.18.

\sa SDL_SetTextureUserData

extern DECLSPEC void * SDLCALL SDL_GetTextureUserData(SDL_Texture * texture)

Implementation

Pointer<NativeType> sdlGetTextureUserData(Pointer<SdlTexture> texture) {
  final sdlGetTextureUserDataLookupFunction = libSdl2.lookupFunction<
      Pointer<NativeType> Function(Pointer<SdlTexture> texture),
      Pointer<NativeType> Function(
          Pointer<SdlTexture> texture)>('SDL_GetTextureUserData');
  return sdlGetTextureUserDataLookupFunction(texture);
}