Class EntityMeshData
A class that represents the mesh information of an entity.
Namespace: Evergine.Framework.Particles.Helpers
Assembly: Evergine.Framework.dll
Syntax
public abstract class EntityMeshData
Fields
ShouldTraspose
If the matrices should be transposed.
Declaration
protected bool ShouldTraspose
Field Value
Type | Description |
---|---|
bool |
SizeOfEmitVertex
The size of the emitted mesh vertex data.
Declaration
protected static readonly int SizeOfEmitVertex
Field Value
Type | Description |
---|---|
int |
SizeOfMatrix
The size of a matrix structure.
Declaration
protected static readonly int SizeOfMatrix
Field Value
Type | Description |
---|---|
int |
nTransforms
The number of transformations.
Declaration
protected int nTransforms
Field Value
Type | Description |
---|---|
int |
skRenderer
The skinned mesh renderer.
Declaration
protected SkinnedMeshRenderer skRenderer
Field Value
Type | Description |
---|---|
SkinnedMeshRenderer |
transformData
The transform data as a long.
Declaration
protected long transformData
Field Value
Type | Description |
---|---|
long |
transformDataPtr
The transform data pointer.
Declaration
protected nint transformDataPtr
Field Value
Type | Description |
---|---|
nint |
Properties
NumIndices
Gets the number of indices.
Declaration
public uint NumIndices { get; }
Property Value
Type | Description |
---|---|
uint |
NumSkinnedTriangles
Gets the number of skinned triangles.
Declaration
protected uint NumSkinnedTriangles { get; }
Property Value
Type | Description |
---|---|
uint |
NumSkinnedVertices
Gets or sets the number of skinned vertices.
Declaration
public uint NumSkinnedVertices { get; protected set; }
Property Value
Type | Description |
---|---|
uint |
NumTriangles
Gets the number of triangles.
Declaration
protected uint NumTriangles { get; }
Property Value
Type | Description |
---|---|
uint |
NumVertices
Gets the number of vertices.
Declaration
public uint NumVertices { get; }
Property Value
Type | Description |
---|---|
uint |
RootJointTransform
Gets the root joint.
Declaration
public Matrix4x4 RootJointTransform { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
Methods
ClearEntity()
Clears the entity's information.
Declaration
public virtual void ClearEntity()
RefreshEmitTransform(Transform3D, int)
Refresh the mesh transform.
Declaration
protected virtual void RefreshEmitTransform(Transform3D transform, int tIndex)
Parameters
Type | Name | Description |
---|---|---|
Transform3D | transform | The new transform. |
int | tIndex | The new index. |
RefreshEntity(Entity)
Refreshes the entity data.
Declaration
public void RefreshEntity(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The target entity. |
RefreshEntityParameters(EmitMeshVertexData[], uint[])
Refreshes the entity parameters.
Declaration
protected abstract void RefreshEntityParameters(EmitMeshVertexData[] emitVertices, uint[] emitIndices)
Parameters
Type | Name | Description |
---|---|---|
EmitMeshVertexData[] | emitVertices | The emission vertices. |
uint[] | emitIndices | The emission indices. |
RefreshRootJoint()
Refreshes the root joint's transform.
Declaration
protected virtual void RefreshRootJoint()