Vertex

Define a point with color and texture coordinates.

Constructors

this
this(Vector2f thePosition)

Construct the vertex from its position

this
this(Vector2f thePosition, Color theColor)

Construct the vertex from its position and color

this
this(Vector2f thePosition, Vector2f theTexCoords)

Construct the vertex from its position and texture coordinates

this
this(Vector2f thePosition, Color theColor, Vector2f theTexCoords)

Construct the vertex from its position, color and texture coordinates

Members

Variables

color
Color color;

Color of the vertex. Default is White.

position
Vector2f position;

2D position of the vertex

texCoords
Vector2f texCoords;

2D coordinates of the texture's pixel map to the vertex.

Meta