Hi,
I got question.
I have a constructor with parameter like this one:
Vertex4f::Vertex4f(const Vertex4f& _v){
this->x = _v.x;
this->y = _v.y;
this->z = _v.z;
this->w = _v.w;
}
why do i have an error while doing this:
Vertex4f v1, v2, v3;
v1(this->vertices[this->triangles[i].getV1()]);
v2(this->vertices[this->triangles[i].getV2()]);
v3(this->vertices[this->triangles[i].getV3()]);
but not error by doing this:
Vertex4f v1(this->vertices[this->triangles[i].getV1()]);
Vertex4f v2(this->vertices[this->triangles[i].getV2()]);
Vertex4f v3(this->vertices[this->triangles[i].getV3()]);
Isnt it just a matter of "make now assign later" kind of thing?
Thanks