ImageWebGLDrawable¶
Overview¶
WebGL drawable for Image nodes.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class ImageWebGLDrawable¶
Instance Methods¶
initialize( renderer, instance )¶
@param {number} renderer @param {Instance} instance
onAddToBlock( webglBlock )¶
@param {WebGLBlock} webGLBlock
onRemoveFromBlock( webglBlock )¶
@param {WebGLBlock} webGLBlock
reserveSprite()¶
unreserveSprite()¶
markTransformDirty()¶
markPaintDirty()¶
A "catch-all" dirty method that directly marks the paintDirty flag and triggers propagation of dirty information. This can be used by other mark* methods, or directly itself if the paintDirty flag is checked. @public
It should be fired (indirectly or directly) for anything besides transforms that needs to make a drawable dirty.
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 ImageWebGLDrawable.js in the scenery repository.