This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Rotating sprites


Rotating sprites

Postby maurice » May 2, 2003 @ 9:09am

maurice
pm Member
 
Posts: 37
Joined: Feb 26, 2003 @ 9:08pm
Location: Rotterdam


Postby Johan » May 2, 2003 @ 10:02am

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).
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby maurice » May 2, 2003 @ 10:11am

maurice
pm Member
 
Posts: 37
Joined: Feb 26, 2003 @ 9:08pm
Location: Rotterdam


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron