include/SDL_test_images.h
changeset 6763 9cbd31a3450b
parent 6762 c680e085a5f2
child 6773 5ebc5a9e35b4
     1.1 --- a/include/SDL_test_images.h	Thu Dec 20 08:50:36 2012 -0800
     1.2 +++ b/include/SDL_test_images.h	Sat Dec 22 16:06:55 2012 -0800
     1.3 @@ -36,6 +36,8 @@
     1.4  #ifndef _SDL_test_images_h
     1.5  #define _SDL_test_images_h
     1.6  
     1.7 +#include "SDL.h"
     1.8 +
     1.9  #include "begin_code.h"
    1.10  /* Set up for C function definitions, even when using C++ */
    1.11  #ifdef __cplusplus
    1.12 @@ -44,29 +46,28 @@
    1.13  /* *INDENT-ON* */
    1.14  #endif
    1.15  
    1.16 -
    1.17  /**
    1.18   *Type for test images.
    1.19   */
    1.20  typedef struct SDLTest_SurfaceImage_s {
    1.21    int width;
    1.22    int height;
    1.23 -  unsigned int  bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    1.24 +  unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    1.25    const unsigned char pixel_data[];
    1.26  } SDLTest_SurfaceImage_t;
    1.27  
    1.28  /* Test images */
    1.29 -const SDLTest_SurfaceImage_t SDLTest_imageBlit;
    1.30 -const SDLTest_SurfaceImage_t SDLTest_imageBlitColor;
    1.31 -const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha;
    1.32 -const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd;
    1.33 -const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend;
    1.34 -const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod;
    1.35 -const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone;
    1.36 -const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll;
    1.37 -const SDLTest_SurfaceImage_t SDLTest_ImageFace;
    1.38 -const SDLTest_SurfaceImage_t SDLTest_imagePrimitives;
    1.39 -const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend;
    1.40 +SDL_Surface *SDLTest_ImageBlit();
    1.41 +SDL_Surface *SDLTest_ImageBlitColor();
    1.42 +SDL_Surface *SDLTest_ImageBlitAlpha();
    1.43 +SDL_Surface *SDLTest_ImageBlitBlendAdd();
    1.44 +SDL_Surface *SDLTest_ImageBlitBlend();
    1.45 +SDL_Surface *SDLTest_ImageBlitBlendMod();
    1.46 +SDL_Surface *SDLTest_ImageBlitBlendNone();
    1.47 +SDL_Surface *SDLTest_ImageBlitBlendAll();
    1.48 +SDL_Surface *SDLTest_ImageFace();
    1.49 +SDL_Surface *SDLTest_ImagePrimitives();
    1.50 +SDL_Surface *SDLTest_ImagePrimitivesBlend();
    1.51  
    1.52  /* Ends C function definitions when using C++ */
    1.53  #ifdef __cplusplus