RectangleWebGLDrawable¶
Overview¶
WebGL drawable for Rectangle nodes.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RectangleWebGLDrawable¶
Instance Methods¶
initialize( renderer, instance )¶
@param {number} renderer @param {Instance} instance
onAddToBlock( webglBlock )¶
@param {WebGLBlock} webglBlock
onRemoveFromBlock( webglBlock )¶
@param {WebGLBlock} webglBlock
markTransformDirty()¶
update()¶
Updates the DOM appearance of this drawable (whether by preparing/calling draw calls, DOM element updates, etc.) @public @override
@returns {boolean} - Whether the update should continue (if false, further updates in supertype steps should not be done).
Source Code¶
See the source for RectangleWebGLDrawable.js in the scenery repository.