add WFObj::VertexRef::operator<()

This commit is contained in:
Josh Holtrop 2011-04-20 12:19:55 -04:00
parent 3506ad6b57
commit d33b4826e2
2 changed files with 10 additions and 0 deletions

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;
}

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