SDL_SurfaceFlags(3type)

SDL_SurfaceFlags3type

The flags on an sdl_surface .

Usage

#include "SDL3/SDL.h"

typedef Uint32 SDL_SurfaceFlags; #define SDL_SURFACE_PREALLOCATED 0x00000001u /**< Surface uses preallocated pixel memory */ #define SDL_SURFACE_LOCK_NEEDED 0x00000002u /**< Surface needs to be locked to access pixels */ #define SDL_SURFACE_LOCKED 0x00000004u /**< Surface is currently locked */ #define SDL_SURFACE_SIMD_ALIGNED 0x00000008u /**< Surface uses pixel memory allocated with SDL_aligned_alloc() */

Header file

Defined in SDL3/SDL_surface.h

Overview

These are generally considered read-only.

Availability

This datatype is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.