SDL_SurfaceHasRLE - Man Page

Returns whether the surface is RLE enabled.

Header File

Defined in SDL3/SDL_surface.h

Synopsis

#include "SDL3/SDL.h"

bool SDL_SurfaceHasRLE(SDL_Surface *surface);

Description

It is safe to pass a NULL surface here; it will return false.

Function Parameters

surface

the SDL_Surface
structure to query.

Return Value

Returns true if the surface is RLE enabled, false otherwise.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_SetSurfaceRLE(3)

Info

SDL 3.2.10 Simple Directmedia Layer SDL3 FUNCTIONS