]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexarray.h
Make the use of DevIL optional
[libs/gl.git] / source / vertexarray.h
index 9610905d218994fcb2e539a6fe06d1a4e3934a41..b1b5fdee58baa672a6a45080e9909cc3ab0696b2 100644 (file)
@@ -11,6 +11,7 @@ Distributed under the LGPL
 #include <vector>
 #include <msp/core/refptr.h>
 #include <msp/datafile/loader.h>
+#include "primitivetype.h"
 #include "types.h"
 #include "vertexarraybuilder.h"
 #include "vertexformat.h"
@@ -36,6 +37,8 @@ public:
        const std::vector<float> &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<VertexArrayBuilder> modify();