]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexformat.h
Better way of refreshing VertexSetup
[libs/gl.git] / source / vertexformat.h
index bcb5b9251ebc73468237e83f2065f9c6a62187ed..3561292245fc640deb2859629cbf8f39c1776e5b 100644 (file)
@@ -44,6 +44,8 @@ public:
 
        VertexFormat operator,(VertexComponent c) const;
        VertexFormat operator,(unsigned i) const;
+       bool operator==(const VertexFormat &) const;
+       bool operator!=(const VertexFormat &other) const { return !(*this==other); }
 
        bool empty() const { return !count; }
        const unsigned char *begin() const { return components; }