zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_rotate.h File Reference

Go to the source code of this file.

Macros

#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 

Functions

SDL_Surface_rotateSurface (SDL_Surface *src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle)
 
void _rotozoomSurfaceSizeTrig (int width, int height, double angle, int *dstwidth, int *dstheight, double *cangle, double *sangle)
 

Macro Definition Documentation

#define MIN (   a,
  b 
)    (((a) < (b)) ? (a) : (b))

Definition at line 2 of file SDL_rotate.h.

Referenced by SW_RenderCopyEx().

Function Documentation

void _rotozoomSurfaceSizeTrig ( int  width,
int  height,
double  angle,
int dstwidth,
int dstheight,
double *  cangle,
double *  sangle 
)

Definition at line 107 of file SDL_rotate.c.

References M_PI, MAX, SDL_ceil(), SDL_cos(), SDL_fabs(), and SDL_sin().

Referenced by SW_RenderCopyEx().