X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuffer.h;h=d8a8419c0211fbc9b70429a95bcb7cc7c5065145;hb=196093790e242dec24bfbbf7ad8c28dcc442824c;hp=5e3cd29a4162c124a3b259f419cd9a558760d3db;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/buffer.h b/source/buffer.h index 5e3cd29a..d8a8419c 100644 --- a/source/buffer.h +++ b/source/buffer.h @@ -38,6 +38,7 @@ private: BufferType type; BufferUsage usage; unsigned id; + unsigned size; static const Buffer *bound[4]; @@ -61,6 +62,8 @@ public: not be changed with this call. */ void sub_data(unsigned, unsigned, const void *); + unsigned get_size() const { return size; } + /** Binds the buffer in its default slot. */ void bind() const { bind_to(type); }