SDL_FreeSurface
Frees (deletes) a SDL_Surface
- Provided by: libsdl1.2-dev (Version: 1.2.15+dfsg2-5)
- Source: libsdl1.2
- Report a bug
Frees (deletes) a SDL_Surface
#include "SDL.h"
void SDL_FreeSurface(SDL_Surface *surface);
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.
SDL_CreateRGBSurface SDL_CreateRGBSurfaceFrom