VertexElementUV class

VertexElementUV class

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

Inheritance: VertexElementUVVertexElementVector4VertexElement

The VertexElementUV type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the VertexElementUV class.
The default texture mapping type is TextureMapping.DIFFUSE
initInitializes a new instance of the VertexElementUV class.

Properties

PropertyDescription
vertex_element_typeGets the type of the VertexElement
nameGets or sets the name.
mapping_modeGets or sets how the element is mapped.
reference_modeGets or sets how the element is referenced.
indicesGets the indices data
dataGets the vertex data

Methods

MethodDescription
add_data
add_data
set_indicesLoad indices
clearRemoves all elements from the direct and the index arrays.
copy_toCopies data to specified element
set_dataLoad data

See Also