VertexPositionColor Structure
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Describes a custom vertex format structure that contains position and color information.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public Structure VertexPositionColor _
Implements IVertexType
public struct VertexPositionColor : IVertexType
The VertexPositionColor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VertexPositionColor | Initializes a new instance of the VertexPositionColor class. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Returns a value that indicates whether the current instance is equal to a specified object. (Overrides ValueType.Equals(Object).) | |
GetHashCode | Gets the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
ToString | Retrieves a string representation of this object. (Overrides ValueType.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Compares two objects to determine whether they are the same. | |
Inequality | Compares two objects to determine whether they are different. |
Top
Fields
Name | Description | |
---|---|---|
Color | Identifies the Color dependency property. | |
Position | Identifies the Position dependency property. | |
VertexDeclaration | Identifies the VertexDeclaration dependency property. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IVertexType.VertexDeclaration | Gets a vertex declaration. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.