X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexformat.cpp;h=6c2e2933ba0f06f7dc9c483321dc9b7fcf2a4138;hb=9ea45d05951ead69fee978000cda90f9cf5f0c81;hp=037305f8d74251c9e6cd882540df733e292afc30;hpb=3b159edbe4e80a2bc19c4c2fcd42cb996b9fbfe0;p=libs%2Fgl.git diff --git a/source/vertexformat.cpp b/source/vertexformat.cpp index 037305f8..6c2e2933 100644 --- a/source/vertexformat.cpp +++ b/source/vertexformat.cpp @@ -43,6 +43,13 @@ VertexFormat VertexFormat::operator,(unsigned i) const return r; } +bool VertexFormat::operator==(const VertexFormat &other) const +{ + if(count!=other.count) + return false; + return equal(components, components+count, other.components); +} + unsigned VertexFormat::stride() const { unsigned s = 0;