SDL  2.0
SDL_test_imageBlitBlend.c File Reference
#include "SDL_config.h"
#include "SDL_test.h"
+ Include dependency graph for SDL_test_imageBlitBlend.c:

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImageBlitBlendAdd ()
 Returns the BlitBlendAdd test image as SDL_Surface.
SDL_SurfaceSDLTest_ImageBlitBlend ()
 Returns the BlitBlend test image as SDL_Surface.
SDL_SurfaceSDLTest_ImageBlitBlendMod ()
 Returns the BlitBlendMod test image as SDL_Surface.
SDL_SurfaceSDLTest_ImageBlitBlendNone ()
 Returns the BlitBlendNone test image as SDL_Surface.
SDL_SurfaceSDLTest_ImageBlitBlendAll ()
 Returns the BlitBlendAll test image as SDL_Surface.

Variables

static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll

Function Documentation

SDL_Surface* SDLTest_ImageBlitBlend ( void  )

Returns the BlitBlend test image as SDL_Surface.

Definition at line 1111 of file SDL_test_imageBlitBlend.c.

References SDLTest_SurfaceImage_t::bytes_per_pixel, SDLTest_SurfaceImage_t::height, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendBlend().

{
0xff000000, /* Red bit mask. */
0x00ff0000, /* Green bit mask. */
0x0000ff00, /* Blue bit mask. */
0x000000ff /* Alpha bit mask. */
#else
0x000000ff, /* Red bit mask. */
0x0000ff00, /* Green bit mask. */
0x00ff0000, /* Blue bit mask. */
0xff000000 /* Alpha bit mask. */
#endif
);
return surface;
}
SDL_Surface* SDLTest_ImageBlitBlendAdd ( void  )

Returns the BlitBlendAdd test image as SDL_Surface.

Definition at line 581 of file SDL_test_imageBlitBlend.c.

References SDLTest_SurfaceImage_t::bytes_per_pixel, SDLTest_SurfaceImage_t::height, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendAdd().

{
0xff000000, /* Red bit mask. */
0x00ff0000, /* Green bit mask. */
0x0000ff00, /* Blue bit mask. */
0x000000ff /* Alpha bit mask. */
#else
0x000000ff, /* Red bit mask. */
0x0000ff00, /* Green bit mask. */
0x00ff0000, /* Blue bit mask. */
0xff000000 /* Alpha bit mask. */
#endif
);
return surface;
}
SDL_Surface* SDLTest_ImageBlitBlendAll ( void  )

Returns the BlitBlendAll test image as SDL_Surface.

Definition at line 2822 of file SDL_test_imageBlitBlend.c.

References SDLTest_SurfaceImage_t::bytes_per_pixel, SDLTest_SurfaceImage_t::height, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendLoop().

{
0xff000000, /* Red bit mask. */
0x00ff0000, /* Green bit mask. */
0x0000ff00, /* Blue bit mask. */
0x000000ff /* Alpha bit mask. */
#else
0x000000ff, /* Red bit mask. */
0x0000ff00, /* Green bit mask. */
0x00ff0000, /* Blue bit mask. */
0xff000000 /* Alpha bit mask. */
#endif
);
return surface;
}
SDL_Surface* SDLTest_ImageBlitBlendMod ( void  )

Returns the BlitBlendMod test image as SDL_Surface.

Definition at line 1541 of file SDL_test_imageBlitBlend.c.

References SDLTest_SurfaceImage_t::bytes_per_pixel, SDLTest_SurfaceImage_t::height, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendMod().

{
0xff000000, /* Red bit mask. */
0x00ff0000, /* Green bit mask. */
0x0000ff00, /* Blue bit mask. */
0x000000ff /* Alpha bit mask. */
#else
0x000000ff, /* Red bit mask. */
0x0000ff00, /* Green bit mask. */
0x00ff0000, /* Blue bit mask. */
0xff000000 /* Alpha bit mask. */
#endif
);
return surface;
}
SDL_Surface* SDLTest_ImageBlitBlendNone ( void  )

Returns the BlitBlendNone test image as SDL_Surface.

Definition at line 2354 of file SDL_test_imageBlitBlend.c.

References SDLTest_SurfaceImage_t::bytes_per_pixel, SDLTest_SurfaceImage_t::height, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendNone().

{
0xff000000, /* Red bit mask. */
0x00ff0000, /* Green bit mask. */
0x0000ff00, /* Blue bit mask. */
0x000000ff /* Alpha bit mask. */
#else
0x000000ff, /* Red bit mask. */
0x0000ff00, /* Green bit mask. */
0x00ff0000, /* Blue bit mask. */
0xff000000 /* Alpha bit mask. */
#endif
);
return surface;
}

Variable Documentation

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
static

Definition at line 604 of file SDL_test_imageBlitBlend.c.

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd
static

Definition at line 27 of file SDL_test_imageBlitBlend.c.

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll
static

Definition at line 2377 of file SDL_test_imageBlitBlend.c.

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod
static

Definition at line 1134 of file SDL_test_imageBlitBlend.c.

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone
static

Definition at line 1564 of file SDL_test_imageBlitBlend.c.