API Reference

Class List

pc.Morph

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

Summary

Methods

destroy

Frees video memory allocated by this object.

getTarget

Gets the morph target by index.

Details

Constructor

Morph(targets, graphicsDevice)

Parameters

targetspc.MorphTarget[]

A list of morph targets.

graphicsDevicepc.GraphicsDevice

The graphics device used to manage this morph target. If it is not provided, a device is obtained from the pc.Application.

Methods

destroy()

Frees video memory allocated by this object.

getTarget(index)

Gets the morph target by index.

Parameters

indexnumber

An index of morph target.

Returns

pc.MorphTarget

A morph target object.