X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbuffer.h;fp=source%2Fcore%2Fbuffer.h;h=ca9a595555869668adbf9a56f910b305ee37bae9;hb=7b569bbfcfb65d8d88b47ac42ee1df6a7d27e784;hp=a80e52a68b9c34b00e499c6a16fb0b9e85446d39;hpb=bea2bcf1aa353b1dd8d1728931ef0508677bd2c6;p=libs%2Fgl.git diff --git a/source/core/buffer.h b/source/core/buffer.h index a80e52a6..ca9a5955 100644 --- a/source/core/buffer.h +++ b/source/core/buffer.h @@ -57,6 +57,8 @@ private: unsigned size; bool allocated; + static Buffer *scratch_binding; + public: Buffer(); ~Buffer(); @@ -96,6 +98,11 @@ public: bool unmap(); void set_debug_name(const std::string &); + +private: + void bind_scratch(); +public: + static void unbind_scratch(); }; } // namespace GL