(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_SurfaceFlags

The flags on an SDL_Surface.

Header File

Defined in <SDL3/SDL_surface.h>

Syntax

typedef Uint32 SDL_SurfaceFlags;

#define SDL_PREALLOC                0x00000001u /**< Surface uses preallocated memory */
#define SDL_RLEACCEL                0x00000002u /**< Surface is RLE encoded */
#define SDL_DONTFREE                0x00000004u /**< Surface is referenced internally */
#define SDL_SIMD_ALIGNED            0x00000008u /**< Surface uses aligned memory */
#define SDL_SURFACE_USES_PROPERTIES 0x00000010u /**< Surface uses properties */

Remarks

These are generally meant to be considered read-only.

Version

This datatype is available since SDL 3.0.0.


CategoryAPI, CategoryAPIDatatype, CategorySurface