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

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImageFace ()
 Returns the Face test image as SDL_Surface. More...
 

Variables

static const SDLTest_SurfaceImage_t SDLTest_imageFace
 

Function Documentation

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

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

Variable Documentation

◆ SDLTest_imageFace

const SDLTest_SurfaceImage_t SDLTest_imageFace
static

Definition at line 27 of file SDL_test_imageFace.c.

Referenced by SDLTest_ImageFace().

SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:70
surface
EGLSurface surface
Definition: eglext.h:248
SDLTest_SurfaceImage_t::pixel_data
const char * pixel_data
Definition: SDL_test_images.h:54
SDL_BIG_ENDIAN
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
SDL_CreateRGBSurfaceFrom
#define SDL_CreateRGBSurfaceFrom
Definition: SDL_dynapi_overrides.h:445
SDLTest_imageFace
static const SDLTest_SurfaceImage_t SDLTest_imageFace
Definition: SDL_test_imageFace.c:27
SDLTest_SurfaceImage_t::bytes_per_pixel
unsigned int bytes_per_pixel
Definition: SDL_test_images.h:53
SDLTest_SurfaceImage_t::width
int width
Definition: SDL_test_images.h:51
SDL_BYTEORDER
#define SDL_BYTEORDER
Definition: SDL_config_pandora.h:37
SDLTest_SurfaceImage_t::height
int height
Definition: SDL_test_images.h:52