Class Index | File Index

Classes


Class R.components.render.DOM


Extends R.components.Render.
Render component for DOM elements. This component will ensure that the DOM CSS transformations are applied to the game object for each frame.
Defined in: dom.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
R.components.render.DOM(name, priority)
Creates a DOM element render component.
Fields borrowed from class R.components.Render:
DRAW, NO_DRAW
Fields borrowed from class R.components.Base:
TYPE_COLLIDER, TYPE_INPUT, TYPE_LOGIC, TYPE_RENDERING, TYPE_TRANSFORM
Method Summary
Method Attributes Method Name and Description
 
execute(renderContext, time, dt)
Handles whether or not the component should draw to the render context.
 
Get the class name of this object
Methods borrowed from class R.components.Render:
destroy, getDrawMode, release, setDrawMode, transformOrigin
Methods borrowed from class R.components.Base:
getGameObject, getHostObject, getPriority, getType, getTypeString, setGameObject, setHostObject, setPriority
Methods borrowed from class R.engine.BaseObject:
addEvent, addEvents, getElement, jQ, removeEvent, setElement, triggerEvent, update
Methods borrowed from class R.engine.PooledObject:
clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.components.render.DOM(name, priority)
Creates a DOM element render component.
Parameters:
name
{String} The name of the component
priority
{Number} The priority of the component between 0.0 and 1.0
Method Detail
execute(renderContext, time, dt)
Handles whether or not the component should draw to the render context.
Parameters:
renderContext
{R.rendercontexts.HTMLElementContext} The rendering context
time
{Number} The engine time in milliseconds
dt
{Number} The delta between the world time and the last time the world was updated in milliseconds.

{String} getClassName()
Get the class name of this object
Returns:
{String} "R.components.render.DOM"

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:17 GMT-0400 (EDT)