Struct VertexPositionColor
Describes a custom vertex format structure that contains position and color.
[DataContract]
public struct VertexPositionColor : IVertexType
- Implements
- Inherited Members
Constructors
VertexPositionColor(Vector3, Color)
Creates an instance of VertexPositionColor.
public VertexPositionColor(Vector3 position, Color color)
Parameters
Fields
Color
The vertex color.
[DataMember]
public Color Color
Field Value
Position
The XYZ vertex position.
[DataMember]
public Vector3 Position
Field Value
VertexDeclaration
Vertex declaration, which defines per-vertex data.
public static readonly VertexDeclaration VertexDeclaration
Field Value
Methods
Equals(object)
Compares an object with the vertex.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Retrieves a string representation of this object.
public override string ToString()
Returns
- string
String representation of this object.
Operators
operator ==(VertexPositionColor, VertexPositionColor)
Returns a value that indicates whether two VertexPositionColor are equal
public static bool operator ==(VertexPositionColor left, VertexPositionColor right)
Parameters
left
VertexPositionColorThe object on the left of the equality operator.
right
VertexPositionColorThe object on the right of the equality operator.
Returns
operator !=(VertexPositionColor, VertexPositionColor)
Returns a value that indicates whether two VertexPositionColor are different
public static bool operator !=(VertexPositionColor left, VertexPositionColor right)
Parameters
left
VertexPositionColorThe object on the left of the inequality operator.
right
VertexPositionColorThe object on the right of the inequality operator.