Part

Dynamic Mesh Part

Constructors

this
this(Node parent)

Constructs a new part

this
this(MeshData data, Node parent)

Constructs a new part

this
this(MeshData data, GUID guid, Node parent)

Constructs a new part

this
this(MeshData data, Texture[] textures, Node parent)

Constructs a new part

this
this(MeshData data, Texture[] textures, GUID guid, Node parent)

Constructs a new part

Destructor

~this
~this()

Destructor

Members

Functions

addEffect
void addEffect(Args args)

Adds a mesh effect to the part.

addEffect
void addEffect(MeshEffect effect)

Adds a mesh effect to the part.

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

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.

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.

onFinalize
void onFinalize(ModelState state)

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

onPostUpdate
void onPostUpdate(DrawList drawList)

Called during the late update phase of a new frame.

onPreUpdate
void onPreUpdate(DrawList drawList)

Called during the early update phase of a new frame.

onSerialize
void onSerialize(DataNode object)

Serializes this node to a DataNode.

onUpdate
void onUpdate(float delta, DrawList drawList)

Called during the update phase of a new frame.

removeEffect
void removeEffect(MeshEffect effect)

Removes a given mesh effect from this part.

resetDeform
void resetDeform()

Resets the deformation for the IDeformable.

Properties

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

The base position of the deformable's points.

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.

deformPoints
vec2[] deformPoints [@property getter]

The points which may be deformed by the deformer.

deformedMesh
DeformedMesh deformedMesh [@property getter]

The deformed mesh state of the part.

effects
MeshEffect[] effects [@property getter]

Mesh effects applied to the part.

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.

Variables

blendingMode
BlendMode blendingMode;

Blending mode

drawListSlot
DrawListAlloc* drawListSlot;

The current active draw list slot for this drawable.

emissionStrength
float emissionStrength;

Strength of emission

opacity
float opacity;

Opacity of the mesh

screenTint
vec3 screenTint;

Screen tint color

textures
Texture[IN_MAX_ATTACHMENTS] textures;

List of textures this part can use

tint
vec3 tint;

Multiplicative tint color

Inherited Members

From Visual

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.

onDelegateFindVisuals
void onDelegateFindVisuals(weak_vector!Visual visuals, bool recurseDelegates, bool append)

Callback for when the Visual is being requested to find its sub-visuals.

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.

isDelegated
bool isDelegated [@property getter]

Whether the renderer should delegate rendering logic to the visual node.

isMasking
bool isMasking [@property getter]

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

zSort
int zSort [@property getter]

World-space Z-sorting value

zSortRender
float zSortRender [@property getter]

World-space z-sorting value taking in to account properties.

~this
~this()

Destructor

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

Draws this visual as a mask.

findVisuals
void findVisuals(weak_vector!Visual visuals, bool recurseDelegates, bool append)

Requests that the list gather sub-visuals to be rendered, if applicable.

Meta