Skip to content

RenderNormalize

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/RenderNormalize.ts for the most up-to-date information.

Overview

RenderProgram for normalizing the result of another RenderProgram

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

Class RenderInstructionNormalize

import { RenderInstructionNormalize } from 'scenerystack/alpenglow';

Instance Methods

toString() : string

equals( other : RenderInstruction, areLocationsEqual : ( a: RenderInstructionLocation, b: RenderInstructionLocation ) => boolean ) : boolean

execute( stack : RenderExecutionStack, context : RenderEvaluationContext, executor : RenderExecutor )

writeBinary( encoder : ByteEncoder, getOffset : ( location: RenderInstructionLocation ) => number )

getBinaryLength() : number

Static Properties

INSTANCE : RenderInstructionNormalize

(readonly)

Class RenderNormalize

import { RenderNormalize } from 'scenerystack/alpenglow';

Constructor

new RenderNormalize( program : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderNormalize

getSimplified( children : RenderProgram[] ) : RenderProgram | null

(protected)

evaluate( context : RenderEvaluationContext ) : Vector4

writeInstructions( instructions : RenderInstruction[] )

serialize() : SerializedRenderNormalize

Type SerializedRenderNormalize

import type { SerializedRenderNormalize } from 'scenerystack/alpenglow';

Source Code

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