All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_bmp.c File Reference
#include "SDL_config.h"
#include "SDL_video.h"
#include "SDL_endian.h"
#include "SDL_pixels_c.h"

Go to the source code of this file.


#define BI_BITFIELDS   3
#define BI_RGB   0
#define BI_RLE4   2
#define BI_RLE8   1
#define SAVE_32BIT_BMP


static void CorrectAlphaChannel (SDL_Surface *surface)
SDL_SurfaceSDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
int SDL_SaveBMP_RW (SDL_Surface *saveme, SDL_RWops *dst, int freedst)

Macro Definition Documentation

#define BI_BITFIELDS   3

Definition at line 46 of file SDL_bmp.c.

Referenced by SDL_LoadBMP_RW().

#define BI_RGB   0

Definition at line 43 of file SDL_bmp.c.

Referenced by SDL_LoadBMP_RW(), and SDL_SaveBMP_RW().

#define BI_RLE4   2

Definition at line 45 of file SDL_bmp.c.

#define BI_RLE8   1

Definition at line 44 of file SDL_bmp.c.

#define SAVE_32BIT_BMP

Definition at line 39 of file SDL_bmp.c.

Function Documentation

static void CorrectAlphaChannel ( SDL_Surface surface)

Definition at line 50 of file SDL_bmp.c.

References SDL_Surface::h, SDL_Surface::pitch, SDL_Surface::pixels, SDL_ALPHA_OPAQUE, SDL_FALSE, and SDL_TRUE.

Referenced by SDL_LoadBMP_RW().

SDL_Surface* SDL_LoadBMP_RW ( SDL_RWops src,
int  freesrc