Mirror Engine
V7
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / Morph

Class: Morph

Contains a list of MorphTargets, a combined delta AABB and some associated data.

Extends

  • RefCountedObject

Constructors

new Morph()

new Morph(
   targets: MorphTarget[],
   graphicsDevice: GraphicsDevice,
   options?: {
  preferHighPrecision: boolean;
 }): Morph

Create a new Morph instance.

Parameters

targets

MorphTarget[]

A list of morph targets.

graphicsDevice

GraphicsDevice

The graphics device used to manage this morph target.

options?

Object for passing optional arguments.

preferHighPrecision?

boolean = false

True if high precision storage should be preferred. This is faster to create and allows higher precision, but takes more memory and might be slower to render. Defaults to false.

Returns

Morph

Overrides

RefCountedObject.constructor

Properties

preferHighPrecision

preferHighPrecision: boolean

refCount

Get Signature

get refCount(): number

Gets the current reference count.

Returns

number

Inherited from

RefCountedObject.refCount

targets

Get Signature

get targets(): MorphTarget[]

Gets the array of morph targets.

Returns

MorphTarget[]

Methods

decRefCount()

decRefCount(): void

Decrements the reference counter.

Returns

void

Inherited from

RefCountedObject.decRefCount

destroy()

destroy(): void

Frees video memory allocated by this object.

Returns

void


incRefCount()

incRefCount(): void

Increments the reference counter.

Returns

void

Inherited from

RefCountedObject.incRefCount
Mirror Engine Logo