Debian Codegraph @

common/main/fwd-vclip.h

raw
1 /*
2 * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
3 * It is copyright by its individual contributors, as recorded in the
4 * project's Git history. See COPYING.txt at the top level for license
5 * terms and a link to the Git history.
6 */
7 #pragma once
8
9 #include <cstdint>
10 #include <cstddef>
11 #include "d_array.h"
12 #include "dsx-ns.h"
13
14 namespace dcx {
15 enum class vclip_index : uint8_t;
16 struct vclip;
17 extern unsigned Num_vclips;
18
19 vclip_index build_vclip_index_from_untrusted(std::size_t i);
20 }
21
22 #ifdef DXX_BUILD_DESCENT
23 namespace dsx {
24 #if DXX_BUILD_DESCENT == 1
25 #define VCLIP_MAXNUM 70
26 #elif DXX_BUILD_DESCENT == 2
27 #define VCLIP_MAXNUM 110
28 #endif
29
30 using d_vclip_array = enumerated_array<vclip, VCLIP_MAXNUM, vclip_index>;
31 extern d_vclip_array Vclip;
32 #undef VCLIP_MAXNUM
33 }
34 #endif