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().