]> git.lizzy.rs Git - irrlicht.git/blob - include/EPrimitiveTypes.h
Bump revision
[irrlicht.git] / include / EPrimitiveTypes.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __E_PRIMITIVE_TYPES_H_INCLUDED__\r
6 #define __E_PRIMITIVE_TYPES_H_INCLUDED__\r
7 \r
8 namespace irr\r
9 {\r
10 namespace scene\r
11 {\r
12 \r
13         //! Enumeration for all primitive types there are.\r
14         enum E_PRIMITIVE_TYPE\r
15         {\r
16                 //! All vertices are non-connected points.\r
17                 EPT_POINTS=0,\r
18 \r
19                 //! All vertices form a single connected line.\r
20                 EPT_LINE_STRIP,\r
21 \r
22                 //! Just as LINE_STRIP, but the last and the first vertex is also connected.\r
23                 EPT_LINE_LOOP,\r
24 \r
25                 //! Every two vertices are connected creating n/2 lines.\r
26                 EPT_LINES,\r
27 \r
28                 //! After the first two vertices each vertex defines a new triangle.\r
29                 //! Always the two last and the new one form a new triangle.\r
30                 EPT_TRIANGLE_STRIP,\r
31 \r
32                 //! After the first two vertices each vertex defines a new triangle.\r
33                 //! All around the common first vertex.\r
34                 EPT_TRIANGLE_FAN,\r
35 \r
36                 //! Explicitly set all vertices for each triangle.\r
37                 EPT_TRIANGLES,\r
38 \r
39                 //! After the first two vertices each further two vertices create a quad with the preceding two.\r
40                 //! Not supported by Direct3D\r
41                 EPT_QUAD_STRIP,\r
42 \r
43                 //! Every four vertices create a quad.\r
44                 //! Not supported by Direct3D\r
45                 //! Deprecated with newer OpenGL drivers\r
46                 EPT_QUADS,\r
47 \r
48                 //! Just as LINE_LOOP, but filled.\r
49                 //! Not supported by Direct3D\r
50                 //! Deprecated with newer OpenGL drivers\r
51                 EPT_POLYGON,\r
52 \r
53                 //! The single vertices are expanded to quad billboards on the GPU.\r
54                 EPT_POINT_SPRITES\r
55         };\r
56 \r
57 } // end namespace scene\r
58 } // end namespace irr\r
59 \r
60 #endif\r
61 \r