diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/include/IMetaTriangleSelector.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/include/IMetaTriangleSelector.h b/libraries/irrlicht-1.8/include/IMetaTriangleSelector.h new file mode 100644 index 0000000..2cbb385 --- /dev/null +++ b/libraries/irrlicht-1.8/include/IMetaTriangleSelector.h | |||
@@ -0,0 +1,43 @@ | |||
1 | // Copyright (C) 2002-2012 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 __I_META_TRIANGLE_SELECTOR_H_INCLUDED__ | ||
6 | #define __I_META_TRIANGLE_SELECTOR_H_INCLUDED__ | ||
7 | |||
8 | #include "ITriangleSelector.h" | ||
9 | |||
10 | namespace irr | ||
11 | { | ||
12 | namespace scene | ||
13 | { | ||
14 | |||
15 | //! Interface for making multiple triangle selectors work as one big selector. | ||
16 | /** This is nothing more than a collection of one or more triangle selectors | ||
17 | providing together the interface of one triangle selector. In this way, | ||
18 | collision tests can be done with different triangle soups in one pass. | ||
19 | */ | ||
20 | class IMetaTriangleSelector : public ITriangleSelector | ||
21 | { | ||
22 | public: | ||
23 | |||
24 | //! Adds a triangle selector to the collection of triangle selectors. | ||
25 | /** \param toAdd: Pointer to an triangle selector to add to the list. */ | ||
26 | virtual void addTriangleSelector(ITriangleSelector* toAdd) = 0; | ||
27 | |||
28 | //! Removes a specific triangle selector from the collection. | ||
29 | /** \param toRemove: Pointer to an triangle selector which is in the | ||
30 | list but will be removed. | ||
31 | \return True if successful, false if not. */ | ||
32 | virtual bool removeTriangleSelector(ITriangleSelector* toRemove) = 0; | ||
33 | |||
34 | //! Removes all triangle selectors from the collection. | ||
35 | virtual void removeAllTriangleSelectors() = 0; | ||
36 | }; | ||
37 | |||
38 | } // end namespace scene | ||
39 | } // end namespace irr | ||
40 | |||
41 | |||
42 | #endif | ||
43 | |||