Merge 'remotes/trunk'
[0ad.git] / source / ps / CStrInternStatic.h
blobd21e79917f7bba43a633e0b2a793ddbd73ffc154
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.
21 // A line like
22 // X(foo)
23 // defines a variable str_foo with value "foo".
25 // A line like
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.
30 #ifndef X
31 #include "CStrIntern.h"
32 #define X(id) extern CStrIntern str_##id;
33 #define X2(id, str) extern CStrIntern str_##id;
34 #endif
36 X(0)
37 X(1)
38 X(2)
39 X(3)
40 X(4)
41 X(ALPHABLEND_PASS_BLEND)
42 X(ALPHABLEND_PASS_OPAQUE)
43 X(BLEND)
44 X(BLOOM_NOP)
45 X(BLOOM_PASS_H)
46 X(BLOOM_PASS_V)
47 X(DECAL)
48 X(DISABLE_RECEIVE_SHADOWS)
49 X(IGNORE_LOS)
50 X(MINIMAP_BASE)
51 X(MINIMAP_POINT)
52 X(MODE_SHADOWCAST)
53 X(MODE_SILHOUETTEDISPLAY)
54 X(MODE_SILHOUETTEOCCLUDER)
55 X(MODE_WIREFRAME)
56 X(MODE_WIREFRAME_SOLID)
57 X(PASS_REFLECTIONS)
58 X(PASS_REFRACTIONS)
59 X(PASS_SHADOWS)
60 X(RENDER_DEBUG_MODE)
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)
67 X(USE_FANCY_EFFECTS)
68 X(USE_FP_SHADOW)
69 X(USE_GPU_INSTANCING)
70 X(USE_GPU_SKINNING)
71 X(USE_INSTANCING)
72 X(USE_NORMALS)
73 X(USE_OBJECTCOLOR)
74 X(USE_REAL_DEPTH)
75 X(USE_REFLECTION)
76 X(USE_REFRACTION)
77 X(USE_SHADOW)
78 X(USE_SHADOW_PCF)
79 X(USE_SHADOW_SAMPLER)
80 X(USE_FOG)
81 X(WATERTYPE_CLAP)
82 X(WATERTYPE_LAKE)
83 X2(_emptystring, "")
84 X(a_apexPosition)
85 X(a_otherPosition)
86 X(a_retreatPosition)
87 X(a_skinJoints)
88 X(a_skinWeights)
89 X(a_splashPosition)
90 X(a_tangent)
91 X(a_waterInfo)
92 X(ambient)
93 X(baseTex)
94 X(blendTex)
95 X(bloom)
96 X(blurTex2)
97 X(blurTex4)
98 X(blurTex8)
99 X(brightness)
100 X(cameraForward)
101 X(cameraPos)
102 X(canvas2d)
103 X(color)
104 X(colorAdd)
105 X(colorMul)
106 X(compute_rcas)
107 X(compute_upscale_fsr)
108 X(debug_line)
109 X(debug_overlay)
110 X(delta)
111 X(depthTex)
112 X(dummy)
113 X(foamTex)
114 X(fogColor)
115 X(fogParams)
116 X(foreground_overlay)
117 X(fxaa)
118 X(grayscaleFactor)
119 X(hdr)
120 X(height)
121 X(instancingTransform)
122 X(inTex)
123 X(losTex)
124 X(losTex1)
125 X(losTex2)
126 X(losTransform)
127 X(los_interp)
128 X(mapSize)
129 X(maskTex)
130 X(maskTextureTransform)
131 X(minimap)
132 X(minimap_los)
133 X(modelViewMatrix)
134 X(murkiness)
135 X(normalMap)
136 X(normalMap2)
137 X(objectColor)
138 X(overlay_line)
139 X(overlay_solid)
140 X(outTex)
141 X(particle_add)
142 X(particle_multiply)
143 X(particle_overlay)
144 X(particle_solid)
145 X(particle_subtract)
146 X(playerColor)
147 X(projInvTransform)
148 X(qualityLevel)
149 X(reflectionMap)
150 X(reflectionMatrix)
151 X(refractionMap)
152 X(refractionMatrix)
153 X(renderedTex)
154 X(repeatScale)
155 X2(sans_10, "sans-10");
156 X(saturation)
157 X(screenSize)
158 X(shadingColor)
159 X(shadowDistance)
160 X(shadowDistances)
161 X(shadowScale)
162 X(shadowTex)
163 X(shadowTransform)
164 X(shadowTransforms)
165 X(sharpness)
166 X(skinBlendMatrices)
167 X(skyBoxRot)
168 X(skyCube)
169 X(sky_simple)
170 X(solid)
171 X(sunColor)
172 X(sunDir)
173 X(terrain_base)
174 X(terrain_blend)
175 X(terrain_decal)
176 X(terrain_solid)
177 X(tex)
178 X(texSize)
179 X(textureTransform)
180 X(time)
181 X(tint)
182 X(transform)
183 X(translation)
184 X(upscale_bilinear)
185 X(upscale_nearest)
186 X(viewInvTransform)
187 X(water_high)
188 X(water_simple)
189 X(water_waves)
190 X(waterEffectsTex)
191 X(waterTex)
192 X(waveTex)
193 X(waviness)
194 X(waveParams1)
195 X(waveParams2)
196 X(width)
197 X(windAngle)
198 X(zFar)
199 X(zNear)
201 #undef X
202 #undef X2