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