]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexarray.h
Remove deprecated things related to vertex formats and arrays
[libs/gl.git] / source / core / vertexarray.h
index 95a6ec2f3aa526ac11165b4f24e77e5d30d67b10..107d1851f8a70b99a2d5bb24533034a86cc1c883 100644 (file)
@@ -43,10 +43,13 @@ private:
        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; }