X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexarray.h;h=b1b5fdee58baa672a6a45080e9909cc3ab0696b2;hb=d1800d7ea80290f4913d0203241cef1409656522;hp=9610905d218994fcb2e539a6fe06d1a4e3934a41;hpb=a80b074c70ec991f27114efd13686038cf42c493;p=libs%2Fgl.git diff --git a/source/vertexarray.h b/source/vertexarray.h index 9610905d..b1b5fdee 100644 --- a/source/vertexarray.h +++ b/source/vertexarray.h @@ -11,6 +11,7 @@ Distributed under the LGPL #include #include #include +#include "primitivetype.h" #include "types.h" #include "vertexarraybuilder.h" #include "vertexformat.h" @@ -36,6 +37,8 @@ public: const std::vector &get_data() const { return data; } void use_vertex_buffer(); void use_vertex_buffer(VertexBuffer *); + void reserve(unsigned); + unsigned size() const { return data.size()/stride; } void clear(); void reset(VertexFormat); RefPtr modify();