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

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImagePrimitives ()
 Returns the Primitives test image as SDL_Surface. More...
 

Variables

static const SDLTest_SurfaceImage_t SDLTest_imagePrimitives
 

Function Documentation

◆ SDLTest_ImagePrimitives()

SDL_Surface* SDLTest_ImagePrimitives ( )

Returns the Primitives test image as SDL_Surface.

Definition at line 491 of file SDL_test_imagePrimitives.c.

492 {
494  (void*)SDLTest_imagePrimitives.pixel_data,
497  SDLTest_imagePrimitives.bytes_per_pixel * 8,
498  SDLTest_imagePrimitives.width * SDLTest_imagePrimitives.bytes_per_pixel,
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 }

References SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, and SDLTest_imagePrimitives.

Referenced by render_testPrimitives().

Variable Documentation

◆ SDLTest_imagePrimitives

const SDLTest_SurfaceImage_t SDLTest_imagePrimitives
static

Definition at line 27 of file SDL_test_imagePrimitives.c.

Referenced by SDLTest_ImagePrimitives().

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_imagePrimitives
static const SDLTest_SurfaceImage_t SDLTest_imagePrimitives
Definition: SDL_test_imagePrimitives.c:27
SDL_BYTEORDER
#define SDL_BYTEORDER
Definition: SDL_config_pandora.h:37