Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-08-23 18:01:45
Size: 1488
Editor: SheenaSmith
Comment: add RF
Revision 5 as of 2010-10-10 22:01:59
Size: 1479
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''surface'''||^a pointer to the [[SDL_Surface]] to free^ ''--or--'' *a pointer to the surface to delete; ,,it is safe to pass NULL as surface,,, ^may be NULL^ in which case [[SDL_FreeSurface]]() will do nothing*|| ||'''surface'''||^the [[SDL_Surface]] to free^ ''--or--'' *,,a pointer to,, the surface to delete; ,,it is safe to pass NULL as surface,,, ^if NULL^ ,,in which case,, [[SDL_FreeSurface]]() will do nothing*||

DRAFT

SDL_FreeSurface

Use this function to allocate and free an RGB surface.

Syntax

void SDL_FreeSurface(SDL_Surface* surface)

Function Parameters

surface

the [[SDL_Surface]] to free --or-- *a pointer to the surface to delete; it is safe to pass NULL as surface, if NULL in which case SDL_FreeSurface() will do nothing*

Code Examples

You can add your code example here

Remarks

You can add useful comments here

green

If the depth is 4 or 8 bits, an empty palette is allocated for the surface. If the depth is greater than 8 bits, the pixel format is set using the flags '[RGB]mask'.

*
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.
*


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