Class Index | File Index

Classes


Class GLGE.Document

Document class to load scene, object, mesh etc from an external XML file
Defined in: glge.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
addLoadListener(listener)
Adds a listener to be called when all documents have finished loading
 
Gets an object from the XML document based on the dom element
 
loadDocument(url, relativeto)
Loads an additional documents into the collection
 
Removes a load listener
Event Summary
Event Attributes Event Name and Description
 
Called when all documents have finished loading
Class Detail
GLGE.Document(url)
Parameters:
{string} url
URL of the resource to load
Method Detail
addLoadListener(listener)
Adds a listener to be called when all documents have finished loading
Parameters:
{function} listener
the function to call when all loading in complete

getElement(ele)
Gets an object from the XML document based on the dom element
Parameters:
{string|domelement} ele
the id of the element to get or the dom node

loadDocument(url, relativeto)
Loads an additional documents into the collection
Parameters:
{string} url
URL of the resource to load
{string} relativeto
the path the URL is relative to, null for default

removeLoadListener(listener)
Removes a load listener
Parameters:
{function} listener
Listener to remove
Event Detail
onLoad()
Called when all documents have finished loading

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Dec 21 2009 20:52:54 GMT-0000 (GMT)