3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
13 Immediate::Immediate(VertexFormat f):
14 PrimitiveBuilder(array),
17 array.use_vertex_buffer(0);
20 void Immediate::reset()
23 throw InvalidState("Can't reset Immediate between begin() and end()");
29 void Immediate::end_()
32 draw_elements(type, indices.size(), &indices[0]);
37 void Immediate::element_(unsigned i)