SDL 2.0
SDL_test_images.h File Reference
#include "SDL.h"
#include "begin_code.h"
#include "close_code.h"
+ Include dependency graph for SDL_test_images.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SDLTest_SurfaceImage_t
 

Functions

SDL_SurfaceSDLTest_ImageBlit (void)
 Returns the Blit test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitColor (void)
 Returns the BlitColor test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitAlpha (void)
 Returns the BlitAlpha test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendAdd (void)
 Returns the BlitBlendAdd test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlend (void)
 Returns the BlitBlend test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendMod (void)
 Returns the BlitBlendMod test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendNone (void)
 Returns the BlitBlendNone test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendAll (void)
 Returns the BlitBlendAll test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageFace (void)
 Returns the Face test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImagePrimitives (void)
 Returns the Primitives test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImagePrimitivesBlend (void)
 Returns the PrimitivesBlend test image as SDL_Surface. More...
 

Detailed Description

Include file for SDL test framework.

This code is a part of the SDL2_test library, not the main SDL library.

Definition in file SDL_test_images.h.

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.

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}
#define SDL_BYTEORDER
#define SDL_CreateRGBSurfaceFrom
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
static const SDLTest_SurfaceImage_t SDLTest_imageBlit
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_imageBlit, and SDLTest_SurfaceImage_t::width.

Referenced by _surfaceSetUp(), render_testBlit(), and surface_testBlit().

◆ 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.

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

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

Referenced by render_testBlitAlpha(), and surface_testBlitAlphaMod().

◆ 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}
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend

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

◆ 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.

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}
static const SDLTest_SurfaceImage_t SDLTest_imageBlitColor

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

Referenced by render_testBlitColor(), and surface_testBlitColorMod().

◆ SDLTest_ImageFace()

SDL_Surface * SDLTest_ImageFace ( void  )

Returns the Face test image as SDL_Surface.

Definition at line 224 of file SDL_test_imageFace.c.

225{
233 0xff000000, /* Red bit mask. */
234 0x00ff0000, /* Green bit mask. */
235 0x0000ff00, /* Blue bit mask. */
236 0x000000ff /* Alpha bit mask. */
237#else
238 0x000000ff, /* Red bit mask. */
239 0x0000ff00, /* Green bit mask. */
240 0x00ff0000, /* Blue bit mask. */
241 0xff000000 /* Alpha bit mask. */
242#endif
243 );
244 return surface;
245}
static const SDLTest_SurfaceImage_t SDLTest_imageFace

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

Referenced by _loadTestFace(), _testBlitBlendMode(), mouse_createFreeColorCursor(), surface_testCompleteSurfaceConversion(), surface_testSaveLoadBitmap(), and surface_testSurfaceConversion().

◆ SDLTest_ImagePrimitives()

SDL_Surface * SDLTest_ImagePrimitives ( void  )

Returns the Primitives test image as SDL_Surface.

Definition at line 491 of file SDL_test_imagePrimitives.c.

492{
500 0xff000000, /* Red bit mask. */
501 0x00ff0000, /* Green bit mask. */
502 0x0000ff00, /* Blue bit mask. */
503 0x000000ff /* Alpha bit mask. */
504#else
505 0x000000ff, /* Red bit mask. */
506 0x0000ff00, /* Green bit mask. */
507 0x00ff0000, /* Blue bit mask. */
508 0xff000000 /* Alpha bit mask. */
509#endif
510 );
511 return surface;
512}
static const SDLTest_SurfaceImage_t SDLTest_imagePrimitives

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

Referenced by render_testPrimitives().

◆ SDLTest_ImagePrimitivesBlend()

SDL_Surface * SDLTest_ImagePrimitivesBlend ( void  )

Returns the PrimitivesBlend test image as SDL_Surface.

Definition at line 673 of file SDL_test_imagePrimitivesBlend.c.

674{
682 0xff000000, /* Red bit mask. */
683 0x00ff0000, /* Green bit mask. */
684 0x0000ff00, /* Blue bit mask. */
685 0x000000ff /* Alpha bit mask. */
686#else
687 0x000000ff, /* Red bit mask. */
688 0x0000ff00, /* Green bit mask. */
689 0x00ff0000, /* Blue bit mask. */
690 0xff000000 /* Alpha bit mask. */
691#endif
692 );
693 return surface;
694}
static const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend

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

Referenced by render_testPrimitivesBlend().