diff options
| author | Mirrorbot <mirrorbot@cogarr.net> | 2025-12-27 17:53:06 -0600 |
|---|---|---|
| committer | Mirrorbot <mirrorbot@cogarr.net> | 2025-12-27 17:53:06 -0600 |
| commit | 71e94ee161447b84c0eaabf6567f8fa62262cd3e (patch) | |
| tree | 391064cc6173a6fe75069af2fdc1978af12f623e /include/EPrimitiveTypes.h | |
| download | irrlicht-master.tar.gz irrlicht-master.tar.bz2 irrlicht-master.zip | |
Diffstat (limited to 'include/EPrimitiveTypes.h')
| -rw-r--r-- | include/EPrimitiveTypes.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/EPrimitiveTypes.h b/include/EPrimitiveTypes.h new file mode 100644 index 0000000..6b082c1 --- /dev/null +++ b/include/EPrimitiveTypes.h @@ -0,0 +1,56 @@ +// Copyright (C) 2002-2012 Nikolaus Gebhardt
+// This file is part of the "Irrlicht Engine".
+// For conditions of distribution and use, see copyright notice in irrlicht.h
+
+#ifndef __E_PRIMITIVE_TYPES_H_INCLUDED__
+#define __E_PRIMITIVE_TYPES_H_INCLUDED__
+
+namespace irr
+{
+namespace scene
+{
+
+ //! Enumeration for all primitive types there are.
+ enum E_PRIMITIVE_TYPE
+ {
+ //! All vertices are non-connected points.
+ EPT_POINTS=0,
+
+ //! All vertices form a single connected line.
+ EPT_LINE_STRIP,
+
+ //! Just as LINE_STRIP, but the last and the first vertex is also connected.
+ EPT_LINE_LOOP,
+
+ //! Every two vertices are connected creating n/2 lines.
+ EPT_LINES,
+
+ //! After the first two vertices each vertex defines a new triangle.
+ //! Always the two last and the new one form a new triangle.
+ EPT_TRIANGLE_STRIP,
+
+ //! After the first two vertices each vertex defines a new triangle.
+ //! All around the common first vertex.
+ EPT_TRIANGLE_FAN,
+
+ //! Explicitly set all vertices for each triangle.
+ EPT_TRIANGLES,
+
+ //! After the first two vertices each further tw vetices create a quad with the preceding two.
+ EPT_QUAD_STRIP,
+
+ //! Every four vertices create a quad.
+ EPT_QUADS,
+
+ //! Just as LINE_LOOP, but filled.
+ EPT_POLYGON,
+
+ //! The single vertices are expanded to quad billboards on the GPU.
+ EPT_POINT_SPRITES
+ };
+
+} // end namespace scene
+} // end namespace irr
+
+#endif
+
|
