| 1 | // SPDX-FileCopyrightText: 2000 David Megginson |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #ifndef FGSWITCHLAYER_HXX |
| 5 | #define FGSWITCHLAYER_HXX |
| 6 | |
| 7 | #include "FGGroupLayer.hxx" |
| 8 | |
| 9 | /** |
| 10 | * A group layer that switches among its children. |
| 11 | * |
| 12 | * The first layer that passes its condition will be drawn, and |
| 13 | * any following layers will be ignored. |
| 14 | */ |
| 15 | class FGSwitchLayer : public FGGroupLayer { |
| 16 | public: |
| 17 | // Transfer pointers!! |
| 18 | FGSwitchLayer (); |
| 19 | virtual void draw (); |
| 20 | }; |
| 21 | |
| 22 | #endif |