Vertex Structure

SFML.Net

Vertex Structure
Define a point with color and texture coordinates

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public struct Vertex
Public Structure Vertex
public value class Vertex
[<SealedAttribute>]
type Vertex =  struct end

The Vertex type exposes the following members.

Constructors
  NameDescription
Public methodVertex(Vector2f)
Construct the vertex from its position The vertex color is white and texture coordinates are (0, 0).
Public methodVertex(Vector2f, Color)
Construct the vertex from its position and color The texture coordinates are (0, 0).
Public methodVertex(Vector2f, Vector2f)
Construct the vertex from its position and texture coordinates The vertex color is white.
Public methodVertex(Vector2f, Color, Vector2f)
Construct the vertex from its position, color and texture coordinates
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Provide a string describing the object
(Overrides ValueTypeToString.)
Top
Fields
  NameDescription
Public fieldColor
Color of the vertex
Public fieldPosition
2D position of the vertex
Public fieldTexCoords
Coordinates of the texture's pixel to map to the vertex
Top
See Also