3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
13 Immediate::Immediate(VertexFormat f):
19 void Immediate::begin(PrimitiveType t)
24 builder=array.modify();
32 glDrawArrays(type, 0, n_vertices);
38 void Immediate::vertex_(float x, float y, float z, float w)
41 throw InvalidState("Vertex specification not between begin and end");
43 builder->texcoord(ts, tt, tr,tq);
44 builder->color(cr, cg, cb, ca);
45 builder->normal(nx, ny, nz);
46 builder->vertex(x, y, z, w);