IgeEntity

Method: texture

Gets / sets the texture to use when rendering the entity.
texture (IgeTexture texture)
Returns * "this" when arguments are passed to allow method chaining or the current value if no arguments are specified.

Set the entity texture (image)

var texture = new IgeTexture('path/to/some/texture.png');
entity.texture(texture);
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point