Class: UITexture

UITexture(myTexture, position, size) → {UITexture}

new UITexture(myTexture, position, size) → {UITexture}

Texture for UI
Parameters:
Name Type Description
myTexture texture Texture for the UITexture
position Array.<Array> Base position for the UITexture
size Array.<Array> The size for the UITexture
Source:
Returns:
Type
UITexture

Methods

setTexture(tex)

Sets the Texture of the UITexture
Parameters:
Name Type Description
tex String The location of the desired Texture to be used
Source:

UITexture(color, position, size) → {UIRenderable}

new UITexture(color, position, size) → {UIRenderable}

Renderable for UI
Parameters:
Name Type Description
color Array.<float> The Color of the UIRenderable
position Array.<Array> Base position for the UIRenderable
size Array.<Array> The size for the UIRenderable
Source:
Returns:
Type
UIRenderable

Methods

setTexture(tex)

Sets the Texture of the UITexture
Parameters:
Name Type Description
tex String The location of the desired Texture to be used
Source: