Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.1 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. /**
  19. * \file SDL_test_images.h
  20. *
  21. * Include file for SDL test framework.
  22. *
  23. * This code is a part of the SDL2_test library, not the main SDL library.
  24. */
  25. /*
  26. Defines some images for tests.
  27. */
  28. #ifndef _SDL_test_images_h
  29. #define _SDL_test_images_h
  30. #include "SDL.h"
  31. #include "begin_code.h"
  32. /* Set up for C function definitions, even when using C++ */
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. /**
  37. *Type for test images.
  38. */
  39. typedef struct SDLTest_SurfaceImage_s {
  40. int width;
  41. int height;
  42. unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
  43. const char *pixel_data;
  44. } SDLTest_SurfaceImage_t;
  45. /* Test images */
  46. SDL_Surface *SDLTest_ImageBlit();
  47. SDL_Surface *SDLTest_ImageBlitColor();
  48. SDL_Surface *SDLTest_ImageBlitAlpha();
  49. SDL_Surface *SDLTest_ImageBlitBlendAdd();
  50. SDL_Surface *SDLTest_ImageBlitBlend();
  51. SDL_Surface *SDLTest_ImageBlitBlendMod();
  52. SDL_Surface *SDLTest_ImageBlitBlendNone();
  53. SDL_Surface *SDLTest_ImageBlitBlendAll();
  54. SDL_Surface *SDLTest_ImageFace();
  55. SDL_Surface *SDLTest_ImagePrimitives();
  56. SDL_Surface *SDLTest_ImagePrimitivesBlend();
  57. /* Ends C function definitions when using C++ */
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #include "close_code.h"
  62. #endif /* _SDL_test_images_h */
  63. /* vi: set ts=4 sw=4 expandtab: */