57 : coord(aCoord), normal(aNormal),
58 texCoord(aTexCoord) {}
67 <<
", tc: " << texCoord.
ToString() <<
")";
87 : coord(aCoord), color(aColor) {}
118 : coord(aCoord), normal(aNormal),
119 texCoord(aTexCoord), texCoord2(aTexCoord2) {}
126 texCoord = v.texCoord;
136 <<
", tc: " << texCoord.
ToString() <<
", tc2: " << texCoord2.
ToString() <<
")";
Vertex of a primitive.
Definition: vertex.h:48
Vertex with secondary texture coordinates.
Definition: vertex.h:107
std::string ToString() const
Returns a string (r, g, b, a)
Definition: color.h:62
void FromVertex(const Vertex &v)
Sets the fields from Vertex with texCoord2 = (0,0)
Definition: vertex.h:122
Point struct and related functions.
std::string ToString() const
Returns a string "[x, y, z]".
Definition: vector.h:220
std::string ToString() const
Returns a string "(c: [...], n: [...], tc: [...], tc2: [...])".
Definition: vertex.h:131
Color structs and related functions.
std::string ToString() const
Returns a string "(c: [...], n: [...], tc: [...])".
Definition: vertex.h:62
2D point
Definition: point.h:46
std::string ToString() const
Returns a string "(c: [...], col: [...])".
Definition: vertex.h:90
Colored vertex.
Definition: vertex.h:80
Vector struct and related functions.
3D (3x1) vector
Definition: vector.h:49
RGBA color.
Definition: color.h:35
std::string ToString() const
Returns a string "[x, y]".
Definition: point.h:159