X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexarray.h;h=4c2a028f83b1439f0104cc275602160332e1757e;hp=95a6ec2f3aa526ac11165b4f24e77e5d30d67b10;hb=d40673bd28c4b4524d3642b949d9d109dc6f9f24;hpb=11266e8093e56524a68de1d0a08d275de95c56a0 diff --git a/source/core/vertexarray.h b/source/core/vertexarray.h index 95a6ec2f..4c2a028f 100644 --- a/source/core/vertexarray.h +++ b/source/core/vertexarray.h @@ -43,10 +43,16 @@ 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 &); + /// 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; }