SDL_LockSurface (3) Linux Manual Page
SDL_LockSurface – Lock a surface for directly access. Synopsis #include "SDL.h" int SDL_LockSurface(SDL_Surface *surface); Description SDL_LockSurface sets up a surface for directly accessing the pixels. Between calls to SDL_LockSurface and SDL_UnlockSurface, you can write to and read from surface->pixels, using the pixel format stored in surface->format. Once you are done accessing the surface, you should…
