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 true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
\sa SDL_GetSurfaceColorMod \sa SDL_SetSurfaceAlphaMod
extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface, Uint8 *alpha)
Implementation
bool sdlGetSurfaceAlphaMod(Pointer<SdlSurface> surface, Pointer<Uint8> alpha) {
final sdlGetSurfaceAlphaModLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlSurface> surface, Pointer<Uint8> alpha),
int Function(Pointer<SdlSurface> surface,
Pointer<Uint8> alpha)>('SDL_GetSurfaceAlphaMod');
return sdlGetSurfaceAlphaModLookupFunction(surface, alpha) == 1;
}