sdlGetTextureAlphaMod function
Get the additional alpha value multiplied into render copy operations.
\param texture the texture to query \param alpha a pointer filled in with the current alpha value \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_GetTextureColorMod \sa SDL_SetTextureAlphaMod
extern DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture * texture, Uint8 * alpha)
Implementation
int sdlGetTextureAlphaMod(Pointer<SdlTexture> texture, Pointer<Uint8> alpha) {
final sdlGetTextureAlphaModLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlTexture> texture, Pointer<Uint8> alpha),
int Function(Pointer<SdlTexture> texture,
Pointer<Uint8> alpha)>('SDL_GetTextureAlphaMod');
return sdlGetTextureAlphaModLookupFunction(texture, alpha);
}