X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexarray.h;h=7e6d04f5a05aab16c15d6dfb980748f93235cef0;hb=afd625b06702e7a25e0730601f03955832b64e65;hp=079c2234cc5a598ac5abdb21925aa55c00ca8123;hpb=85c82f93f4874bcf0b04332c9abb62cd2a5b181b;p=libs%2Fgl.git diff --git a/source/vertexarray.h b/source/vertexarray.h index 079c2234..7e6d04f5 100644 --- a/source/vertexarray.h +++ b/source/vertexarray.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_VERTEXARRAY_H_ #define MSP_GL_VERTEXARRAY_H_ @@ -65,17 +58,16 @@ public: const VertexFormat &get_format() const { return format; } const std::vector &get_data() const { return data; } - void use_vertex_buffer(); - void use_vertex_buffer(Buffer *); - void reserve(unsigned); - unsigned size() const { return data.size()/stride; } - void clear(); - void reset(const VertexFormat &); - void apply() const; - float *append(); + void use_vertex_buffer(); + void use_vertex_buffer(Buffer *); + void reserve(unsigned); + unsigned size() const { return data.size()/stride; } + void clear(); + void reset(const VertexFormat &); + void apply() const; + float *append(); float *modify(unsigned); - float *operator[](unsigned i) { return modify(i); } - const float *operator[](unsigned i) const { return &data[0]+i*stride; } + const float *operator[](unsigned i) const { return &data[0]+i*stride; } private: void set_dirty();