Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2011-01-05 20:01:51
Size: 695
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Revision 8 as of 2014-08-11 20:18:34
Size: 740
Comment: Added remark about NULL (answer to question from Feedback).
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
It is safe to pass NULL to this function.

SDL_FreeSurface

Use this function to free an RGB surface.

Syntax

void SDL_FreeSurface(SDL_Surface* surface)

Function Parameters

surface

the SDL_Surface structure to free

Code Examples

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.


CategoryAPI, CategorySurface

None: SDL_FreeSurface (last edited 2014-08-11 20:18:34 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit