+ Buffer *ibuf;
+ bool defer_ibuf;
+ const WindingTest *winding;
+
+public:
+ Mesh();
+ Mesh(const VertexFormat &f);
+ ~Mesh();
+
+ void clear();
+ void use_buffers(bool);
+
+ const VertexArray &get_vertices() const { return vertices; }
+ unsigned get_n_vertices() const;
+ float *modify_vertex(unsigned);
+
+ void add_batch(const Batch &b);
+ const std::list<Batch> &get_batches() { return batches; }
+
+ void set_winding(const WindingTest *);
+
+ void draw() const;
+ void draw(Renderer &) const;