t3d. RenderQueue

RenderQueue is used to collect all renderable items, lights and skeletons from the scene. Renderable items will be dispatched to the corresponding RenderQueueLayer according to the object's renderLayer property.

Constructor

new RenderQueue()

Methods

createLayer(id) → {t3d.RenderQueueLayer}

Create and set a render queue layer.
Parameters:
NameTypeDescription
idNumberThe layer id.
Returns:
Type: 
t3d.RenderQueueLayer

getLayer(id) → {t3d.RenderQueueLayer}

Get the render queue layer.
Parameters:
NameTypeDescription
idNumberThe layer id.
Returns:
Type: 
t3d.RenderQueueLayer

removeLayer(id)

Remove the render queue layer.
Parameters:
NameTypeDescription
idNumberThe layer id.

setLayer(id, layer)

Set a render queue layer.
Parameters:
NameTypeDescription
idNumberThe layer id.
layert3d.RenderQueueLayerThe layer to set.