LCOV - code coverage report
Current view: top level - source/ps - CStrInternStatic.h (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 157 157 100.0 %
Date: 2023-01-19 00:18:29 Functions: 0 0 -

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

Generated by: LCOV version 1.13