This command removes a given sprite from the Dark GDK system.


void dbDeleteSprite ( int iSprite )


void dbDeleteSprite ( 1 ) ;

This would remove sprite number 1 from memory. Dark GDK tracks all sprites that have been created using the dbSprite functions. It must check all existing sprites and process them to some extent, even if it's only to note that they're hidden and don't need to be displayed. By using the dbDeleteSprite command to remove the sprite from memory it reduces the amount of work that Dark GDK needs to do each cycle.

Other considerationsEdit

Deleting a sprite may not be desirable if it will be needed later, especially if it needs further processing like sizing, diffusing, etc. Hiding the sprite will cause it to disappear, but there is still a bit of minimal processing necessary to track all sprites in the system.

See AlsoEdit



Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.