SDL_FreeSurface function
SDL_FreeSurface -- Frees (deletes) a SDL_Surface
Syntax
void SDL_FreeSurface(SDL_Surface* surface);
Description
Frees the resources used by a previously created SDL_Surface. If the surface was created using SDL_CreateRGBSurfaceFrom then the pixel data is not freed.
Parameter
surface [in]
The pointer to the surface to delete. It is safe to pass NULL as surface, in which case SDL_FreeSurface will do nothing.
Return value
nothing
See also
SDL_CreateRGBSurface, SDL_CreateRGBSurfaceFrom
Requirements
Header |
SDL.h |
Version |
1.2.13 |
Shared object |
libSDL.so |
DLL |
SDL.dll |
