Pyrogenesis  trunk
CStrInternStatic.h
Go to the documentation of this file.
1 /* Copyright (C) 2023 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 
18 // This file defines global CStrIntern variables, to avoid the cost of
19 // constructing CStrInterns frequently at runtime.
20 //
21 // A line like
22 // X(foo)
23 // defines a variable str_foo with value "foo".
24 //
25 // A line like
26 // X2(foo_0, "foo[0]")
27 // defines a variable str_foo_0 with value "foo[0]".
28 
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
35 
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(debug_line)
107 X(debug_overlay)
108 X(delta)
109 X(depthTex)
110 X(dummy)
111 X(foamTex)
112 X(fogColor)
113 X(fogParams)
114 X(foreground_overlay)
115 X(grayscaleFactor)
116 X(hdr)
117 X(height)
118 X(instancingTransform)
119 X(losTex)
120 X(losTex1)
121 X(losTex2)
122 X(losTransform)
123 X(los_interp)
124 X(mapSize)
125 X(maskTex)
126 X(maskTextureTransform)
127 X(minimap)
128 X(minimap_los)
129 X(modelViewMatrix)
130 X(murkiness)
131 X(normalMap)
132 X(normalMap2)
133 X(objectColor)
134 X(overlay_line)
135 X(overlay_solid)
136 X(particle_add)
137 X(particle_multiply)
138 X(particle_overlay)
139 X(particle_solid)
140 X(particle_subtract)
141 X(playerColor)
142 X(projInvTransform)
143 X(qualityLevel)
144 X(reflectionMap)
145 X(reflectionMatrix)
146 X(refractionMap)
147 X(refractionMatrix)
148 X(renderedTex)
149 X(repeatScale)
150 X2(sans_10, "sans-10");
151 X(saturation)
152 X(screenSize)
153 X(shadingColor)
154 X(shadowDistance)
155 X(shadowDistances)
156 X(shadowScale)
157 X(shadowTex)
158 X(shadowTransform)
159 X(shadowTransforms)
160 X(sharpness)
161 X(skinBlendMatrices)
162 X(skyBoxRot)
163 X(skyCube)
164 X(sky_simple)
165 X(solid)
166 X(sunColor)
167 X(sunDir)
168 X(terrain_base)
169 X(terrain_blend)
170 X(terrain_decal)
171 X(terrain_solid)
172 X(tex)
173 X(texSize)
174 X(textureTransform)
175 X(time)
176 X(tint)
177 X(transform)
178 X(translation)
179 X(viewInvTransform)
180 X(water_high)
181 X(water_simple)
182 X(water_waves)
183 X(waterEffectsTex)
184 X(waterTex)
185 X(waveTex)
186 X(waviness)
187 X(waveParams1)
188 X(waveParams2)
189 X(width)
190 X(windAngle)
191 X(zFar)
192 X(zNear)
193 
194 #undef X
195 #undef X2
#define X(id)
Definition: CStrInternStatic.h:32
sans
Definition: CStrInternStatic.h:150
#define X2(id, str)
Definition: CStrInternStatic.h:33