Class VertexElementUV

VertexElementUV class

Defines the UV coordinates for specified components. A geometry can have multiple VertexElementUV elements, and each one have different TextureMappings.

public class VertexElementUV : VertexElementVector4

Constructors

NameDescription
VertexElementUV()Initializes a new instance of the VertexElementUV class. The default texture mapping type is Diffuse
VertexElementUV(TextureMapping)Initializes a new instance of the VertexElementUV class.

Properties

NameDescription
Data { get; }Gets the vertex data(Inherited from VertexElementVector4.)
Indices { get; }Gets the indices data(Inherited from VertexElement.)
MappingMode { get; set; }Gets or sets how the element is mapped.(Inherited from VertexElement.)
Name { get; set; }Gets or sets the name.(Inherited from VertexElement.)
ReferenceMode { get; set; }Gets or sets how the element is referenced.(Inherited from VertexElement.)
VertexElementType { get; }Gets the type of the VertexElement(Inherited from VertexElement.)

Methods

NameDescription
AddData(IEnumerable<Vector2>)
AddData(IEnumerable<Vector3>)
override Clear()Removes all elements from the direct and the index arrays.(Inherited from VertexElementVector4.)
CopyTo(VertexElementVector4)Copies data to specified element(Inherited from VertexElementVector4.)
SetData(Vector4[])Load data(Inherited from VertexElementVector4.)
SetIndices(int[])Load indices(Inherited from VertexElement.)
override ToString()String representation of vertex element.(Inherited from VertexElement.)

See Also