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 &);
+ /// Deprecated. Use set_format.
+ DEPRECATED void reset(const VertexFormat &f) { set_format(f); }
+
+ /// Sets the format of the VertexArray.
+ void set_format(const VertexFormat &);
const VertexFormat &get_format() const { return format; }