Skip to content

ImageWebGLDrawable

Overview

WebGL drawable for Image nodes.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class ImageWebGLDrawable

import { ImageWebGLDrawable } from 'scenerystack/scenery';

Instance Methods

initialize( renderer, instance )

@public @override

@param {number} renderer @param {Instance} instance

onAddToBlock( webglBlock )

@public

@param {WebGLBlock} webGLBlock

onRemoveFromBlock( webglBlock )

@public

@param {WebGLBlock} webGLBlock

reserveSprite()

@private

unreserveSprite()

@private

markTransformDirty()

@public @override

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.