1 #ifndef MSP_GL_VERTEXSETUP_H_
2 #define MSP_GL_VERTEXSETUP_H_
12 Combines a VertexArray with an index buffer. This wraps OpenGL's vertex array
13 objects. Intended for internal use.
15 class VertexSetup: public Bindable<VertexSetup>
25 mutable unsigned dirty;
26 const VertexArray *array;
27 const Buffer *index_buffer;
33 void set_vertex_array(const VertexArray &);
34 void set_instance_array(const VertexArray &);
35 void set_index_buffer(const Buffer &);
36 const Buffer *get_index_buffer() const { return index_buffer; }
39 void update(unsigned) const;
40 void update_vertex_array(bool) const;