Fork me on GitHub

API Documentation


Extends GLGE.Animatable, GLGE.Events, GLGE.JSONLoader, GLGE.QuickNotation.
The material layer describes how to apply this layer to the material
Defined in: glge_materiallayer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Gets the textures alpha blending value
 
Gets the layers tblending mode
 
Gets the layers texture X displacment offset, useful for animation
 
Gets the layers texture Y displacment offset, useful for animation
 
Gets the layers texture X displacment offset, useful for animation
 
Gets the layers texture X displacment rotation, useful for animation
 
Gets the layers texture Y displacment rotation, useful for animation
 
Gets the layers texture X displacment rotation, useful for animation
 
Gets the layers texture X displacment scale, useful for animation
 
Gets the layers texture Y displacment scale, useful for animation
 
Gets the layers texture X displacment scale, useful for animation
 
Gets the height for this layer, currently only used for parallax mapping
 
Gets the texture coordinate system
 
Gets the flag representing the way the layer maps to the material
 
Gets the textures used by the layer
 
Gets the layers texture offset
 
Gets the layers texture X offset
 
Gets the layers texture Y offset
 
Gets the layers texture Z offset
 
Gets the layers texture rotation
 
Gets the layers texture X rotate
 
Gets the layers texture Y rotate
 
Gets the layers texture Z rotate
 
Gets the layers texture scale
 
Gets the layers texture X scale
 
Gets the layers texture Y scale
 
Gets the layers texture Z offset
 
Gets the textures used by the layer
 
setAlpha(the)
Sets the textures alpha blending value
 
setBlendMode(value)
Sets the layers blending mode
 
setDOffsetX(value)
Sets the layers texture X displacment offset, useful for animation
 
setDOffsetY(value)
Sets the layers texture Y displacment offset, useful for animation
 
setDOffsetZ(value)
Sets the layers texture Z displacment offset, useful for animation
 
setDRotX(value)
Sets the layers texture X displacment rotation, useful for animation
 
setDRotY(value)
Sets the layers texture Y displacment rotation, useful for animation
 
setDRotZ(value)
Sets the layers texture Z displacment rotation, useful for animation
 
setDScaleX(value)
Sets the layers texture X displacment scale, useful for animation
 
setDScaleY(value)
Sets the layers texture Y displacment scale, useful for animation
 
setDScaleZ(value)
Sets the layers texture Z displacment scale, useful for animation
 
setHeight(the)
Sets the height for this layer, currently only used for parallax mapping
 
setMapinput(value)
Sets the texture coordinate system
 
setMapto(value)
Sets the flag for how this layer maps to the material
 
setOffsetX(value)
Sets the layers texture X offset
 
setOffsetY(value)
Sets the layers texture Y offset
 
setOffsetZ(value)
Sets the layers texture Z offset
 
setRotX(value)
Sets the layers texture X Rotation
 
setRotY(value)
Sets the layers texture Y rotate
 
setRotZ(value)
Sets the layers texture Z rotate
 
setScaleX(value)
Sets the layers texture X scale
 
setScaleY(value)
Sets the layers texture Y scale
 
setScaleZ(value)
Sets the layers texture Z scale
 
setTexture(value)
Sets the textures used by the layer
Methods borrowed from class GLGE.Animatable:
animate, blendTo, getAnimation, getBlendFunction, getFrameNumber, getFrameRate, getLoop, getName, getPaused, isLooping, setAnimation, setBlendFunction, setFrameRate, setLoop, setName, setPaused, setStartFrame, togglePaused
Methods borrowed from class GLGE.Events:
addEventListener, fireEvent, removeEventListener
Methods borrowed from class GLGE.QuickNotation:
_
Methods borrowed from class GLGE.JSONLoader:
getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
Event Summary
Event Attributes Event Name and Description
 
Events borrowed from class GLGE.Animatable:
animFinished
Class Detail
GLGE.MaterialLayer(uid)
Parameters:
uid
See:
GLGE.Material
Method Detail
{number} getAlpha()
Gets the textures alpha blending value
Returns:
{number} the alpha for this layer

{Number} getBlendMode()
Gets the layers tblending mode
Returns:
{Number} the blend mode for the layer

{Number} getDOffsetX()
Gets the layers texture X displacment offset, useful for animation
Returns:
{Number} the current offset

{Number} getDOffsetY()
Gets the layers texture Y displacment offset, useful for animation
Returns:
{Number} the current offset

{Number} getDOffsetZ()
Gets the layers texture X displacment offset, useful for animation
Returns:
{Number} the current offset

{Number} getDRotX()
Gets the layers texture X displacment rotation, useful for animation
Returns:
{Number} the current rotation

{Number} getDRotY()
Gets the layers texture Y displacment rotation, useful for animation
Returns:
{Number} the current rotation

{Number} getDRotZ()
Gets the layers texture X displacment rotation, useful for animation
Returns:
{Number} the current rotation

{Number} getDScaleX()
Gets the layers texture X displacment scale, useful for animation
Returns:
{Number} the current scale

{Number} getDScaleY()
Gets the layers texture Y displacment scale, useful for animation
Returns:
{Number} the current scale

{Number} getDScaleZ()
Gets the layers texture X displacment scale, useful for animation
Returns:
{Number} the current scale

{number} getHeight()
Gets the height for this layer, currently only used for parallax mapping
Returns:
{number} the height of this layer

{Number} getMapinput()
Gets the texture coordinate system
Returns:
{Number} The current mapping

{Number} getMapto()
Gets the flag representing the way the layer maps to the material
Returns:
{Number} The flags currently set for this layer

{GLGE.Texture} getMatrix()
Gets the textures used by the layer
Returns:
{GLGE.Texture} The current shininess of the material

{object} getOffset()
Gets the layers texture offset
Returns:
{object} the current offset

{Number} getOffsetX()
Gets the layers texture X offset
Returns:
{Number} the current offset

{Number} getOffsetY()
Gets the layers texture Y offset
Returns:
{Number} the current offset

{Number} getOffsetZ()
Gets the layers texture Z offset
Returns:
{Number} the current offset

{object} getRotation()
Gets the layers texture rotation
Returns:
{object} the current rotation

{Number} getRotX()
Gets the layers texture X rotate
Returns:
{Number} the current rotate

{Number} getRotY()
Gets the layers texture Y rotate
Returns:
{Number} the current rotate

{Number} getRotZ()
Gets the layers texture Z rotate
Returns:
{Number} the current rotate

{object} getScale()
Gets the layers texture scale
Returns:
{object} the current scale

{Number} getScaleX()
Gets the layers texture X scale
Returns:
{Number} the current scale

{Number} getScaleY()
Gets the layers texture Y scale
Returns:
{Number} the current scale

{Number} getScaleZ()
Gets the layers texture Z offset
Returns:
{Number} the current offset

{GLGE.Texture} getTexture()
Gets the textures used by the layer
Returns:
{GLGE.Texture} The current shininess of the material

setAlpha(the)
Sets the textures alpha blending value
Parameters:
{number} the
alpha for this layer

setBlendMode(value)
Sets the layers blending mode
Parameters:
{Number} value
the blend mode for the layer

setDOffsetX(value)
Sets the layers texture X displacment offset, useful for animation
Parameters:
{Number} value
the amount to offset the texture

setDOffsetY(value)
Sets the layers texture Y displacment offset, useful for animation
Parameters:
{Number} value
the amount to offset the texture

setDOffsetZ(value)
Sets the layers texture Z displacment offset, useful for animation
Parameters:
{Number} value
the amount to offset the texture

setDRotX(value)
Sets the layers texture X displacment rotation, useful for animation
Parameters:
{Number} value
the amount to rotation the texture

setDRotY(value)
Sets the layers texture Y displacment rotation, useful for animation
Parameters:
{Number} value
the amount to rotaion the texture

setDRotZ(value)
Sets the layers texture Z displacment rotation, useful for animation
Parameters:
{Number} value
the amount to rotation the texture

setDScaleX(value)
Sets the layers texture X displacment scale, useful for animation
Parameters:
{Number} value
the amount to scale the texture

setDScaleY(value)
Sets the layers texture Y displacment scale, useful for animation
Parameters:
{Number} value
the amount to scale the texture

setDScaleZ(value)
Sets the layers texture Z displacment scale, useful for animation
Parameters:
{Number} value
the amount to scale the texture

setHeight(the)
Sets the height for this layer, currently only used for parallax mapping
Parameters:
{number} the
height of this layer

setMapinput(value)
Sets the texture coordinate system
Parameters:
{Number} value
the mapping to use

setMapto(value)
Sets the flag for how this layer maps to the material
Parameters:
{Number} value
the flags to set for this layer

setOffsetX(value)
Sets the layers texture X offset
Parameters:
{Number} value
the amount to offset the texture

setOffsetY(value)
Sets the layers texture Y offset
Parameters:
{Number} value
the amount to offset the texture

setOffsetZ(value)
Sets the layers texture Z offset
Parameters:
{Number} value
the amount to offset the texture

setRotX(value)
Sets the layers texture X Rotation
Parameters:
{Number} value
the amount to roate the texture

setRotY(value)
Sets the layers texture Y rotate
Parameters:
{Number} value
the amount to rotate the texture

setRotZ(value)
Sets the layers texture Z rotate
Parameters:
{Number} value
the amount to rotate the texture

setScaleX(value)
Sets the layers texture X scale
Parameters:
{Number} value
the amount to scale the texture

setScaleY(value)
Sets the layers texture Y scale
Parameters:
{Number} value
the amount to scale the texture

setScaleZ(value)
Sets the layers texture Z scale
Parameters:
{Number} value
the amount to scale the texture

setTexture(value)
Sets the textures used by the layer
Parameters:
{GLGE.Texture} value
the teture to associate with this layer
Event Detail
shaderupdated(data)
Parameters:
{object} data

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