sge_rotation.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * SDL Graphics Extension
  3. * Rotation routines (header)
  4. *
  5. * Started 000625
  6. *
  7. * License: LGPL v2+ (see the file LICENSE)
  8. * (c)1999-2003 Anders Lindström
  9. */
  10. /* MODIFIED: 03/05/2004 Janson
  11. *
  12. * REMOVED: Obsolete functions
  13. * Texture mapping version
  14. */
  15. /*********************************************************************
  16. * This library is free software; you can redistribute it and/or *
  17. * modify it under the terms of the GNU Library General Public *
  18. * License as published by the Free Software Foundation; either *
  19. * version 2 of the License, or (at your option) any later version. *
  20. *********************************************************************/
  21. #ifndef sge_rotation_H
  22. #define sge_rotation_H
  23. #include "SDL.h"
  24. #include "sge_internal.h"
  25. /* Transformation flags */
  26. #define SGE_TAA SGE_FLAG1
  27. #define SGE_TSAFE SGE_FLAG2
  28. #ifdef _SGE_C
  29. extern "C" {
  30. #endif
  31. DECLSPEC SDL_Rect sge_transform(SDL_Surface *src, SDL_Surface *dst, float angle, float xscale, float yscale ,Uint16 px, Uint16 py, Uint16 qx, Uint16 qy, Uint8 flags);
  32. DECLSPEC SDL_Surface *sge_transform_surface(SDL_Surface *src, Uint32 bcol, float angle, float xscale, float yscale, Uint8 flags);
  33. #ifdef _SGE_C
  34. }
  35. #endif
  36. #endif /* sge_rotation_H */