]> git.tdb.fi Git - libs/gl.git/blobdiff - source/primitivetype.h
Fix matrix interpolation parameter calculation
[libs/gl.git] / source / primitivetype.h
index 459c18e72d4fe050ae22cb6c191173d54ffdb6af..9e65cbf711983c9da5c6f0b79f47a22ea828ef3f 100644 (file)
@@ -1,14 +1,9 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_PRIMITIVETYPE_H_
 #define MSP_GL_PRIMITIVETYPE_H_
 
-#include <GL/gl.h>
+#include <msp/strings/lexicalcast.h>
+#include <msp/gl/extensions/msp_legacy_features.h>
+#include "gl.h"
 
 namespace Msp {
 namespace GL {
@@ -23,10 +18,13 @@ enum PrimitiveType
        TRIANGLE_STRIP = GL_TRIANGLE_STRIP,
        TRIANGLE_FAN   = GL_TRIANGLE_FAN,
        QUADS          = GL_QUADS,
-       QUAD           = GL_QUAD_STRIP,
-       POLYGON        = GL_POLYGON
+       QUAD_STRIP     = GL_QUAD_STRIP
 };
 
+void operator>>(const LexicalConverter &, PrimitiveType &);
+
+void require_primitive_type(PrimitiveType);
+
 } // namespace GL
 } // namespace Msp