#pragma section-numbers off #pragma disable-camelcase = SDL_FreeSurface = Use this function to free an RGB surface. <> == Syntax == {{{#!highlight cpp void SDL_FreeSurface(SDL_Surface* surface) }}} == Function Parameters == ||'''surface'''||the [[SDL_Surface]] structure to free|| == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == If the surface was created using [[SDL_CreateRGBSurfaceFrom]]() then the pixel data is not freed. It is safe to pass NULL to this function. == Related Functions == .[[SDL_CreateRGBSurface]] .[[SDL_CreateRGBSurfaceFrom]] .[[SDL_LoadBMP]] .[[SDL_LoadBMP_RW]] ---- [[CategoryAPI]], [[CategorySurface]]