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. More...
 
SDL_SurfaceSDLTest_ImageBlitColor ()
 Returns the BlitColor test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitAlpha ()
 Returns the BlitAlpha test image as SDL_Surface. More...
 

Variables

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

Function Documentation

◆ SDLTest_ImageBlit()

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

542 {
550  0xff000000, /* Red bit mask. */
551  0x00ff0000, /* Green bit mask. */
552  0x0000ff00, /* Blue bit mask. */
553  0x000000ff /* Alpha bit mask. */
554 #else
555  0x000000ff, /* Red bit mask. */
556  0x0000ff00, /* Green bit mask. */
557  0x00ff0000, /* Blue bit mask. */
558  0xff000000 /* Alpha bit mask. */
559 #endif
560  );
561  return surface;
562 }
EGLSurface surface
Definition: eglext.h:248
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
#define SDL_CreateRGBSurfaceFrom
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
unsigned int bytes_per_pixel
static const SDLTest_SurfaceImage_t SDLTest_imageBlit
#define SDL_BYTEORDER

◆ SDLTest_ImageBlitAlpha()

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

1537 {
1545  0xff000000, /* Red bit mask. */
1546  0x00ff0000, /* Green bit mask. */
1547  0x0000ff00, /* Blue bit mask. */
1548  0x000000ff /* Alpha bit mask. */
1549 #else
1550  0x000000ff, /* Red bit mask. */
1551  0x0000ff00, /* Green bit mask. */
1552  0x00ff0000, /* Blue bit mask. */
1553  0xff000000 /* Alpha bit mask. */
1554 #endif
1555  );
1556  return surface;
1557 }
static const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha
EGLSurface surface
Definition: eglext.h:248
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
#define SDL_CreateRGBSurfaceFrom
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
unsigned int bytes_per_pixel
#define SDL_BYTEORDER

◆ SDLTest_ImageBlitColor()

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

1025 {
1033  0xff000000, /* Red bit mask. */
1034  0x00ff0000, /* Green bit mask. */
1035  0x0000ff00, /* Blue bit mask. */
1036  0x000000ff /* Alpha bit mask. */
1037 #else
1038  0x000000ff, /* Red bit mask. */
1039  0x0000ff00, /* Green bit mask. */
1040  0x00ff0000, /* Blue bit mask. */
1041  0xff000000 /* Alpha bit mask. */
1042 #endif
1043  );
1044  return surface;
1045 }
EGLSurface surface
Definition: eglext.h:248
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
#define SDL_CreateRGBSurfaceFrom
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
unsigned int bytes_per_pixel
static const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
#define SDL_BYTEORDER

Variable Documentation

◆ SDLTest_imageBlit

const SDLTest_SurfaceImage_t SDLTest_imageBlit
static

Definition at line 27 of file SDL_test_imageBlit.c.

◆ SDLTest_imageBlitAlpha

const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha
static

Definition at line 1047 of file SDL_test_imageBlit.c.

◆ SDLTest_imageBlitColor

const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
static

Definition at line 564 of file SDL_test_imageBlit.c.