Table of Contents

Class VertexChannel

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides methods and properties for maintaining a vertex channel. A vertex channel is a list of arbitrary data with one value for each vertex. Channels are stored inside a GeometryContent and identified by name.

public abstract class VertexChannel : IList, ICollection, IEnumerable
Inheritance
VertexChannel
Implements
Derived
Inherited Members

Properties

Count

Gets the number of elements in the vertex channel

public int Count { get; }

Property Value

int

ElementType

Gets the type of data contained in this channel.

public abstract Type ElementType { get; }

Property Value

Type

this[int]

Gets or sets the element at the specified index.

public object this[int index] { get; set; }

Parameters

index int

Property Value

object

Name

Gets the name of the vertex channel.

public string Name { get; }

Property Value

string

Methods

Contains(object)

Determines whether the specified element is in the channel.

public bool Contains(object value)

Parameters

value object

Element being searched for.

Returns

bool

true if the element is present; false otherwise.

CopyTo(Array, int)

Copies the elements of the channel to an array, starting at the specified index.

public void CopyTo(Array array, int index)

Parameters

array Array

Array that will receive the copied channel elements.

index int

Starting index for copy operation.

GetEnumerator()

Gets an enumerator interface for reading channel content.

public IEnumerator GetEnumerator()

Returns

IEnumerator

Enumeration of the channel content.

IndexOf(object)

Gets the index of the specified item.

public int IndexOf(object value)

Parameters

value object

Item whose index is to be retrieved.

Returns

int

Index of specified item.

ReadConvertedContent<TargetType>()

Reads channel content and automatically converts it to the specified vector format.

public abstract IEnumerable<TargetType> ReadConvertedContent<TargetType>()

Returns

IEnumerable<TargetType>

The converted data.

Type Parameters

TargetType

Target vector format of the converted data.