Commit cbc4b424 by Philipp Adolf

Make QDebug accept Vertex

parent 140ce77f
#include "mesh.h"
QDebug operator<< (QDebug d, const Vertex &v) {
d.nospace() << "Vertex(" << v.pos << ", " << v.normal << ", " << v.tex << ")";
d.space();
return d;
}
Mesh::MeshEntry::MeshEntry()
{
......
......@@ -30,6 +30,8 @@ struct Vertex
}
};
QDebug operator<< (QDebug d, const Vertex &v);
class Mesh
{
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment