include/SDL_test_images.h
changeset 7191 75360622e65f
parent 7053 187225ae13e5
child 8149 681eb46b8ac4
equal deleted inserted replaced
7190:11612d544fcd 7191:75360622e65f
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 
    21 
    22 /**
    22 /**
    23  *  \file SDL_test_images.h
    23  *  \file SDL_test_images.h
    24  *  
    24  *
    25  *  Include file for SDL test framework.
    25  *  Include file for SDL test framework.
    26  *
    26  *
    27  *  This code is a part of the SDL2_test library, not the main SDL library.
    27  *  This code is a part of the SDL2_test library, not the main SDL library.
    28  */
    28  */
    29 
    29 
    30 /* 
    30 /*
    31 
    31 
    32  Defines some images for tests.
    32  Defines some images for tests.
    33   
    33 
    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"
    39 #include "SDL.h"
    40 
    40 
    41 #include "begin_code.h"
    41 #include "begin_code.h"
    42 /* Set up for C function definitions, even when using C++ */
    42 /* Set up for C function definitions, even when using C++ */
    43 #ifdef __cplusplus
    43 #ifdef __cplusplus
    44 /* *INDENT-OFF* */
       
    45 extern "C" {
    44 extern "C" {
    46 /* *INDENT-ON* */
       
    47 #endif
    45 #endif
    48 
    46 
    49 /**
    47 /**
    50  *Type for test images.
    48  *Type for test images.
    51  */
    49  */
    52 typedef struct SDLTest_SurfaceImage_s {
    50 typedef struct SDLTest_SurfaceImage_s {
    53   int width;
    51   int width;
    54   int height;
    52   int height;
    55   unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    53   unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
    56   const char *pixel_data;
    54   const char *pixel_data;
    57 } SDLTest_SurfaceImage_t;
    55 } SDLTest_SurfaceImage_t;
    58 
    56 
    59 /* Test images */
    57 /* Test images */
    60 SDL_Surface *SDLTest_ImageBlit();
    58 SDL_Surface *SDLTest_ImageBlit();
    69 SDL_Surface *SDLTest_ImagePrimitives();
    67 SDL_Surface *SDLTest_ImagePrimitives();
    70 SDL_Surface *SDLTest_ImagePrimitivesBlend();
    68 SDL_Surface *SDLTest_ImagePrimitivesBlend();
    71 
    69 
    72 /* Ends C function definitions when using C++ */
    70 /* Ends C function definitions when using C++ */
    73 #ifdef __cplusplus
    71 #ifdef __cplusplus
    74 /* *INDENT-OFF* */
       
    75 }
    72 }
    76 /* *INDENT-ON* */
       
    77 #endif
    73 #endif
    78 #include "close_code.h"
    74 #include "close_code.h"
    79 
    75 
    80 #endif /* _SDL_test_images_h */
    76 #endif /* _SDL_test_images_h */
    81 
    77