DRAFT

SDL_LoadBMP

Use this function to load a surface from a file.

Syntax

SDL_Surface* SDL_LoadBMP(const char* file)

Function Parameters

file

a pointer to the file containing the surface information

Return Value

Returns the new surface 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().

*
This is from SDL_LoadBMP in the old wiki. Does it apply here?

Note: When loading a 24-bit Windows BMP file, pixel data points are loaded as blue, green, red, and NOT red, green, blue (as one might expect).
*


CategoryAPI, CategorySurface

SDL_LoadBMP (last edited 2010-08-23 17:40:05 by SheenaSmith)