sdlGetTextureBlendMode function
Get the blend mode used for texture copy operations.
\param texture the texture to query \param blendMode a pointer filled in with the current SDL_BlendMode \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_SetTextureBlendMode
extern DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture * texture, SDL_BlendMode *blendMode)
Implementation
int sdlGetTextureBlendMode(
Pointer<SdlTexture> texture, Pointer<Int32> blendMode) {
final sdlGetTextureBlendModeLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlTexture> texture, Pointer<Int32> blendMode),
int Function(Pointer<SdlTexture> texture,
Pointer<Int32> blendMode)>('SDL_GetTextureBlendMode');
return sdlGetTextureBlendModeLookupFunction(texture, blendMode);
}