Moves polygon mode handling to PipelineState and CDeviceCommandContext.
[0ad.git] / source / ps / CStrInternStatic.h
blobaef4ba440454a804d18a1899839d0aff68d24545
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.
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_LINE)
52 X(MINIMAP_LOS)
53 X(MINIMAP_MASK)
54 X(MINIMAP_POINT)
55 X(MODE_SHADOWCAST)
56 X(MODE_SILHOUETTEDISPLAY)
57 X(MODE_SILHOUETTEOCCLUDER)
58 X(MODE_WIREFRAME)
59 X(MODE_WIREFRAME_SOLID)
60 X(PASS_REFLECTIONS)
61 X(PASS_REFRACTIONS)
62 X(PASS_SHADOWS)
63 X(RENDER_DEBUG_MODE)
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)
69 X(USE_FANCY_EFFECTS)
70 X(USE_FP_SHADOW)
71 X(USE_GPU_SKINNING)
72 X(USE_INSTANCING)
73 X(USE_NORMALS)
74 X(USE_OBJECTCOLOR)
75 X(USE_REAL_DEPTH)
76 X(USE_REFLECTION)
77 X(USE_REFRACTION)
78 X(USE_SHADOW)
79 X(USE_SHADOW_PCF)
80 X(USE_SHADOW_SAMPLER)
81 X(USE_FOG)
82 X(WATERTYPE_CLAP)
83 X(WATERTYPE_LAKE)
84 X2(_emptystring, "")
85 X(a_apexPosition)
86 X(a_otherPosition)
87 X(a_retreatPosition)
88 X(a_skinJoints)
89 X(a_skinWeights)
90 X(a_splashPosition)
91 X(a_tangent)
92 X(a_waterInfo)
93 X(ambient)
94 X(baseTex)
95 X(blendTex)
96 X(bloom)
97 X(blurTex2)
98 X(blurTex4)
99 X(blurTex8)
100 X(brightness)
101 X(cameraForward)
102 X(cameraPos)
103 X(canvas2d)
104 X(color)
105 X(colorAdd)
106 X(colorMul)
107 X(debug_line)
108 X(debug_overlay)
109 X(delta)
110 X(depthTex)
111 X(dummy)
112 X(foamTex)
113 X(fogColor)
114 X(fogParams)
115 X(foreground_overlay)
116 X(grayscaleFactor)
117 X(hdr)
118 X(height)
119 X(instancingTransform)
120 X(losTex)
121 X(losTex1)
122 X(losTex2)
123 X(losTransform)
124 X(los_interp)
125 X(mapSize)
126 X(maskTex)
127 X(maskTextureTransform)
128 X(minimap)
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(pointSize)
143 X(projInvTransform)
144 X(qualityLevel)
145 X(reflectionMap)
146 X(reflectionMatrix)
147 X(refractionMap)
148 X(refractionMatrix)
149 X(renderedTex)
150 X(repeatScale)
151 X2(sans_10, "sans-10");
152 X(saturation)
153 X(screenSize)
154 X(shadingColor)
155 X(shadowDistance)
156 X(shadowDistances)
157 X2(shadowDistances_0, "shadowDistances[0]")
158 X(shadowScale)
159 X(shadowTex)
160 X(shadowTransform)
161 X(shadowTransforms)
162 X2(shadowTransforms_0, "shadowTransforms[0]")
163 X(sharpness)
164 X(skinBlendMatrices)
165 X2(skinBlendMatrices_0, "skinBlendMatrices[0]")
166 X(skyBoxRot)
167 X(skyCube)
168 X(sky_simple)
169 X(solid)
170 X(sunColor)
171 X(sunDir)
172 X(terrain_solid)
173 X(tex)
174 X(texSize)
175 X(textureTransform)
176 X(time)
177 X(tint)
178 X(transform)
179 X(translation)
180 X(viewInvTransform)
181 X(water_high)
182 X(water_simple)
183 X(water_waves)
184 X(waterEffectsTex)
185 X(waterTex)
186 X(waveTex)
187 X(waviness)
188 X(waveParams1)
189 X(waveParams2)
190 X(width)
191 X(windAngle)
192 X(zFar)
193 X(zNear)
195 #undef X
196 #undef X2