#include <stdexcept>
#include <string>
#include <vector>
+#include <msp/core/attributes.h>
#include "gl.h"
#include <msp/gl/extensions/arb_pixel_buffer_object.h>
#include <msp/gl/extensions/arb_vertex_buffer_object.h>
/** Sets the usage hint of the buffer. It will take effect the next time
the buffer's contents are defined. */
- void set_usage(BufferUsage);
+ DEPRECATED void set_usage(BufferUsage);
/** Uploads data into the buffer, completely replacing any previous
contents. */
BufferRange *create_range(unsigned, unsigned);
- void *map(BufferAccess);
+ void *map();
+ DEPRECATED void *map(BufferAccess) { return map(); }
bool unmap();
/** Binds the buffer in its default slot. */