~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to include/EPrimitiveTypes.h

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

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