LightAnimData

Engine/source/T3D/lightAnimData.h

A datablock which defines and performs light animation.

More...

Classes:

class

Helper class used to keyframe light parameters.

Private Types

Parent 

Public Attributes

AnimValue< 1 >

The brightness animation parameter.

AnimValue< 3 >

The color animation parameters for r, g, and b.

AnimValue< 3 >

The positional animation parameters for x, y, and z.

AnimValue< 3 >

The rotational animation parameters for x, y, and z.

Protected Functions

Called internally to update the key data.

Public Functions

animate(LightInfo * light, LightAnimState * state)

Animates parameters on the passed Light's LightInfo object.

Called after any property of the object is changed in the world editor.

bool
preload(bool server, String & errorStr)

Called to prepare the datablock for use, after it has been unpacked.

Public Static Functions

Detailed Description

A datablock which defines and performs light animation.

Private Types

typedef SimDataBlock Parent 

Public Attributes

AnimValue< 1 > mBrightness 

The brightness animation parameter.

AnimValue< 3 > mColor 

The color animation parameters for r, g, and b.

AnimValue< 3 > mOffset 

The positional animation parameters for x, y, and z.

AnimValue< 3 > mRot 

The rotational animation parameters for x, y, and z.

Protected Functions

_updateKeys()

Called internally to update the key data.

Public Functions

LightAnimData()

~LightAnimData()

animate(LightInfo * light, LightAnimState * state)

Animates parameters on the passed Light's LightInfo object.

DECLARE_CONOBJECT(LightAnimData )

inspectPostApply()

Reimplemented from: SimObject

packData(BitStream * stream)

Reimplemented from: SimDataBlock

preload(bool server, String & errorStr)

Reimplemented from: SimDataBlock

unpackData(BitStream * stream)

Reimplemented from: SimDataBlock

Public Static Functions

initPersistFields()