3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_IMMEDIATE_H_
9 #define MSP_GL_IMMEDIATE_H_
11 #include "primitivebuilder.h"
17 Draws primitives on the screen. This works similarly to the OpenGL immediate
18 mode: call begin() to start a batch of primitives, specify vertices, and call
19 end() to terminate the batch. However, unlike OpenGL immediate mode, vertices
20 are not drawn as they are specified. Instead, they are accumulated in a
21 VertexArray and drawn when end() is called.
23 class Immediate: public PrimitiveBuilder
27 std::vector<unsigned> indices;
30 Immediate(VertexFormat);
33 virtual void begin_();
35 virtual void element_(unsigned);