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>
26 mutable unsigned dirty;
27 const VertexArray *vertex_array;
28 const VertexArray *inst_array;
29 const Buffer *index_buffer;
35 void set_vertex_array(const VertexArray &);
36 void set_instance_array(const VertexArray *);
37 void set_index_buffer(const Buffer &);
38 const VertexArray *get_vertex_array() const { return vertex_array; }
39 const VertexArray *get_instance_array() const { return inst_array; }
40 const Buffer *get_index_buffer() const { return index_buffer; }
43 void update(unsigned) const;
44 void update_vertex_array(const VertexArray &, unsigned, unsigned, bool) const;