sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.SurfaceShims.Safe

Synopsis

Documentation

lithon_SDL_MUSTLOCK Source #

Arguments

:: Ptr SDL_Surface
surface
the SDL_Surface to check.
-> IO CBool 

Determine whether a surface needs to be locked before its pixels are accessed.

The SDL_MUSTLOCK macro as a function.

Returns
true if the surface must be locked with SDL_LockSurface before its pixels are read or written, false otherwise.
See also
SDL_LockSurface, SDL_UnlockSurface
C declaration
lithon_SDL_MUSTLOCK, defined at sdl3-bindgen-sys/SDL_surface_shims.h 39:24

Since: 3.2.0