X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexformat.h;h=e8ba702db1746c4c4b0ec5357f0f13fe6bf4fc77;hp=fba206e4386e978674a2d5e6bbc7cc33c9d2119e;hb=99ca354f18119f82f1adeca100cd665a8f640317;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309 diff --git a/source/core/vertexformat.h b/source/core/vertexformat.h index fba206e4..e8ba702d 100644 --- a/source/core/vertexformat.h +++ b/source/core/vertexformat.h @@ -97,6 +97,7 @@ public: bool operator==(const VertexFormat &) const; bool operator!=(const VertexFormat &other) const { return !(*this==other); } + unsigned size() const { return count; } bool empty() const { return !count; } const VertexAttribute *begin() const { return attributes; } const VertexAttribute *end() const { return attributes+count; } @@ -146,4 +147,6 @@ void operator>>(const LexicalConverter &, VertexAttribute &); } // namespace GL } // namespace Msp +#include "vertexformat_backend.h" + #endif