Skip to content

RenderExecutor

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/render-program/RenderExecutor.ts for the most up-to-date information.

Overview

Executes stack-based evaluation of a RenderProgram

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

Class RenderExecutor

import { RenderExecutor } from 'scenerystack/alpenglow';

Constructor

new RenderExecutor()

Instance Methods

loadRenderProgram( renderProgram : RenderProgram )

loadInstructions( instructions : RenderInstruction[] )

reset()

execute( context : RenderEvaluationContext, output : Vector4 ) : Vector4

jump( location : RenderInstructionLocation )

call( location : RenderInstructionLocation )

return()

exit()

Instance Properties

evaluator : RenderEvaluator

(readonly)

Source Code

See the source for RenderExecutor.ts in the alpenglow repository.