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

Dynamic surface HELP!!!


Dynamic surface HELP!!!

Postby cz » Dec 16, 2002 @ 2:26am

cz
 


Postby Hosed » Dec 16, 2002 @ 3:39am

Depends on what you mean by dynamic surfaces. If you want to destroy a surface and recreate it then you can do this just by using pointers to surfaces and creating them dynamically via new/delete, etc.

However this will be slow. The best route is to reuse surfaces that are already created at a size sufficient to hold the image data you want on it. You can then just clear the surface with a blit to black and load a new image over it. Or just load a new image over it.
L. L. Goodwin<BR>Purveyor of Code<BR><A href="http://www.planettribes.com/hosed/">Hosed's House of Code</A>
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


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