add WFObj::VertexRef::operator<()

This commit is contained in:
Josh Holtrop committed 2011-04-20 12:19:55 -04:00
1 parent 3506ad6b57
commit d33b4826e2
2 files changed
+10

No files matched your search

+9
View File
@@ -326,3 +326,12 @@ bool WFObj::loadfile(const char *path, Buffer *buff)
{ {
/* TODO */ /* TODO */
} }
bool WFObj::VertexRef::operator<(const VertexRef & other)
{
if (vertex != other.vertex)
return vertex < other.vertex;
if (texture != other.texture)
return texture < other.texture;
return normal < other.normal;
}
+1
View File
@@ -51,6 +51,7 @@ protected:
int vertex; int vertex;
int texture; int texture;
int normal; int normal;
bool operator<(const VertexRef & other);
}; };
class Face class Face