Table of Contents

Class VertexChannel<T>

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

Provides methods and properties for maintaining a vertex channel. This is a generic implementation of VertexChannel and, therefore, can handle strongly typed content data.

public sealed class VertexChannel<T> : VertexChannel, IList, ICollection, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
Provides methods and properties for maintaining a vertex channel. This is a generic implementation of VertexChannel and, therefore, can handle strongly typed content data.
Inheritance
VertexChannel<T>
Implements
Inherited Members

Properties

ElementType

Gets the type of data contained in this channel.

public override Type ElementType { get; }

Property Value

Type

this[int]

Gets or sets the element at the specified index.

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

Parameters

index int

Property Value

T

Methods

Contains(T)

Determines whether the specified element is in the channel.

public bool Contains(T item)

Parameters

item T

Element being searched for.

Returns

bool

true if the element is present; false otherwise.

CopyTo(T[], int)

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

public void CopyTo(T[] array, int arrayIndex)

Parameters

array T[]

Array that will receive the copied channel elements.

arrayIndex int

Starting index for copy operation.

GetEnumerator()

Gets an enumerator interface for reading channel content.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

Enumeration of the channel content.

IndexOf(T)

Gets the index of the specified item.

public int IndexOf(T item)

Parameters

item T

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 override IEnumerable<TargetType> ReadConvertedContent<TargetType>()

Returns

IEnumerable<TargetType>

The converted channel data.

Type Parameters

TargetType

Target vector format for the converted channel data.