Struct VertexPositionColorNormal
Describes a custom vertex format structure that contains position, color and normal data.
public struct VertexPositionColorNormal : IVertexType- Implements
- Inherited Members
Constructors
VertexPositionColorNormal(Vector3, Color, Vector3)
Creates an instance of VertexPositionColorNormal.
public VertexPositionColorNormal(Vector3 position, Color color, Vector3 normal)Parameters
- positionVector3
- Position of the vertex. 
- colorColor
- Color of the vertex. 
- normalVector3
- The vertex normal. 
Fields
Color
The vertex color.
public Color ColorField Value
Normal
The XYZ surface normal.
public Vector3 NormalField Value
Position
The XYZ vertex position.
public Vector3 PositionField Value
VertexDeclaration
Vertex declaration, which defines per-vertex data.
public static readonly VertexDeclaration VertexDeclarationField Value
Methods
Equals(object)
Compares an object with the vertex.
public override bool Equals(object obj)Parameters
- objobject
- The 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 ==(VertexPositionColorNormal, VertexPositionColorNormal)
Returns a value that indicates whether two VertexPositionColorNormal are equal
public static bool operator ==(VertexPositionColorNormal left, VertexPositionColorNormal right)Parameters
- leftVertexPositionColorNormal
- The object on the left of the equality operator. 
- rightVertexPositionColorNormal
- The object on the right of the equality operator. 
Returns
operator !=(VertexPositionColorNormal, VertexPositionColorNormal)
Returns a value that indicates whether two VertexPositionColorNormal are different
public static bool operator !=(VertexPositionColorNormal left, VertexPositionColorNormal right)Parameters
- leftVertexPositionColorNormal
- The object on the left of the inequality operator. 
- rightVertexPositionColorNormal
- The object on the right of the inequality operator.