Update index page on mailing list
[sdlgit/SDL-Site.git] / pages / SDL-GFX-Rotozoom.html-inc
CommitLineData
cf23a5da 1<div class="pod">
2<!-- INDEX START -->
3<h3 id="TOP">Index</h3>
4
5<ul><li><a href="#NAME">NAME</a></li>
6<li><a href="#CATEGORY">CATEGORY</a></li>
fb5f7900 7<li><a href="#CONSTANTS">CONSTANTS</a></li>
cf23a5da 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>
17</li>
18</ul>
19</li>
20</ul><hr />
21<!-- INDEX END -->
22
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>
26
27</div>
28<h1 id="CATEGORY">CATEGORY</h1><p><a href="#TOP" class="toplink">Top</a></p>
29<div id="CATEGORY_CONTENT">
b5d537cc 30<p>TODO, GFX</p>
cf23a5da 31
32</div>
fb5f7900 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';
37
38</pre>
39<p>or access them directly:</p>
40<pre> SDL::GFX::Rotozoom::SMOOTHING_OFF;
41
42</pre>
43<p>or by choosing the export tags below:</p>
44<p>Export tag: ':smoothing'</p>
45<pre> SMOOTHING_OFF
46 SMOOTHING_ON
47
48</pre>
49
50</div>
cf23a5da 51<h1 id="METHODS">METHODS</h1><p><a href="#TOP" class="toplink">Top</a></p>
52<div id="METHODS_CONTENT">
53
54</div>
55<h2 id="surface">surface</h2>
56<div id="surface_CONTENT">
57<pre> SDL_Surface *
58 gfx_roto_surface(src, angle, zoom, smooth)
59 SDL_Surface * src
60 double angle
61 double zoom
62 int smooth
63 PREINIT:
64 char *CLASS = &quot;SDL::Surface&quot;;
65 CODE:
66 RETVAL = rotozoomSurface(src, angle, zoom, smooth);
67 OUTPUT:
68 RETVAL
69
70</pre>
71
72</div>
73<h2 id="surface_xy">surface_xy</h2>
74<div id="surface_xy_CONTENT">
75<pre> SDL_Surface *
76 gfx_roto_surface_xy(src, angle, zoomx, zoomy, smooth)
77 SDL_Surface * src
78 double angle
79 double zoomx
80 double zoomy
81 int smooth
82 PREINIT:
83 char *CLASS = &quot;SDL::Surface&quot;;
84 CODE:
85 RETVAL = rotozoomSurfaceXY(src, angle, zoomx, zoomy, smooth);
86 OUTPUT:
87 RETVAL
88
89</pre>
90
91</div>
92<h2 id="surface_size">surface_size</h2>
93<div id="surface_size_CONTENT">
94<pre> void
95 gfx_roto_surface_size(width, height, angle, zoom, dstwidth, dstheight)
96 int width
97 int height
98 double angle
99 double zoom
100 int *dstwidth
101 int *dstheight
102 CODE:
103 rotozoomSurfaceSize(width, height, angle, zoom, dstwidth, dstheight);
104
105</pre>
106
107</div>
108<h2 id="surface_size_xy">surface_size_xy</h2>
109<div id="surface_size_xy_CONTENT">
110<pre> void
111 gfx_roto_surface_size_xy(width, height, angle, zoomx, zoomy, dstwidth, dstheight)
112 int width
113 int height
114 double angle
115 double zoomx
116 double zoomy
117 int *dstwidth
118 int *dstheight
119 CODE:
120 rotozoomSurfaceSizeXY(width, height, angle, zoomx, zoomy, dstwidth, dstheight);
121
122</pre>
123
124</div>
125<h2 id="zoom_surface">zoom_surface</h2>
126<div id="zoom_surface_CONTENT">
127<pre> SDL_Surface *
128 gfx_roto_zoom_surface(src, zoomx, zoomy, smooth)
129 SDL_Surface * src
130 double zoomx
131 double zoomy
132 int smooth
133 PREINIT:
134 char *CLASS = &quot;SDL::Surface&quot;;
135 CODE:
136 RETVAL = zoomSurface(src, zoomx, zoomy, smooth);
137 OUTPUT:
138 RETVAL
139
140</pre>
141
142</div>
143<h2 id="zoom_surface_size">zoom_surface_size</h2>
144<div id="zoom_surface_size_CONTENT">
145<pre> void
146 gfx_roto_zoom_surface_size(width, height, zoomx, zoomy, dstwidth, dstheight)
147 int width
148 int height
149 double zoomx
150 double zoomy
151 int *dstwidth
152 int *dstheight
153 CODE:
154 zoomSurfaceSize(width, height, zoomx, zoomy, dstwidth, dstheight);
155
156</pre>
157
158</div>
159<h2 id="shrink_surface">shrink_surface</h2>
160<div id="shrink_surface_CONTENT">
161<pre> SDL_Surface *
162 gfx_roto_shrink_surface(src, factorx, factory)
163 SDL_Surface * src
164 int factorx
165 int factory
166 PREINIT:
167 char *CLASS = &quot;SDL::Surface&quot;;
168 CODE:
169 RETVAL = shrinkSurface(src, factorx, factory);
170 OUTPUT:
171 RETVAL
172
173</pre>
174
175</div>
176<h2 id="rotate_surface_90_degrees">rotate_surface_90_degrees</h2>
177<div id="rotate_surface_90_degrees_CONTENT">
178<pre> SDL_Surface *
179 gfx_roto_rotate_surface_90_degrees(pSurf, numClockwiseTurns)
180 SDL_Surface* pSurf
181 int numClockwiseTurns
182 PREINIT:
183 char *CLASS = &quot;SDL::Surface&quot;;
184 CODE:
185 RETVAL = rotateSurface90Degrees(pSurf, numClockwiseTurns);
186 OUTPUT:
187 RETVAL
188
189
190</pre>
191
192</div>
193</div>