namespace Msp {
namespace GL {
-/** A single vertex component. Nvidia drivers have aliasing between the
-fixed-functions and generic vertex attributes, despite the standard not
-allowing it. We use the same attribute indices here to avoid problems. */
+/** A single vertex component. Symbolic names are provided for commonly used
+attributes. These are aliased with with generic attributes, so be careful when
+picking your attribute indices. */
enum VertexComponent
{
VERTEX2 = 1,
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; }