-void array_element(int);
-void draw_arrays(PrimitiveType, int, unsigned);
-void draw_elements(PrimitiveType, unsigned, DataType, const void *);
-void draw_range_elements(PrimitiveType, unsigned, unsigned, unsigned, DataType, const void *);
+public:
+ /// Deprecated alias for use_buffer
+ void use_vertex_buffer(Buffer *b) { use_buffer(b); }
+
+ /// Clears all vertices from the array.
+ void clear();
+
+ /// Reserve space for vertices.
+ void reserve(unsigned);
+
+ /// Append a new vertex at the end of the array and return its location.
+ float *append();
+
+ /// Returns the location of a vertex for modification.
+ float *modify(unsigned);
+private:
+ virtual unsigned get_data_size() const;
+ virtual const void *get_data_pointer() const { return &data[0]; }