include/SDL_test_images.h
changeset 6763 9cbd31a3450b
parent 6762 c680e085a5f2
child 6773 5ebc5a9e35b4
equal deleted inserted replaced
6762:c680e085a5f2 6763:9cbd31a3450b
    34 */
    34 */
    35 
    35 
    36 #ifndef _SDL_test_images_h
    36 #ifndef _SDL_test_images_h
    37 #define _SDL_test_images_h
    37 #define _SDL_test_images_h
    38 
    38 
       
    39 #include "SDL.h"
       
    40 
    39 #include "begin_code.h"
    41 #include "begin_code.h"
    40 /* Set up for C function definitions, even when using C++ */
    42 /* Set up for C function definitions, even when using C++ */
    41 #ifdef __cplusplus
    43 #ifdef __cplusplus
    42 /* *INDENT-OFF* */
    44 /* *INDENT-OFF* */
    43 extern "C" {
    45 extern "C" {
    44 /* *INDENT-ON* */
    46 /* *INDENT-ON* */
    45 #endif
    47 #endif
    46 
    48 
    47 
       
    48 /**
    49 /**
    49  *Type for test images.
    50  *Type for test images.
    50  */
    51  */
    51 typedef struct SDLTest_SurfaceImage_s {
    52 typedef struct SDLTest_SurfaceImage_s {
    52   int width;
    53   int width;
    53   int height;
    54   int height;
    54   unsigned int  bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    55   unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    55   const unsigned char pixel_data[];
    56   const unsigned char pixel_data[];
    56 } SDLTest_SurfaceImage_t;
    57 } SDLTest_SurfaceImage_t;
    57 
    58 
    58 /* Test images */
    59 /* Test images */
    59 const SDLTest_SurfaceImage_t SDLTest_imageBlit;
    60 SDL_Surface *SDLTest_ImageBlit();
    60 const SDLTest_SurfaceImage_t SDLTest_imageBlitColor;
    61 SDL_Surface *SDLTest_ImageBlitColor();
    61 const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha;
    62 SDL_Surface *SDLTest_ImageBlitAlpha();
    62 const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd;
    63 SDL_Surface *SDLTest_ImageBlitBlendAdd();
    63 const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend;
    64 SDL_Surface *SDLTest_ImageBlitBlend();
    64 const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod;
    65 SDL_Surface *SDLTest_ImageBlitBlendMod();
    65 const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone;
    66 SDL_Surface *SDLTest_ImageBlitBlendNone();
    66 const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll;
    67 SDL_Surface *SDLTest_ImageBlitBlendAll();
    67 const SDLTest_SurfaceImage_t SDLTest_ImageFace;
    68 SDL_Surface *SDLTest_ImageFace();
    68 const SDLTest_SurfaceImage_t SDLTest_imagePrimitives;
    69 SDL_Surface *SDLTest_ImagePrimitives();
    69 const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend;
    70 SDL_Surface *SDLTest_ImagePrimitivesBlend();
    70 
    71 
    71 /* Ends C function definitions when using C++ */
    72 /* Ends C function definitions when using C++ */
    72 #ifdef __cplusplus
    73 #ifdef __cplusplus
    73 /* *INDENT-OFF* */
    74 /* *INDENT-OFF* */
    74 }
    75 }