1 /* c-irrlicht --- C bindings for Irrlicht Engine
3 Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
5 This file is part of c-irrlicht.
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.
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.
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/>.
22 #ifndef __C_IRR_E_PRIMITIVE_TYPES_H_INCLUDED__
23 #define __C_IRR_E_PRIMITIVE_TYPES_H_INCLUDED__
25 //! Enumeration for all primitive types there are.
28 //! All vertices are non-connected points.
29 irr_scene_EPT_POINTS=0,
31 //! All vertices form a single connected line.
32 irr_scene_EPT_LINE_STRIP,
34 //! Just as LINE_STRIP, but the last and the first vertex is also connected.
35 irr_scene_EPT_LINE_LOOP,
37 //! Every two vertices are connected creating n/2 lines.
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,
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,
48 //! Explicitly set all vertices for each triangle.
49 irr_scene_EPT_TRIANGLES,
51 //! After the first two vertices each further tw vetices create a quad with the preceding two.
52 irr_scene_EPT_QUAD_STRIP,
54 //! Every four vertices create a quad.
57 //! Just as LINE_LOOP, but filled.
58 irr_scene_EPT_POLYGON,
60 //! The single vertices are expanded to quad billboards on the GPU.
61 irr_scene_EPT_POINT_SPRITES
62 } irr_scene_E_PRIMITIVE_TYPE;