yage.scene.sprite
Authors:
Eric Poggel
License:
LGPL v3
- class
SpriteNode
: yage.scene.visible.VisibleNode;
- A
SpriteNode
is a rectangle that always faces the camera.
It is useful for special effects such as dust and flares.
- this();
- Create a SpriteNode and optinally set the material from an already loaded material or a material filename.
- SpriteNode
clone
(bool children = false);
- Make a duplicate of this node, unattached to any parent Node.
Params:
bool children |
recursively
clone
children (and descendants) and add them as children to the new Node. |
Returns:
The cloned Node.
- Material
getMaterial
();
- Return the Material assigned to the SpriteNode.
- float
getRadius
();
- Return the distance to the furthest point of the SpriteNode, including size but not scale.
- void
setMaterial
(Material material);
- Set the Material of the SpriteNode.
- void
setMaterial
(char[] filename, char[] id);
- Set the Material of the SpriteNode, using the ResourceManager Manager
to ensure that no Material is loaded twice.
Equivalent of
setMaterial
(ResourceManager.material(filename));
|