2023-10-03 20:37:00 +02:00
|
|
|
// 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
|
|
|
|
|
2024-02-25 22:01:20 +01:00
|
|
|
#pragma once
|
2023-10-03 20:37:00 +02:00
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace scene
|
|
|
|
{
|
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! Enumeration for all primitive types there are.
|
|
|
|
enum E_PRIMITIVE_TYPE
|
|
|
|
{
|
|
|
|
//! All vertices are non-connected points.
|
|
|
|
EPT_POINTS = 0,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! All vertices form a single connected line.
|
|
|
|
EPT_LINE_STRIP,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! Just as LINE_STRIP, but the last and the first vertex is also connected.
|
|
|
|
EPT_LINE_LOOP,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! Every two vertices are connected creating n/2 lines.
|
|
|
|
EPT_LINES,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! 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,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! After the first two vertices each vertex defines a new triangle.
|
|
|
|
//! All around the common first vertex.
|
|
|
|
EPT_TRIANGLE_FAN,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! Explicitly set all vertices for each triangle.
|
|
|
|
EPT_TRIANGLES,
|
2023-10-03 20:37:00 +02:00
|
|
|
|
2024-03-20 19:35:52 +01:00
|
|
|
//! The single vertices are expanded to quad billboards on the GPU.
|
|
|
|
EPT_POINT_SPRITES
|
|
|
|
};
|
2023-10-03 20:37:00 +02:00
|
|
|
|
|
|
|
} // end namespace scene
|
|
|
|
} // end namespace irr
|