sdlHasSurfaceRle function
Returns whether the surface is RLE enabled
It is safe to pass a NULL surface
here; it will return SDL_FALSE.
\param surface the SDL_Surface structure to query \returns SDL_TRUE if the surface is RLE enabled, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.14.
\sa SDL_SetSurfaceRLE
extern DECLSPEC SDL_bool SDLCALL SDL_HasSurfaceRLE(SDL_Surface * surface)
Implementation
bool sdlHasSurfaceRle(Pointer<SdlSurface> surface) {
final sdlHasSurfaceRleLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlSurface> surface),
int Function(Pointer<SdlSurface> surface)>('SDL_HasSurfaceRLE');
return sdlHasSurfaceRleLookupFunction(surface) == 1;
}