mysprite=CopyImage3D(sprite)

Parameters

sprite - existing sprite to copy

Description

Creates a copy of an existing sprite returning the new handle.

*NB: Using HandleImage3D and FlipImage3D commands on normal sprites will also affect any copied ones.

 

* NB: It is important to initialise the sprite display system first! SeeCreateSpritePivot()

See Also: FreeImage3D

Thanks go to FredBorg for this function.

Example

Include "Sprite Control.bb"
Graphics3D 640,480
SetBuffer backBuffer()

mycamera=CreateCamera()
piv=CreateSpritePivot()

mysprite=LoadImage3D("myimage.bmp")
newsprite=CopyImage3D(mysprite)
RenderWorld
Flip
WaitKey
End


Index