|
Size: 851
Comment: create page, add content (8/22 changeset 4864)
|
Size: 863
Comment: update formatting - enums, structs, the/an
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| ||'''surface'''||^a pointer to the surface to save^|| ||'''file'''||^a pointer to the file to fill with the surface data^|| |
||'''surface'''||the [[SDL_Surface]] structure to save|| ||'''file'''||,,a pointer to ,,^the file to fill with the surface data^|| |
| Line 21: | Line 21: |
| Returns 0 if successful or -1 if there was an error; call [[SDL_GetError]]() for more information. | Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. |
DRAFT |
SDL_SaveBMP
Use this function to save a surface to a file.
Contents
Syntax
int SDL_SaveBMP(SDL_Surface* surface,
const char* file)
Function Parameters
surface |
the SDL_Surface structure to save |
file |
a pointer to the file to fill with the surface data |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
