Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-10-11 04:11:45
Size: 813
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 3 as of 2011-01-11 23:15:19
Size: 748
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
Use this function to load a surface from a file. Use this function to load a surface from a BMP file.
Line 16: Line 15:
||'''file'''||^the file containing surface information^|| ||'''file'''||the file containing a BMP image||
Line 32: Line 31:
 .[[SDL_SaveBMP]] *  .[[SDL_SaveBMP]]

SDL_LoadBMP

Use this function to load a surface from a BMP file.

Syntax

SDL_Surface* SDL_LoadBMP(const char* file)

Function Parameters

file

the file containing a BMP image

Return Value

Returns a pointer to a new SDL_Surface structure or NULL if there was an error; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

The new surface should be freed with SDL_FreeSurface().


CategoryAPI, CategorySurface

None: SDL_LoadBMP (last edited 2011-01-11 23:15:19 by SheenaSmith)

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