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 
11 /*********************************************************************
12  *  This library is free software; you can redistribute it and/or    *
13  *  modify it under the terms of the GNU Library General Public      *
14  *  License as published by the Free Software Foundation; either     *
15  *  version 2 of the License, or (at your option) any later version. *
16  *********************************************************************/
17 
18 #ifndef sge_rotation_H
19 #define sge_rotation_H
20 
21 #include "SDL.h"
22 #include "sge_internal.h"
23 
24 /* Transformation flags */
25 #define SGE_TAA SGE_FLAG1
26 #define SGE_TSAFE SGE_FLAG2
27 #define SGE_TTMAP SGE_FLAG3
28 
29 #ifdef _SGE_C
30 extern "C" {
31 #endif
32 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);
33 DECLSPEC SDL_Surface *sge_transform_surface(SDL_Surface *src, Uint32 bcol, float angle, float xscale, float yscale, Uint8 flags);
34 
35 
36 /* Old obolete functions - now uses sge_transform() anyway */
37 DECLSPEC SDL_Surface *sge_rotate_scaled_surface(SDL_Surface *src, int angle, double scale, Uint32 bcol);
38 DECLSPEC SDL_Surface *sge_rotate_surface(SDL_Surface *src, int angle, Uint32 bcol);
39 DECLSPEC SDL_Rect sge_rotate_xyscaled(SDL_Surface *dest, SDL_Surface *src, Sint16 x, Sint16 y, int angle, double xscale, double yscale);
40 DECLSPEC SDL_Rect sge_rotate_scaled(SDL_Surface *dest, SDL_Surface *src, Sint16 x, Sint16 y, int angle, double scale);
41 DECLSPEC SDL_Rect sge_rotate(SDL_Surface *dest, SDL_Surface *src, Sint16 x, Sint16 y, int angle);
42 #ifdef _SGE_C
43 }
44 #endif
45 
46 #endif /* sge_rotation_H */
47