Skip to content

RectangleWebGLDrawable

Overview

WebGL drawable for Rectangle nodes.

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

Class RectangleWebGLDrawable

import { RectangleWebGLDrawable } 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

markTransformDirty()

@public @override

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.