/* $Id$
This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007, 2009-2010 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
bool empty() const { return !data || !data[0]; }
const unsigned char *begin() const { return data ? data+1 : 0; }
const unsigned char *end() const { return data ? data+1+data[0] : 0; }
+ unsigned stride() const;
};
VertexFormat operator,(const VertexFormat &f, VertexComponent c);
inline VertexFormat operator,(VertexComponent c, unsigned i)
{ return (VertexFormat(c), i); }
-uint get_stride(const VertexFormat &);
+inline uint get_stride(const VertexFormat &f)
+{ return f.stride(); }
+
std::istream &operator>>(std::istream &, VertexFormat &);
} // namespace GL