VertexDeclaration
Overview
VertexDeclaration is a class in Aspose.3D FOSS for .NET.
Inherits from: IEnumerable<VertexField>, IEquatable<VertexDeclaration>, IComparable<VertexDeclaration>.
VertexDeclaration.VertexDeclaration creates a new empty vertex declaration.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Sealed | bool | Read | Indicates whether the declaration is immutable |
Count | int | Read | Gets the number of fields in the declaration |
Size | int | Read | Gets the total size in bytes of the vertex layout |
Methods
| Signature | Description |
|---|---|
VertexDeclaration() | Creates a new empty vertex declaration |
Clear() | Removes all fields from the declaration |
AddField(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, index: int, alias: string) | Adds a vertex field with type, semantic, index and optional alias |
GetHashCode() | Returns a hash code for the declaration |
Equals(obj: object?) | Determines equality with another declaration |
Equals(other: VertexDeclaration) | |
CompareTo(other: VertexDeclaration) | Compares this declaration with another for ordering |
ToString() | Returns a string representation of the declaration |
GetEnumerator() | Returns an enumerator over the vertex fields |