2021-01-13 10:42:57 -06:00
|
|
|
#include "Vertex.h"
|
|
|
|
|
|
|
|
Vertex::Vertex() {
|
|
|
|
x = 0.0f;
|
|
|
|
y = 0.0f;
|
|
|
|
z = 0.0f;
|
2021-01-21 15:26:39 -06:00
|
|
|
nx = 0.0f;
|
|
|
|
ny = 0.0f;
|
|
|
|
nz = 0.0f;
|
2021-01-17 14:36:38 -06:00
|
|
|
u = 0.0f;
|
|
|
|
v = 0.0f;
|
2021-01-13 10:42:57 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
Vertex::Vertex(cfloat x, cfloat y, cfloat z) {
|
|
|
|
this->x = x;
|
|
|
|
this->y = y;
|
|
|
|
this->z = z;
|
2021-01-21 15:26:39 -06:00
|
|
|
this->nz = 0.0f;
|
|
|
|
this->ny = 0.0f;
|
|
|
|
this->nz = 0.0f;
|
2021-01-17 14:36:38 -06:00
|
|
|
this->u = 0.0f;
|
|
|
|
this->v = 0.0f;
|
|
|
|
}
|
|
|
|
|
|
|
|
Vertex::Vertex(cfloat x, cfloat y, cfloat z, cfloat u, cfloat v) {
|
|
|
|
this->x = x;
|
|
|
|
this->y = y;
|
|
|
|
this->z = z;
|
2021-01-21 15:26:39 -06:00
|
|
|
this->nx = 0.0f;
|
|
|
|
this->ny = 0.0f;
|
|
|
|
this->nz = 0.0f;
|
|
|
|
this->u = u;
|
|
|
|
this->v = v;
|
|
|
|
}
|
|
|
|
|
|
|
|
Vertex::Vertex(cfloat x, cfloat y, cfloat z,
|
|
|
|
cfloat nx, float ny, cfloat nz,
|
|
|
|
cfloat u, cfloat v) {
|
|
|
|
this->x = x;
|
|
|
|
this->y = y;
|
|
|
|
this->z = z;
|
|
|
|
this->nx = nx;
|
|
|
|
this->ny = ny;
|
|
|
|
this->nz = nz;
|
2021-01-17 14:36:38 -06:00
|
|
|
this->u = u;
|
|
|
|
this->v = v;
|
2021-01-13 10:42:57 -06:00
|
|
|
}
|