sprite=CreateImage3D([width][,height][,parent])

Parameters

width (optional) - the width (in pixels) of the image. Default size=1
height (optional) - the height (in pixels) of the image. Default size=1

parent (optional) - give an alternative entity in which to attach the sprite to
By default the parent is the pivot as created by:
SpriteGraphics3D or CreateSpritePivot()

Description

Creates a blank quad entity.
The width/height are used to set the sprites width/height in pixels.
Leaving these blank will create a 1x1 pixel sized sprite.
The entity is then attached to the sprite pivot (or parent if supplied).
By default the sprite will appear as a plain white image.

* NOTE: It is important to initialise the sprite display system first!
See SpriteGraphics3D or CreateSpritePivot()

Example

Include "Sprite Control.bb"

SpriteGraphics3D 640,480

mysprite=CreateImage3D(128,128)

RenderWorld
Flip
WaitKey
End


Index