]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexarraybuilder.h
Move VertexFormat and VertexArrayBuilder to their own files
[libs/gl.git] / source / vertexarraybuilder.h
diff --git a/source/vertexarraybuilder.h b/source/vertexarraybuilder.h
new file mode 100644 (file)
index 0000000..5435767
--- /dev/null
@@ -0,0 +1,38 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GL_VERTEXARRAYBUIDER_H_
+#define MSP_GL_VERTEXARRAYBUIDER_H_
+
+#include <vector>
+#include "vertexbuilder.h"
+#include "vertexformat.h"
+
+namespace Msp {
+namespace GL {
+
+class VertexArray;
+
+class VertexArrayBuilder: public VertexBuilder
+{
+public:
+       std::vector<float> &data;
+
+       VertexArrayBuilder(VertexArray &, std::vector<float> &);
+       ~VertexArrayBuilder();
+
+private:
+       VertexArray  &array;
+
+       VertexArrayBuilder(const VertexArrayBuilder &);
+       virtual void vertex_(float, float, float, float);
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif