NAME
SDL::GFX::Rotozoom - rotation and zooming functions for surfaces
CATEGORY
TODO, GFX
METHODS
surface
SDL_Surface *
gfx_roto_surface(src, angle, zoom, smooth)
SDL_Surface * src
double angle
double zoom
int smooth
PREINIT:
char *CLASS = "SDL::Surface";
CODE:
RETVAL = rotozoomSurface(src, angle, zoom, smooth);
OUTPUT:
RETVAL
surface_xy
SDL_Surface *
gfx_roto_surface_xy(src, angle, zoomx, zoomy, smooth)
SDL_Surface * src
double angle
double zoomx
double zoomy
int smooth
PREINIT:
char *CLASS = "SDL::Surface";
CODE:
RETVAL = rotozoomSurfaceXY(src, angle, zoomx, zoomy, smooth);
OUTPUT:
RETVAL
surface_size
void
gfx_roto_surface_size(width, height, angle, zoom, dstwidth, dstheight)
int width
int height
double angle
double zoom
int *dstwidth
int *dstheight
CODE:
rotozoomSurfaceSize(width, height, angle, zoom, dstwidth, dstheight);
surface_size_xy
void
gfx_roto_surface_size_xy(width, height, angle, zoomx, zoomy, dstwidth, dstheight)
int width
int height
double angle
double zoomx
double zoomy
int *dstwidth
int *dstheight
CODE:
rotozoomSurfaceSizeXY(width, height, angle, zoomx, zoomy, dstwidth, dstheight);
zoom_surface
SDL_Surface *
gfx_roto_zoom_surface(src, zoomx, zoomy, smooth)
SDL_Surface * src
double zoomx
double zoomy
int smooth
PREINIT:
char *CLASS = "SDL::Surface";
CODE:
RETVAL = zoomSurface(src, zoomx, zoomy, smooth);
OUTPUT:
RETVAL
zoom_surface_size
void
gfx_roto_zoom_surface_size(width, height, zoomx, zoomy, dstwidth, dstheight)
int width
int height
double zoomx
double zoomy
int *dstwidth
int *dstheight
CODE:
zoomSurfaceSize(width, height, zoomx, zoomy, dstwidth, dstheight);
shrink_surface
SDL_Surface *
gfx_roto_shrink_surface(src, factorx, factory)
SDL_Surface * src
int factorx
int factory
PREINIT:
char *CLASS = "SDL::Surface";
CODE:
RETVAL = shrinkSurface(src, factorx, factory);
OUTPUT:
RETVAL
rotate_surface_90_degrees
SDL_Surface *
gfx_roto_rotate_surface_90_degrees(pSurf, numClockwiseTurns)
SDL_Surface* pSurf
int numClockwiseTurns
PREINIT:
char *CLASS = "SDL::Surface";
CODE:
RETVAL = rotateSurface90Degrees(pSurf, numClockwiseTurns);
OUTPUT:
RETVAL