Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PropertyMixer

Buffered scene graph property that allows weighted accumulation; used internally.

Hierarchy

  • PropertyMixer

Index

Constructors

constructor

  • new PropertyMixer(binding: any, typeName: string, valueSize: number): I3JS.PropertyMixer

Properties

binding

binding: any

buffer

buffer: any

Buffer with size valueSize * 4. This has the layout: [ incoming | accu0 | accu1 | orig ] Interpolators can use .buffer as their .result and the data then goes to 'incoming'. 'accu0' and 'accu1' are used frame-interleaved for the cumulative result and are compared to detect changes. 'orig' stores the original state of the property.

cumulativeWeight

cumulativeWeight: number

Default is 0.

cumulativeWeightAdditive

cumulativeWeightAdditive: number

referenceCount

referenceCount: number

Default is 0.

useCount

useCount: number

Default is 0.

valueSize

valueSize: number

Methods

accumulate

  • accumulate(accuIndex: number, weight: number): void

accumulateAdditive

  • accumulateAdditive(weight: number): void

apply

  • apply(accuIndex: number): void

restoreOriginalState

  • restoreOriginalState(): void

saveOriginalState

  • saveOriginalState(): void

Generated using TypeDoc