123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- #ifndef _SDL_rotozoom_h
- #define _SDL_rotozoom_h
- #include <math.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef M_PI
- #define M_PI 3.141592654
- #endif
- #include "SDL.h"
- #define SMOOTHING_OFF 0
- #define SMOOTHING_ON 1
- #ifdef _MSC_VER
- # if defined(DLL_EXPORT) && !defined(LIBSDL_GFX_DLL_IMPORT)
- # define SDL_ROTOZOOM_SCOPE __declspec(dllexport)
- # else
- # ifdef LIBSDL_GFX_DLL_IMPORT
- # define SDL_ROTOZOOM_SCOPE __declspec(dllimport)
- # endif
- # endif
- #endif
- #ifndef SDL_ROTOZOOM_SCOPE
- # define SDL_ROTOZOOM_SCOPE extern
- #endif
- SDL_ROTOZOOM_SCOPE SDL_Surface *rotozoomSurface(SDL_Surface *src, double angle, double zoom, int smooth);
- SDL_ROTOZOOM_SCOPE SDL_Surface *rotozoomSurfaceXY
- (SDL_Surface *src, double angle, double zoomx, double zoomy, int smooth);
- SDL_ROTOZOOM_SCOPE void rotozoomSurfaceSize(int width, int height, double angle, double zoom, int *dstwidth,
- int *dstheight);
- SDL_ROTOZOOM_SCOPE void rotozoomSurfaceSizeXY
- (int width, int height, double angle, double zoomx, double zoomy,
- int *dstwidth, int *dstheight);
- SDL_ROTOZOOM_SCOPE SDL_Surface *zoomSurface(SDL_Surface *src, double zoomx, double zoomy, int smooth);
- SDL_ROTOZOOM_SCOPE void
- zoomSurfaceSize(int width, int height, double zoomx, double zoomy, int *dstwidth, int *dstheight);
- SDL_ROTOZOOM_SCOPE SDL_Surface *shrinkSurface(SDL_Surface *src, int factorx, int factory);
- SDL_ROTOZOOM_SCOPE SDL_Surface *rotateSurface90Degrees(SDL_Surface *src, int numClockwiseTurns);
- #ifdef __cplusplus
- }
- #endif
- #endif
|