return new BufferRange(*this, s, o);
}
+void *Buffer::map(BufferAccess access)
+{
+ BindRestore _bind(this, type);
+ return glMapBuffer(type, access);
+}
+
+bool Buffer::unmap()
+{
+ BindRestore _bind(this, type);
+ return glUnmapBuffer(type);
+}
+
void Buffer::bind_to(BufferType t) const
{
if(t!=type)