]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexformat.cpp
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / vertexformat.cpp
index 037305f8d74251c9e6cd882540df733e292afc30..6c2e2933ba0f06f7dc9c483321dc9b7fcf2a4138 100644 (file)
@@ -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;