]> git.tdb.fi Git - libs/gl.git/blobdiff - source/primitivetype.h
Add Mesh and Batch classes
[libs/gl.git] / source / primitivetype.h
index 459c18e72d4fe050ae22cb6c191173d54ffdb6af..4001852575aa0a905a40ac253c1d2c1b4827de23 100644 (file)
@@ -8,6 +8,7 @@ Distributed under the LGPL
 #ifndef MSP_GL_PRIMITIVETYPE_H_
 #define MSP_GL_PRIMITIVETYPE_H_
 
+#include <istream>
 #include <GL/gl.h>
 
 namespace Msp {
@@ -23,10 +24,12 @@ enum PrimitiveType
        TRIANGLE_STRIP = GL_TRIANGLE_STRIP,
        TRIANGLE_FAN   = GL_TRIANGLE_FAN,
        QUADS          = GL_QUADS,
-       QUAD           = GL_QUAD_STRIP,
+       QUAD_STRIP     = GL_QUAD_STRIP,
        POLYGON        = GL_POLYGON
 };
 
+std::istream &operator>>(std::istream &in, PrimitiveType &pt);
+
 } // namespace GL
 } // namespace Msp