Fork me on GitHub

API Documentation


Extends GLGE.JSONLoader, GLGE.QuickNotation.
A canvase texture to be included in a material
Defined in: glge_texturecanvas.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Gets the auto update flag
 
Gets the canvas used by the texture
 
gets the canvas height
 
gets the canvas width
 
Sets the auto update flag
 
setCanvas(canvas)
Sets the canvas used by the texture
 
setHeight(value)
Sets the canvas height
 
setWidth(value)
Sets the canvas width
 
Manually updates the canvas Texture
Methods borrowed from class GLGE.QuickNotation:
_
Methods borrowed from class GLGE.JSONLoader:
getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
Class Detail
GLGE.TextureCanvas(uid)
Parameters:
{string} uid
the unique id for this texture
See:
GLGE.Material
Method Detail
{boolean} getAutoUpdate()
Gets the auto update flag
Returns:
{boolean} The auto update flag

{canvas} getCanvas()
Gets the canvas used by the texture
Returns:
{canvas} The textures image url

{number} getHeight()
gets the canvas height
Returns:
{number} The canvas height

{number} getWidth()
gets the canvas width
Returns:
{number} The canvas width

setAutoUpdate(value)
Sets the auto update flag
Parameters:
{boolean} value
The auto update flag

setCanvas(canvas)
Sets the canvas used by the texture
Parameters:
{canvas} canvas
The canvas to use

setHeight(value)
Sets the canvas height
Parameters:
{number} value
The canvas height

setWidth(value)
Sets the canvas width
Parameters:
{number} value
The canvas width

update()
Manually updates the canvas Texture

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)