sdlSurfaceHasRle function surface
Returns whether the surface is RLE enabled.
It is safe to pass a NULL surface
here; it will return false.
\param surface the SDL_Surface structure to query. \returns true if the surface is RLE enabled, false otherwise.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_SetSurfaceRLE
extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasRLE(SDL_Surface *surface)
Implementation
bool sdlSurfaceHasRle(Pointer<SdlSurface> surface) {
final sdlSurfaceHasRleLookupFunction = _libSdl
.lookupFunction<
Uint8 Function(Pointer<SdlSurface> surface),
int Function(Pointer<SdlSurface> surface)
>('SDL_SurfaceHasRLE');
return sdlSurfaceHasRleLookupFunction(surface) == 1;
}