Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

79 linhas
2.2 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2018 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(void);
  47. SDL_Surface *SDLTest_ImageBlitColor(void);
  48. SDL_Surface *SDLTest_ImageBlitAlpha(void);
  49. SDL_Surface *SDLTest_ImageBlitBlendAdd(void);
  50. SDL_Surface *SDLTest_ImageBlitBlend(void);
  51. SDL_Surface *SDLTest_ImageBlitBlendMod(void);
  52. SDL_Surface *SDLTest_ImageBlitBlendNone(void);
  53. SDL_Surface *SDLTest_ImageBlitBlendAll(void);
  54. SDL_Surface *SDLTest_ImageFace(void);
  55. SDL_Surface *SDLTest_ImagePrimitives(void);
  56. SDL_Surface *SDLTest_ImagePrimitivesBlend(void);
  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: */