3 <h3 id="TOP">Index</h3>
5 <ul><li><a href="#NAME">NAME</a></li>
6 <li><a href="#CATEGORY">CATEGORY</a></li>
7 <li><a href="#CONSTANTS">CONSTANTS</a></li>
8 <li><a href="#METHODS">METHODS</a>
9 <ul><li><a href="#surface">surface</a></li>
10 <li><a href="#surface_xy">surface_xy</a></li>
11 <li><a href="#surface_size">surface_size</a></li>
12 <li><a href="#surface_size_xy">surface_size_xy</a></li>
13 <li><a href="#zoom_surface">zoom_surface</a></li>
14 <li><a href="#zoom_surface_size">zoom_surface_size</a></li>
15 <li><a href="#shrink_surface">shrink_surface</a></li>
16 <li><a href="#rotate_surface_90_degrees">rotate_surface_90_degrees</a>
23 <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
24 <div id="NAME_CONTENT">
25 <p>SDL::GFX::Rotozoom - rotation and zooming functions for surfaces</p>
28 <h1 id="CATEGORY">CATEGORY</h1><p><a href="#TOP" class="toplink">Top</a></p>
29 <div id="CATEGORY_CONTENT">
33 <h1 id="CONSTANTS">CONSTANTS</h1><p><a href="#TOP" class="toplink">Top</a></p>
34 <div id="CONSTANTS_CONTENT">
35 <p>The constants are not exported by default. You can export them into your namespace by doing:</p>
36 <pre> use SDL::GFX::Rotozoom ':all';
39 <p>or access them directly:</p>
40 <pre> SDL::GFX::Rotozoom::SMOOTHING_OFF;
43 <p>or by choosing the export tags below:</p>
44 <p>Export tag: ':smoothing'</p>
51 <h1 id="METHODS">METHODS</h1><p><a href="#TOP" class="toplink">Top</a></p>
52 <div id="METHODS_CONTENT">
55 <h2 id="surface">surface</h2>
56 <div id="surface_CONTENT">
58 gfx_roto_surface(src, angle, zoom, smooth)
64 char *CLASS = "SDL::Surface";
66 RETVAL = rotozoomSurface(src, angle, zoom, smooth);
73 <h2 id="surface_xy">surface_xy</h2>
74 <div id="surface_xy_CONTENT">
76 gfx_roto_surface_xy(src, angle, zoomx, zoomy, smooth)
83 char *CLASS = "SDL::Surface";
85 RETVAL = rotozoomSurfaceXY(src, angle, zoomx, zoomy, smooth);
92 <h2 id="surface_size">surface_size</h2>
93 <div id="surface_size_CONTENT">
95 gfx_roto_surface_size(width, height, angle, zoom, dstwidth, dstheight)
103 rotozoomSurfaceSize(width, height, angle, zoom, dstwidth, dstheight);
108 <h2 id="surface_size_xy">surface_size_xy</h2>
109 <div id="surface_size_xy_CONTENT">
111 gfx_roto_surface_size_xy(width, height, angle, zoomx, zoomy, dstwidth, dstheight)
120 rotozoomSurfaceSizeXY(width, height, angle, zoomx, zoomy, dstwidth, dstheight);
125 <h2 id="zoom_surface">zoom_surface</h2>
126 <div id="zoom_surface_CONTENT">
128 gfx_roto_zoom_surface(src, zoomx, zoomy, smooth)
134 char *CLASS = "SDL::Surface";
136 RETVAL = zoomSurface(src, zoomx, zoomy, smooth);
143 <h2 id="zoom_surface_size">zoom_surface_size</h2>
144 <div id="zoom_surface_size_CONTENT">
146 gfx_roto_zoom_surface_size(width, height, zoomx, zoomy, dstwidth, dstheight)
154 zoomSurfaceSize(width, height, zoomx, zoomy, dstwidth, dstheight);
159 <h2 id="shrink_surface">shrink_surface</h2>
160 <div id="shrink_surface_CONTENT">
162 gfx_roto_shrink_surface(src, factorx, factory)
167 char *CLASS = "SDL::Surface";
169 RETVAL = shrinkSurface(src, factorx, factory);
176 <h2 id="rotate_surface_90_degrees">rotate_surface_90_degrees</h2>
177 <div id="rotate_surface_90_degrees_CONTENT">
179 gfx_roto_rotate_surface_90_degrees(pSurf, numClockwiseTurns)
181 int numClockwiseTurns
183 char *CLASS = "SDL::Surface";
185 RETVAL = rotateSurface90Degrees(pSurf, numClockwiseTurns);