destroy method
Free a surface.
It is safe to pass NULL to this function.
\param surface the SDL_Surface to free.
\since This function is available since SDL 3.1.3.
\sa SDL_CreateSurface \sa SDL_CreateSurfaceFrom
extern SDL_DECLSPEC void SDLCALL SDL_DestroySurface(SDL_Surface *surface)
Implementation
bool destroy() {
if (this != nullptr) {
sdlDestroySurface(this);
return true;
}
return false;
}