AnimatedPart

Parts which contain spritesheet animation

Members

Functions

onDefineProperties
void onDefineProperties(PropertyStore propList)

Called when the node is to define its properties.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserializes this node from a DataNode.

onPostUpdate
void onPostUpdate(DrawList drawList)

Called during the late update phase of a new frame.

onSerialize
void onSerialize(DataNode object)

Serializes this node to a DataNode.

Properties

frameCount
vec2u frameCount [@property getter]

The amount of frames and animations in the animated part.

frameSize
vec2 frameSize [@property getter]

The size of a single frame in texel coordinates.

Inherited Members

From Part

deformedMesh
DeformedMesh deformedMesh [@property getter]

The deformed mesh state of the part.

drawListSlot
DrawListAlloc* drawListSlot;

The current active draw list slot for this drawable.

onSerialize
void onSerialize(DataNode object)

Serializes this node to a DataNode.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserializes this node from a DataNode.

onFinalize
void onFinalize(ModelState state)

Called when the node is to finalize its deserialization from disk.

onPreUpdate
void onPreUpdate(DrawList drawList)

Called during the early update phase of a new frame.

onUpdate
void onUpdate(float delta, DrawList drawList)

Called during the update phase of a new frame.

onPostUpdate
void onPostUpdate(DrawList drawList)

Called during the late update phase of a new frame.

onDraw
void onDraw(float delta, DrawList drawList)

Called when the node is to be redrawn.

onDrawMask
void onDrawMask(float delta, DrawList drawList, MaskingMode mode)

Called when the node should be drawn to a mask.

onDefineProperties
void onDefineProperties(PropertyStore propList)

Called when the node is to define its properties.

isMasking
bool isMasking [@property getter]

Whether the node can be used as a source of masking operations.

mesh
Mesh mesh [@property getter]

The mesh of the part..

mesh
Mesh mesh [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
effects
MeshEffect[] effects [@property getter]

Mesh effects applied to the part.

deformBaseMatrix
Basis deformBaseMatrix [@property getter]

The base matrix of the object before any parameters have been applied.

deformMatrix
Basis deformMatrix [@property getter]

World matrix of the deformable object.

basePoints
const(vec2)[] basePoints [@property getter]

The base position of the deformable's points.

deformPoints
vec2[] deformPoints [@property getter]

The points which may be deformed by the deformer.

textures
Texture[IN_MAX_ATTACHMENTS] textures;

List of textures this part can use

blendingMode
BlendMode blendingMode;

Blending mode

opacity
float opacity;

Opacity of the mesh

emissionStrength
float emissionStrength;

Strength of emission

tint
vec3 tint;

Multiplicative tint color

screenTint
vec3 screenTint;

Screen tint color

~this
~this()

Destructor

resetDeform
void resetDeform()

Resets the deformation for the IDeformable.

deform
void deform(vec2[] deformed, bool absolute)

Deforms the IDeformable.

deform
void deform(size_t offset, vec2 deform, bool absolute)

Deforms a single vertex in the IDeformable

addEffect
void addEffect(Args args)

Adds a mesh effect to the part.

addEffect
void addEffect(MeshEffect effect)

Adds a mesh effect to the part.

removeEffect
void removeEffect(MeshEffect effect)

Removes a given mesh effect from this part.

Meta