Tao.Sdl SDK Documentation

Sdl.SDL_FreeSurface Method 

Frees (deletes) a SDL_Surface

[Visual Basic]
Public Shared Sub SDL_FreeSurface( _
   ByVal surface As IntPtr _
)
[C#]
public static void SDL_FreeSurface(
   IntPtr surface
);

Parameters

surface

Remarks

Frees the resources used by a previously created Sdl.SDL_Surface. If the surface was created using SDL_CreateRGBSurfaceFrom then the pixel data is not freed.

Binds to C-function call in SDL_video.h:

void SDL_FreeSurface(SDL_Surface *surface)

See Also

Sdl Class | Tao.Sdl Namespace | SDL_CreateRGBSurface | SDL_CreateRGBSurfaceFrom