src/test/SDL_test_imageBlitBlend.c
changeset 7191 75360622e65f
parent 6885 700f1b25f77f
child 8149 681eb46b8ac4
equal deleted inserted replaced
7190:11612d544fcd 7191:75360622e65f
   578 /**
   578 /**
   579  * \brief Returns the BlitBlendAdd test image as SDL_Surface.
   579  * \brief Returns the BlitBlendAdd test image as SDL_Surface.
   580  */
   580  */
   581 SDL_Surface *SDLTest_ImageBlitBlendAdd()
   581 SDL_Surface *SDLTest_ImageBlitBlendAdd()
   582 {
   582 {
   583    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom( 
   583    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(
   584         (void*)SDLTest_imageBlitBlendAdd.pixel_data,
   584         (void*)SDLTest_imageBlitBlendAdd.pixel_data,
   585         SDLTest_imageBlitBlendAdd.width, 
   585         SDLTest_imageBlitBlendAdd.width,
   586         SDLTest_imageBlitBlendAdd.height, 
   586         SDLTest_imageBlitBlendAdd.height,
   587         SDLTest_imageBlitBlendAdd.bytes_per_pixel * 8, 
   587         SDLTest_imageBlitBlendAdd.bytes_per_pixel * 8,
   588         SDLTest_imageBlitBlendAdd.width * SDLTest_imageBlitBlendAdd.bytes_per_pixel,
   588         SDLTest_imageBlitBlendAdd.width * SDLTest_imageBlitBlendAdd.bytes_per_pixel,
   589 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
   589 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
   590          0xff000000, /* Red bit mask. */
   590          0xff000000, /* Red bit mask. */
   591          0x00ff0000, /* Green bit mask. */
   591          0x00ff0000, /* Green bit mask. */
   592          0x0000ff00, /* Blue bit mask. */
   592          0x0000ff00, /* Blue bit mask. */
  1108 /**
  1108 /**
  1109  * \brief Returns the BlitBlend test image as SDL_Surface.
  1109  * \brief Returns the BlitBlend test image as SDL_Surface.
  1110  */
  1110  */
  1111 SDL_Surface *SDLTest_ImageBlitBlend()
  1111 SDL_Surface *SDLTest_ImageBlitBlend()
  1112 {
  1112 {
  1113    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom( 
  1113    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(
  1114         (void*)SDLTest_imageBlitBlend.pixel_data,
  1114         (void*)SDLTest_imageBlitBlend.pixel_data,
  1115         SDLTest_imageBlitBlend.width, 
  1115         SDLTest_imageBlitBlend.width,
  1116         SDLTest_imageBlitBlend.height, 
  1116         SDLTest_imageBlitBlend.height,
  1117         SDLTest_imageBlitBlend.bytes_per_pixel * 8, 
  1117         SDLTest_imageBlitBlend.bytes_per_pixel * 8,
  1118         SDLTest_imageBlitBlend.width * SDLTest_imageBlitBlend.bytes_per_pixel,
  1118         SDLTest_imageBlitBlend.width * SDLTest_imageBlitBlend.bytes_per_pixel,
  1119 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  1119 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  1120          0xff000000, /* Red bit mask. */
  1120          0xff000000, /* Red bit mask. */
  1121          0x00ff0000, /* Green bit mask. */
  1121          0x00ff0000, /* Green bit mask. */
  1122          0x0000ff00, /* Blue bit mask. */
  1122          0x0000ff00, /* Blue bit mask. */
  1538 /**
  1538 /**
  1539  * \brief Returns the BlitBlendMod test image as SDL_Surface.
  1539  * \brief Returns the BlitBlendMod test image as SDL_Surface.
  1540  */
  1540  */
  1541 SDL_Surface *SDLTest_ImageBlitBlendMod()
  1541 SDL_Surface *SDLTest_ImageBlitBlendMod()
  1542 {
  1542 {
  1543    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom( 
  1543    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(
  1544         (void*)SDLTest_imageBlitBlendMod.pixel_data,
  1544         (void*)SDLTest_imageBlitBlendMod.pixel_data,
  1545         SDLTest_imageBlitBlendMod.width, 
  1545         SDLTest_imageBlitBlendMod.width,
  1546         SDLTest_imageBlitBlendMod.height, 
  1546         SDLTest_imageBlitBlendMod.height,
  1547         SDLTest_imageBlitBlendMod.bytes_per_pixel * 8, 
  1547         SDLTest_imageBlitBlendMod.bytes_per_pixel * 8,
  1548         SDLTest_imageBlitBlendMod.width * SDLTest_imageBlitBlendMod.bytes_per_pixel,
  1548         SDLTest_imageBlitBlendMod.width * SDLTest_imageBlitBlendMod.bytes_per_pixel,
  1549 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  1549 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  1550          0xff000000, /* Red bit mask. */
  1550          0xff000000, /* Red bit mask. */
  1551          0x00ff0000, /* Green bit mask. */
  1551          0x00ff0000, /* Green bit mask. */
  1552          0x0000ff00, /* Blue bit mask. */
  1552          0x0000ff00, /* Blue bit mask. */
  2351 /**
  2351 /**
  2352  * \brief Returns the BlitBlendNone test image as SDL_Surface.
  2352  * \brief Returns the BlitBlendNone test image as SDL_Surface.
  2353  */
  2353  */
  2354 SDL_Surface *SDLTest_ImageBlitBlendNone()
  2354 SDL_Surface *SDLTest_ImageBlitBlendNone()
  2355 {
  2355 {
  2356    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom( 
  2356    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(
  2357         (void*)SDLTest_imageBlitBlendNone.pixel_data,
  2357         (void*)SDLTest_imageBlitBlendNone.pixel_data,
  2358         SDLTest_imageBlitBlendNone.width, 
  2358         SDLTest_imageBlitBlendNone.width,
  2359         SDLTest_imageBlitBlendNone.height, 
  2359         SDLTest_imageBlitBlendNone.height,
  2360         SDLTest_imageBlitBlendNone.bytes_per_pixel * 8, 
  2360         SDLTest_imageBlitBlendNone.bytes_per_pixel * 8,
  2361         SDLTest_imageBlitBlendNone.width * SDLTest_imageBlitBlendNone.bytes_per_pixel,
  2361         SDLTest_imageBlitBlendNone.width * SDLTest_imageBlitBlendNone.bytes_per_pixel,
  2362 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  2362 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  2363          0xff000000, /* Red bit mask. */
  2363          0xff000000, /* Red bit mask. */
  2364          0x00ff0000, /* Green bit mask. */
  2364          0x00ff0000, /* Green bit mask. */
  2365          0x0000ff00, /* Blue bit mask. */
  2365          0x0000ff00, /* Blue bit mask. */
  2819 /**
  2819 /**
  2820  * \brief Returns the BlitBlendAll test image as SDL_Surface.
  2820  * \brief Returns the BlitBlendAll test image as SDL_Surface.
  2821  */
  2821  */
  2822 SDL_Surface *SDLTest_ImageBlitBlendAll()
  2822 SDL_Surface *SDLTest_ImageBlitBlendAll()
  2823 {
  2823 {
  2824    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom( 
  2824    SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(
  2825         (void*)SDLTest_imageBlitBlendAll.pixel_data,
  2825         (void*)SDLTest_imageBlitBlendAll.pixel_data,
  2826         SDLTest_imageBlitBlendAll.width, 
  2826         SDLTest_imageBlitBlendAll.width,
  2827         SDLTest_imageBlitBlendAll.height, 
  2827         SDLTest_imageBlitBlendAll.height,
  2828         SDLTest_imageBlitBlendAll.bytes_per_pixel * 8, 
  2828         SDLTest_imageBlitBlendAll.bytes_per_pixel * 8,
  2829         SDLTest_imageBlitBlendAll.width * SDLTest_imageBlitBlendAll.bytes_per_pixel,
  2829         SDLTest_imageBlitBlendAll.width * SDLTest_imageBlitBlendAll.bytes_per_pixel,
  2830 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  2830 #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
  2831          0xff000000, /* Red bit mask. */
  2831          0xff000000, /* Red bit mask. */
  2832          0x00ff0000, /* Green bit mask. */
  2832          0x00ff0000, /* Green bit mask. */
  2833          0x0000ff00, /* Blue bit mask. */
  2833          0x0000ff00, /* Blue bit mask. */