Vertex

A Vertex has coordinates, a color and texture coordinates

Constructors

this
this()

Disable default CTor

this
this(float x, float y, float z, float tx, float ty)

CTor

this
this(Vector2f position)

CTor

this
this(Vector2f position, Vector2f texcoord, Color col)

CTor

this
this(Vector2f position, Color col)

CTor

Members

Functions

getAsColor
Color getAsColor()

Create a Color from the color data

getPositionAsVector
Vector3f getPositionAsVector()

Create a Vector3f from the position data.

getTexCoordAsVector
Vector2f getTexCoordAsVector()

Create a Vector2f from the position data (the z coordinate is ignored).

setColor
void setColor(Color col)

Set a (new) color

setPosition
void setPosition(Vector2f position)

Set a (new) position

setTexCoord
void setTexCoord(Vector2f texcoord)

Set (new) texcoords

Variables

a
float a;
b
float b;
g
float g;

The color components

r
float r;

The color components

tx
float tx;
ty
float ty;

The texcoords

x
float x;
y
float y;
z
float z;

The coordinates

Meta

Authors

rschuett