SDL_UnlockSurface(3)
π SDL_UnlockSurface β from the SDL3 FUNCTIONS girlies β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we talk about SDL_UnlockSurface π«Ά
πΈ NAME πΈ
SDL_UnlockSurface β release a surface after you've been directly accessing the pixels. like, put it back, babe π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_surface.h>
void SDL_UnlockSurface(SDL_Surface *surface);
no return value, no drama, just vibes π
π FUNCTION PARAMETERS π
surfaceβ theSDL_Surfacestructure you want unlocked. that's the one. the main character π
π THREAD SAFETY π
not thread safe, bestie. NOT. π
and before you come for me: the "locking" this function is talking about is not thread-safe locking at all. it's about making the pixels available for direct access. two completely different things, iykyk. do not conflate them, fr fr π
π¦ AVAILABILITY π¦
this one's been serving since SDL 3.2.0 β¨
π SEE ALSO π
SDL_LockSurface(3)β the other half of the situationship, go read it π
and that's the whole page, no cap π§ the source of all this wisdom is Simple Directmedia Layer, running SDL 3.4.18 β mwah, slay, periodt π π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms