]> git.tdb.fi Git - libs/gl.git/blobdiff - source/buffer.h
Improve binding of buffers
[libs/gl.git] / source / buffer.h
index d8a8419c0211fbc9b70429a95bcb7cc7c5065145..117f4ea6a1f5d0a699192ebdaffae808e400c68e 100644 (file)
@@ -47,7 +47,7 @@ public:
        ~Buffer();
 
 private:
-       const Buffer *maybe_bind() const;
+       static void require_buffer_type(BufferType);
 
 public:
        /** Sets the usage hint of the buffer.  It will take effect the next time
@@ -77,6 +77,7 @@ public:
        static void unbind_from(BufferType);
 private:
        static const Buffer *&binding(BufferType);
+       static bool set_current(BufferType, const Buffer *);
        static void restore(const Buffer *, BufferType);
 };