]> git.jsancho.org Git - c-irrlicht.git/blob - include/EPrimitiveTypes.h
Draw vertex primitive list
[c-irrlicht.git] / include / EPrimitiveTypes.h
1 /* c-irrlicht --- C bindings for Irrlicht Engine
2
3    Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
4
5    This file is part of c-irrlicht.
6
7    c-irrlicht is free software; you can redistribute it and/or modify
8    it under the terms of the GNU Lesser General Public License as
9    published by the Free Software Foundation; either version 3 of the
10    License, or (at your option) any later version.
11
12    c-irrlicht is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    General Public License for more details.
16
17    You should have received a copy of the GNU Lesser General Public
18    License along with guile-irrlicht.  If not, see
19    <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef __C_IRR_E_PRIMITIVE_TYPES_H_INCLUDED__
23 #define __C_IRR_E_PRIMITIVE_TYPES_H_INCLUDED__
24
25 //! Enumeration for all primitive types there are.
26 typedef enum
27   {
28    //! All vertices are non-connected points.
29    irr_scene_EPT_POINTS=0,
30
31    //! All vertices form a single connected line.
32    irr_scene_EPT_LINE_STRIP,
33
34    //! Just as LINE_STRIP, but the last and the first vertex is also connected.
35    irr_scene_EPT_LINE_LOOP,
36
37    //! Every two vertices are connected creating n/2 lines.
38    irr_scene_EPT_LINES,
39
40    //! After the first two vertices each vertex defines a new triangle.
41    //! Always the two last and the new one form a new triangle.
42    irr_scene_EPT_TRIANGLE_STRIP,
43
44    //! After the first two vertices each vertex defines a new triangle.
45    //! All around the common first vertex.
46    irr_scene_EPT_TRIANGLE_FAN,
47
48    //! Explicitly set all vertices for each triangle.
49    irr_scene_EPT_TRIANGLES,
50
51    //! After the first two vertices each further tw vetices create a quad with the preceding two.
52    irr_scene_EPT_QUAD_STRIP,
53
54    //! Every four vertices create a quad.
55    irr_scene_EPT_QUADS,
56
57    //! Just as LINE_LOOP, but filled.
58    irr_scene_EPT_POLYGON,
59
60    //! The single vertices are expanded to quad billboards on the GPU.
61    irr_scene_EPT_POINT_SPRITES
62   } irr_scene_E_PRIMITIVE_TYPE;
63
64 #endif