Class Index | File Index

Classes


Class renderMesh


Extends component.
renderMesh
Defined in: renderMesh.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Component that cna render a 3D object that reduces to a Mesh.
Field Summary
Field Attributes Field Name and Description
 
Sets/gets the material to use with this renderer.
 
Returns the numer of mesh objects that are being used by this renderMesh
 
The node of this renderMesh.
 
Type of rendering primitive.
Fields borrowed from class component:
host, info, isDrawing, isStepping, onAttach, onDraw, onStep, tag
Method Summary
Method Attributes Method Name and Description
 
addMesh(mesh)
Adds a mesh to this renderer.
 
Clears out all references to meshes within this renderer.
 
getMesh(index)
Retrieves the mesh at the given index if any.
Methods borrowed from class component:
canHandleEvent, draw, emitEvent, getKnownEvents, installEvent, installHandler, installHook, step, uninstallEvent, uninstallHandler, uninstallHook
Class Detail
renderMesh()
Component that cna render a 3D object that reduces to a Mesh. Meshess are typically loaded from files or data buffers via sandboxe.assets.load. See mesh.
Field Detail
material
Sets/gets the material to use with this renderer.

meshCount
Returns the numer of mesh objects that are being used by this renderMesh

node
The node of this renderMesh.

primitive
Type of rendering primitive. The defualt is a triangle. See sandboxe.renderMesh.polygon for possible choices.
Method Detail
addMesh(mesh)
Adds a mesh to this renderer.
Parameters:
{mesh} mesh

clear()
Clears out all references to meshes within this renderer.

{mesh} getMesh(index)
Retrieves the mesh at the given index if any.
Parameters:
{Number} index
Returns:
{mesh}

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 03 2019 18:30:56 GMT-0500 (EST)