sdlGetSurfaceAlphaMod function
Get the additional alpha value used in blit operations.
\param surface the SDL_Surface structure 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_GetSurfaceColorMod \sa SDL_SetSurfaceAlphaMod
extern DECLSPEC int SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface * surface, Uint8 * alpha)
Implementation
int sdlGetSurfaceAlphaMod(Pointer<SdlSurface> surface, Pointer<Uint8> alpha) {
final sdlGetSurfaceAlphaModLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlSurface> surface, Pointer<Uint8> alpha),
int Function(Pointer<SdlSurface> surface,
Pointer<Uint8> alpha)>('SDL_GetSurfaceAlphaMod');
return sdlGetSurfaceAlphaModLookupFunction(surface, alpha);
}