X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbuffer.h;h=ca9a595555869668adbf9a56f910b305ee37bae9;hb=a4d83d3748cdde8cf30683d36a040d3dfacfd693;hp=a80e52a68b9c34b00e499c6a16fb0b9e85446d39;hpb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;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