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

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImageBlit ()
 Returns the Blit test image as SDL_Surface.
SDL_SurfaceSDLTest_ImageBlitColor ()
 Returns the BlitColor test image as SDL_Surface.
SDL_SurfaceSDLTest_ImageBlitAlpha ()
 Returns the BlitAlpha test image as SDL_Surface.

Variables

static const SDLTest_SurfaceImage_t SDLTest_imageBlit
static const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
static const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha

Function Documentation

SDL_Surface* SDLTest_ImageBlit ( void  )

Returns the Blit test image as SDL_Surface.

Definition at line 541 of file SDL_test_imageBlit.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 _surfaceSetUp(), render_testBlit(), and surface_testBlit().

{
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_ImageBlitAlpha ( void  )

Returns the BlitAlpha test image as SDL_Surface.

Definition at line 1536 of file SDL_test_imageBlit.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_testBlitAlpha(), and surface_testBlitAlphaMod().

{
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_ImageBlitColor ( void  )

Returns the BlitColor test image as SDL_Surface.

Definition at line 1024 of file SDL_test_imageBlit.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_testBlitColor(), and surface_testBlitColorMod().

{
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_imageBlit
static

Definition at line 27 of file SDL_test_imageBlit.c.

const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha
static

Definition at line 1047 of file SDL_test_imageBlit.c.

const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
static

Definition at line 564 of file SDL_test_imageBlit.c.