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. More...
 
SDL_SurfaceSDLTest_ImageBlitBlend ()
 Returns the BlitBlend test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendMod ()
 Returns the BlitBlendMod test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendNone ()
 Returns the BlitBlendNone test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendAll ()
 Returns the BlitBlendAll test image as SDL_Surface. More...
 

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

◆ SDLTest_ImageBlitBlend()

SDL_Surface * SDLTest_ImageBlitBlend ( void  )

Returns the BlitBlend test image as SDL_Surface.

Definition at line 1111 of file SDL_test_imageBlitBlend.c.

1112{
1120 0xff000000, /* Red bit mask. */
1121 0x00ff0000, /* Green bit mask. */
1122 0x0000ff00, /* Blue bit mask. */
1123 0x000000ff /* Alpha bit mask. */
1124#else
1125 0x000000ff, /* Red bit mask. */
1126 0x0000ff00, /* Green bit mask. */
1127 0x00ff0000, /* Blue bit mask. */
1128 0xff000000 /* Alpha bit mask. */
1129#endif
1130 );
1131 return surface;
1132}
#define SDL_BYTEORDER
#define SDL_CreateRGBSurfaceFrom
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
EGLSurface surface
Definition: eglext.h:248
A collection of pixels used in software blitting.
Definition: SDL_surface.h:71
unsigned int bytes_per_pixel

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

Referenced by render_testBlitBlend(), and surface_testBlitBlendBlend().

◆ SDLTest_ImageBlitBlendAdd()

SDL_Surface * SDLTest_ImageBlitBlendAdd ( void  )

Returns the BlitBlendAdd test image as SDL_Surface.

Definition at line 581 of file SDL_test_imageBlitBlend.c.

582{
590 0xff000000, /* Red bit mask. */
591 0x00ff0000, /* Green bit mask. */
592 0x0000ff00, /* Blue bit mask. */
593 0x000000ff /* Alpha bit mask. */
594#else
595 0x000000ff, /* Red bit mask. */
596 0x0000ff00, /* Green bit mask. */
597 0x00ff0000, /* Blue bit mask. */
598 0xff000000 /* Alpha bit mask. */
599#endif
600 );
601 return surface;
602}
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd

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

Referenced by render_testBlitBlend(), and surface_testBlitBlendAdd().

◆ SDLTest_ImageBlitBlendAll()

SDL_Surface * SDLTest_ImageBlitBlendAll ( void  )

Returns the BlitBlendAll test image as SDL_Surface.

Definition at line 2822 of file SDL_test_imageBlitBlend.c.

2823{
2831 0xff000000, /* Red bit mask. */
2832 0x00ff0000, /* Green bit mask. */
2833 0x0000ff00, /* Blue bit mask. */
2834 0x000000ff /* Alpha bit mask. */
2835#else
2836 0x000000ff, /* Red bit mask. */
2837 0x0000ff00, /* Green bit mask. */
2838 0x00ff0000, /* Blue bit mask. */
2839 0xff000000 /* Alpha bit mask. */
2840#endif
2841 );
2842 return surface;
2843}
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll

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

Referenced by render_testBlitBlend(), and surface_testBlitBlendLoop().

◆ SDLTest_ImageBlitBlendMod()

SDL_Surface * SDLTest_ImageBlitBlendMod ( void  )

Returns the BlitBlendMod test image as SDL_Surface.

Definition at line 1541 of file SDL_test_imageBlitBlend.c.

1542{
1550 0xff000000, /* Red bit mask. */
1551 0x00ff0000, /* Green bit mask. */
1552 0x0000ff00, /* Blue bit mask. */
1553 0x000000ff /* Alpha bit mask. */
1554#else
1555 0x000000ff, /* Red bit mask. */
1556 0x0000ff00, /* Green bit mask. */
1557 0x00ff0000, /* Blue bit mask. */
1558 0xff000000 /* Alpha bit mask. */
1559#endif
1560 );
1561 return surface;
1562}
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod

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

Referenced by render_testBlitBlend(), and surface_testBlitBlendMod().

◆ SDLTest_ImageBlitBlendNone()

SDL_Surface * SDLTest_ImageBlitBlendNone ( void  )

Returns the BlitBlendNone test image as SDL_Surface.

Definition at line 2354 of file SDL_test_imageBlitBlend.c.

2355{
2363 0xff000000, /* Red bit mask. */
2364 0x00ff0000, /* Green bit mask. */
2365 0x0000ff00, /* Blue bit mask. */
2366 0x000000ff /* Alpha bit mask. */
2367#else
2368 0x000000ff, /* Red bit mask. */
2369 0x0000ff00, /* Green bit mask. */
2370 0x00ff0000, /* Blue bit mask. */
2371 0xff000000 /* Alpha bit mask. */
2372#endif
2373 );
2374 return surface;
2375}
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone

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

Referenced by render_testBlitBlend(), and surface_testBlitBlendNone().

Variable Documentation

◆ SDLTest_imageBlitBlend

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
static

Definition at line 604 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlend().

◆ SDLTest_imageBlitBlendAdd

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd
static

Definition at line 27 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendAdd().

◆ SDLTest_imageBlitBlendAll

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll
static

Definition at line 2377 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendAll().

◆ SDLTest_imageBlitBlendMod

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod
static

Definition at line 1134 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendMod().

◆ SDLTest_imageBlitBlendNone

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone
static

Definition at line 1564 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendNone().