X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbufferable.h;h=66a6db1871952a2a7e7940bd5f9f931cd88eb808;hp=f157c6281d2197d17b56bd78a7d61cd1754ee186;hb=b59c47a7ed2ed3f69a3349a2d76ef02891f0c685;hpb=6c525eff3eaaa617648a869449ed3bddf9c1936d diff --git a/source/bufferable.h b/source/bufferable.h index f157c628..66a6db18 100644 --- a/source/bufferable.h +++ b/source/bufferable.h @@ -37,7 +37,6 @@ private: protected: mutable bool dirty; -protected: Bufferable(); public: virtual ~Bufferable(); @@ -54,9 +53,13 @@ public: private: void unlink_from_buffer(); +public: + /** Returns the buffer in which the data is stored. */ + const Buffer *get_buffer() const { return buffer; } + protected: /** Returns the buffer in which the data is stored. */ - Buffer *get_buffer() const { return buffer; } + Buffer *get_mutable_buffer() const { return buffer; } /** Returns the amount of data to be stored in the buffer, in bytes. */ virtual unsigned get_data_size() const = 0;