1 /* Copyright (C) 2022 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
)
56 X(MODE_SILHOUETTEDISPLAY
)
57 X(MODE_SILHOUETTEOCCLUDER
)
59 X(MODE_WIREFRAME_SOLID
)
64 X(RENDER_DEBUG_MODE_AO
)
65 X(RENDER_DEBUG_MODE_ALPHA
)
66 X(RENDER_DEBUG_MODE_CUSTOM
)
67 X(RENDER_DEBUG_MODE_NONE
)
68 X(SHADOWS_CASCADE_COUNT
)
116 X(foreground_overlay
)
120 X(instancingTransform
)
128 X(maskTextureTransform
)
152 X2(sans_10
, "sans-10");