Page 1 of 1

Rotating sprites

PostPosted: May 2, 2003 @ 9:09am
by maurice

PostPosted: May 2, 2003 @ 10:02am
by Johan
maurice: With GapiDraw 2.0 you can now specify the center point on the destination surface.. So you don't need to bother with offsets. Or temporary surface. In GapiDraw 1.04 you always had to:

(1) Blt-rotate to a larger temporary surface with an offset to avoid clipping.
(2) BltFast the temporary surface to the back buffer and use your own clipping rectangles.

Since GapiDraw rotation code also performs clipping, it is now as simple as:

(1) Blt-rotate directly to back buffer using destination center. This center point can also be negative coordinates (-10, -10).

PostPosted: May 2, 2003 @ 10:11am
by maurice