#ifndef MSP_GL_BUFFERABLE_H_
#define MSP_GL_BUFFERABLE_H_
+#include <msp/core/noncopyable.h>
+
namespace Msp {
namespace GL {
in the buffer is considered out of date, and is cleared by Bufferable after
uploading fresh data to the buffer.
*/
-class Bufferable
+class Bufferable: public NonCopyable
{
public:
/**
mutable bool dirty = false;
Bufferable() = default;
+ Bufferable(Bufferable &&);
public:
virtual ~Bufferable();
/** Sets the buffer to use. If prev is not null, it must use the same
buffer, and this object is inserted after it.
- Date is not uploaded immediately, but only when refresh() is called. */
+ Data is not uploaded immediately, but only when refresh() is called. */
void use_buffer(Buffer *, Bufferable *prev = 0);
/** Sets the buffer for the entire chain of objects. */