1 /* Copyright (C) 2024 Wildfire Games.
2 * This file is part of 0 A.D.
4 * 0 A.D. is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * 0 A.D. is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
18 // This file defines global CStrIntern variables, to avoid the cost of
19 // constructing CStrInterns frequently at runtime.
23 // defines a variable str_foo with value "foo".
26 // X2(foo_0, "foo[0]")
27 // defines a variable str_foo_0 with value "foo[0]".
29 // For direct inclusion, we presumably just want the extern definitions.
31 #include "CStrIntern.h"
32 #define X(id) extern CStrIntern str_##id;
33 #define X2(id, str) extern CStrIntern str_##id;
41 X(ALPHABLEND_PASS_BLEND
)
42 X(ALPHABLEND_PASS_OPAQUE
)
48 X(DISABLE_RECEIVE_SHADOWS
)
53 X(MODE_SILHOUETTEDISPLAY
)
54 X(MODE_SILHOUETTEOCCLUDER
)
56 X(MODE_WIREFRAME_SOLID
)
61 X(RENDER_DEBUG_MODE_AO
)
62 X(RENDER_DEBUG_MODE_ALPHA
)
63 X(RENDER_DEBUG_MODE_CUSTOM
)
64 X(RENDER_DEBUG_MODE_NONE
)
65 X(SHADOWS_CASCADE_COUNT
)
66 X(USE_DESCRIPTOR_INDEXING
)
107 X(compute_upscale_fsr
)
116 X(foreground_overlay
)
121 X(instancingTransform
)
130 X(maskTextureTransform
)
155 X2(sans_10
, "sans-10");