VertexChannel<T>¶
-
class
VertexChannel<T>
: VertexChannel, System.Collections.IList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.Generic.IList<T>, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<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.
Type Parameters: - T –
-
readonly System.Type
ElementType
Gets the type of data contained in this channel.
-
Microsoft.Xna.Framework.Content.Pipeline.Graphics.T
Item
-
System.Collections.IList
get_Items
()
-
public bool
Contains
(Microsoft.Xna.Framework.Content.Pipeline.Graphics.T item) Parameters: - item (Microsoft.Xna.Framework.Content.Pipeline.Graphics.T) –
-
public void
CopyTo
(Microsoft.Xna.Framework.Content.Pipeline.Graphics.T[] array, int arrayIndex) Parameters: - array (Microsoft.Xna.Framework.Content.Pipeline.Graphics.T[]) –
- arrayIndex (int) –
-
public System.Collections.Generic.IEnumerator<T>
GetEnumerator
() Gets an enumerator interface for reading channel content.
Returns: Enumeration of the channel content.
-
public int
IndexOf
(Microsoft.Xna.Framework.Content.Pipeline.Graphics.T item) Parameters: - item (Microsoft.Xna.Framework.Content.Pipeline.Graphics.T) –
-
void
InsertRange
(int index, System.Collections.IEnumerable data) Inserts the range of values from the enumerable into the channel.
Parameters: - index (int) – The zero-based index at which the new elements should be inserted.
- data (System.Collections.IEnumerable) – The data to insert into the channel.
-
public System.Collections.Generic.IEnumerable<TargetType>
ReadConvertedContent<TargetType>
() Reads channel content and automatically converts it to the specified vector format.
Type Parameters: - TargetType – Target vector format for the converted channel data.
Returns: The converted channel data.