SDL_FreeSurface(3)

Frees (deletes) a SDL_Surface

Section 3 libsdl1.2-dev bookworm source

Description

SDL_FreeSurface

NAME

SDL_FreeSurface - Frees (deletes) a SDL_Surface

SYNOPSIS

#include "SDL.h"

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.

SEE ALSO

SDL_CreateRGBSurface SDL_CreateRGBSurfaceFrom