public final class Vertex extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
Color |
color
The vertex color.
|
Vector2f |
position
The vertex position.
|
Vector2f |
texCoords
The vertex texture coordinates.
|
Constructor and Description |
---|
Vertex(Vector2f position)
Constructs a new vertex at the specified position with white color.
|
Vertex(Vector2f position,
Color color)
Constructs a new vertex with the specified position and color.
|
Vertex(Vector2f position,
Color color,
Vector2f texCoords)
Constructs a new vertex with the specified parameters.
|
Vertex(Vector2f position,
Vector2f texCoords)
Constructs a new vertex with the specified position and texture coordinates, with white color.
|
public final Vector2f position
public final Color color
public final Vector2f texCoords
The unit space this information is measured in depends on the way the respective
texture will be bound. By the default, the Texture.CoordinateType.NORMALIZED
coordinate type is used.
public Vertex(Vector2f position)
position
- the vertex' position.public Vertex(Vector2f position, Color color)
position
- the vertex' position.color
- the vertex' color.public Vertex(Vector2f position, Vector2f texCoords)
position
- the vertex' position.texCoords
- the vertex' texture coordinates.