61 : coord(aCoord), normal(aNormal),
62 texCoord(aTexCoord) {}
71 <<
", tc: " << texCoord.
ToString() <<
")";
93 : coord(aCoord), color(aColor) {}
124 : coord(aCoord), normal(aNormal),
125 texCoord(aTexCoord), texCoord2(aTexCoord2) {}
132 texCoord = v.texCoord;
142 <<
", tc: " << texCoord.
ToString() <<
", tc2: " << texCoord2.
ToString() <<
")";
Vertex of a primitive.
Definition: vertex.h:52
Vertex with secondary texture coordinates.
Definition: vertex.h:113
std::string ToString() const
Returns a string (r, g, b, a)
Definition: color.h:66
void FromVertex(const Vertex &v)
Sets the fields from Vertex with texCoord2 = (0,0)
Definition: vertex.h:128
Point struct and related functions.
std::string ToString() const
Returns a string "[x, y, z]".
Definition: vector.h:224
std::string ToString() const
Returns a string "(c: [...], n: [...], tc: [...], tc2: [...])".
Definition: vertex.h:137
Color structs and related functions.
std::string ToString() const
Returns a string "(c: [...], n: [...], tc: [...])".
Definition: vertex.h:66
2D point
Definition: point.h:50
std::string ToString() const
Returns a string "(c: [...], col: [...])".
Definition: vertex.h:96
Colored vertex.
Definition: vertex.h:84
Namespace for (new) graphics code.
Definition: app.h:49
Vector struct and related functions.
3D (3x1) vector
Definition: vector.h:53
RGBA color.
Definition: color.h:39
std::string ToString() const
Returns a string "[x, y]".
Definition: point.h:163