VertexArray(const VertexArray &);
VertexArray &operator=(const VertexArray &);
public:
+ VertexArray();
+
+ /// Construct a VertexArray and set its format.
VertexArray(const VertexFormat &);
- /// Resets the VertexArray to a different format. All data is cleared.
- void reset(const VertexFormat &);
+ /// Sets the format of the VertexArray.
+ void set_format(const VertexFormat &);
const VertexFormat &get_format() const { return format; }