|
Size: 813
Comment: update content - pointers, structs
|
← Revision 3 as of 2011-01-11 23:15:19 ⇥
Size: 748
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.
Contents
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().
