MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / parallelogram

Function parallelogram

src/doc/algorithm/rotate.cpp:173–189  ·  view source on GitHub ↗

1-----2 | | 4-----3 */

Source from the content-addressed store, hash-verified

171 4-----3
172 */
173void parallelogram(Image* bmp, const Image* sprite, const Image* mask,
174 int x1, int y1, int x2, int y2,
175 int x3, int y3, int x4, int y4)
176{
177 fixed xs[4], ys[4];
178
179 xs[0] = itofix(x1);
180 ys[0] = itofix(y1);
181 xs[1] = itofix(x2);
182 ys[1] = itofix(y2);
183 xs[2] = itofix(x3);
184 ys[2] = itofix(y3);
185 xs[3] = itofix(x4);
186 ys[3] = itofix(y4);
187
188 ase_parallelogram_map_standard(bmp, sprite, mask, xs, ys);
189}
190
191// Scanline drawers.
192

Callers 2

drawParallelogramMethod · 0.85
rotsprite_imageFunction · 0.85

Calls 2

itofixFunction · 0.85

Tested by

no test coverage detected