Request: ClearSprite()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

Hi!
sometimes is it necessary to use a sprite as temporary buffer even when you deform it more times. Now i use an empty sprite to copy it over the temporary buffer sprite, but i think this is not an optimal solution.
A ClearSprite(#ID_Sprite) command would be fine.

What did you folx think about it ?

MFG
:)WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kaba.

Havn´t tried it, but CreateSprite(...) should do the job.
Might be necessary to use FreeSprite(#Sprite) first.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

I have tried it, and CreateSprite(...) is much slower then CopySprite(...) :)

MFG
:)WolfgangS
Realizimo
User
User
Posts: 71
Joined: Sun Nov 25, 2012 5:27 pm
Location: Sweden

Re: Request: ClearSprite()

Post by Realizimo »

certainly useful as well as "clearscreen"
Post Reply