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

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImagePrimitivesBlend ()
 Returns the PrimitivesBlend test image as SDL_Surface. More...
 

Variables

static const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend
 

Function Documentation

◆ SDLTest_ImagePrimitivesBlend()

SDL_Surface* SDLTest_ImagePrimitivesBlend ( )

Returns the PrimitivesBlend test image as SDL_Surface.

Definition at line 673 of file SDL_test_imagePrimitivesBlend.c.

674 {
676  (void*)SDLTest_imagePrimitivesBlend.pixel_data,
679  SDLTest_imagePrimitivesBlend.bytes_per_pixel * 8,
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 }

References SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_imagePrimitivesBlend.

Referenced by render_testPrimitivesBlend().

Variable Documentation

◆ SDLTest_imagePrimitivesBlend

const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend
static

Definition at line 27 of file SDL_test_imagePrimitivesBlend.c.

Referenced by SDLTest_ImagePrimitivesBlend().

SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:70
surface
EGLSurface surface
Definition: eglext.h:248
SDL_BIG_ENDIAN
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
SDL_CreateRGBSurfaceFrom
#define SDL_CreateRGBSurfaceFrom
Definition: SDL_dynapi_overrides.h:445
SDLTest_imagePrimitivesBlend
static const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend
Definition: SDL_test_imagePrimitivesBlend.c:27
SDL_BYTEORDER
#define SDL_BYTEORDER
Definition: SDL_config_pandora.h:37