]> git.tdb.fi Git - libs/gl.git/blob - source/primitivetype.h
Add Mesh and Batch classes
[libs/gl.git] / source / primitivetype.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_PRIMITIVETYPE_H_
9 #define MSP_GL_PRIMITIVETYPE_H_
10
11 #include <istream>
12 #include <GL/gl.h>
13
14 namespace Msp {
15 namespace GL {
16
17 enum PrimitiveType
18 {
19         POINTS         = GL_POINTS,
20         LINES          = GL_LINES,
21         LINE_STRIP     = GL_LINE_STRIP,
22         LINE_LOOP      = GL_LINE_LOOP,
23         TRIANGLES      = GL_TRIANGLES,
24         TRIANGLE_STRIP = GL_TRIANGLE_STRIP,
25         TRIANGLE_FAN   = GL_TRIANGLE_FAN,
26         QUADS          = GL_QUADS,
27         QUAD_STRIP     = GL_QUAD_STRIP,
28         POLYGON        = GL_POLYGON
29 };
30
31 std::istream &operator>>(std::istream &in, PrimitiveType &pt);
32
33 } // namespace GL
34 } // namespace Msp
35
36 #endif