Fork me on GitHub

API Documentation


Extends GLGE.Events, GLGE.JSONLoader, GLGE.QuickNotation.
Creates a new mesh/material to add to an object
Defined in: glge_multimaterial.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
adds a lod to this multimaterial
 
 
 
getLOD(pixelsize)
returns the load for a given pixel size
 
gets the material
 
gets the mesh
 
Checks if resources have finished downloading
 
removes a lod to this multimaterial
 
setMaterial(material)
sets the material
 
setMesh(mesh)
sets the mesh
Methods borrowed from class GLGE.QuickNotation:
_
Methods borrowed from class GLGE.JSONLoader:
getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
Methods borrowed from class GLGE.Events:
addEventListener, fireEvent, removeEventListener
Event Summary
Event Attributes Event Name and Description
 
Class Detail
GLGE.MultiMaterial(uid)
Parameters:
uid
Method Detail
addObjectLod(lod)
adds a lod to this multimaterial
Parameters:
{GLGE.ObjectLod} lod
the lod to add

boundUpdate()

downloadComplete()

{GLGE.ObjectLod} getLOD(pixelsize)
returns the load for a given pixel size
Parameters:
{number} pixelsize
the current pixel size of the object
Returns:
{GLGE.ObjectLod}

{GLGE.Material} getMaterial()
gets the material
Returns:
{GLGE.Material}

{GLGE.Mesh} getMesh()
gets the mesh
Returns:
{GLGE.Mesh}

{boolean} isComplete()
Checks if resources have finished downloading
Returns:
{boolean}

removeObjectLod(lod)
removes a lod to this multimaterial
Parameters:
{GLGE.ObjectLod} lod
the lod to remove

setMaterial(material)
sets the material
Parameters:
{GLGE.Material} material

setMesh(mesh)
sets the mesh
Parameters:
{GLGE.Mesh} mesh
Event Detail
downloadComplete(data)
Parameters:
{object} data

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