namespace Msp {
namespace GL {
+class Buffer;
class VertexArray;
/**
Combines a VertexArray with an index buffer. This wraps OpenGL's vertex array
objects. Intended for internal use.
*/
-class VertexSetup: public Bindable<VertexSetup>
+class VertexSetup
{
private:
enum ComponentMask
private:
static bool verify_format(const VertexFormat &);
- void update(unsigned) const;
+ void update() const;
void update_vertex_array(const VertexArray &, unsigned, unsigned, bool) const;
public:
- void bind() const;
- static void unbind();
+ void refresh() const { if(dirty) update(); }
+
+ unsigned get_id() const { return id; }
void unload();