RenderAsset

A binding of an Asset to a GLContext. The RenderAsset doesn't create any WebGL objects itself. An Asset creates the WebGL object and stores it with the RenderAsset's glObject property.

Constructor

new L3D.RenderAsset()

Properties

glObject Object = null

The WebGL object created by the asset.

Methods

destroy()

Destroy the WebGL object, if it's been set.

update()

Call the Asset to update the WebGL object for the current frame being rendered. The Asset may not need to udpate the WebGL object, if nothing has changed.