Struct VertexPositionNormalTexture
Describes a custom vertex format structure that contains position, normal data, and one set of texture coordinates.
public struct VertexPositionNormalTexture : IVertexType
- Implements
- Inherited Members
Constructors
VertexPositionNormalTexture(Vector3, Vector3, Vector2)
Creates an instance of VertexPositionTexture.
public VertexPositionNormalTexture(Vector3 position, Vector3 normal, Vector2 textureCoordinate)
Parameters
position
Vector3Position of the vertex.
normal
Vector3The vertex normal.
textureCoordinate
Vector2Texture coordinate of the vertex.
Fields
Normal
The XYZ surface normal.
public Vector3 Normal
Field Value
Position
The XYZ vertex position.
public Vector3 Position
Field Value
TextureCoordinate
UV texture coordinates.
public Vector2 TextureCoordinate
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 ==(VertexPositionNormalTexture, VertexPositionNormalTexture)
Returns a value that indicates whether two VertexPositionNormalTexture are equal
public static bool operator ==(VertexPositionNormalTexture left, VertexPositionNormalTexture right)
Parameters
left
VertexPositionNormalTextureThe object on the left of the equality operator.
right
VertexPositionNormalTextureThe object on the right of the equality operator.
Returns
operator !=(VertexPositionNormalTexture, VertexPositionNormalTexture)
Returns a value that indicates whether two VertexPositionNormalTexture are different
public static bool operator !=(VertexPositionNormalTexture left, VertexPositionNormalTexture right)
Parameters
left
VertexPositionNormalTextureThe object on the left of the inequality operator.
right
VertexPositionNormalTextureThe object on the right of the inequality operator.