MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / VerifyChecksums

Method VerifyChecksums

engine/PoseidonGL33/TextureBankGL33_Core.cpp:103–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101void TextBankGL33::StopAll() {}
102
103bool TextBankGL33::VerifyChecksums()
104{
105 StatisticsByName stats;
106 for (int i = 0; i < _freeTextures.Size(); i++)
107 {
108 const SurfaceInfoGL33& surface = _freeTextures[i];
109 char name[80];
110 SurfaceName(name, sizeof(name), surface);
111 stats.Count(name);
112 }
113 LOG_DEBUG(Graphics, "GL33 Unused texture surfaces");
114 stats.Report();
115 stats.Clear();
116
117 LOG_DEBUG(Graphics, "GL33 Used texture surfaces");
118 for (int i = 0; i < _texture.Size(); i++)
119 {
120 TextureGL33* texture = _texture[i];
121 if (!texture)
122 continue;
123 if (texture->_smallSurface.GetTexture())
124 {
125 char name[80];
126 SurfaceName(name, sizeof(name), texture->_smallSurface);
127 stats.Count(name);
128 }
129 if (texture->_surface.GetTexture())
130 {
131 char name[80];
132 SurfaceName(name, sizeof(name), texture->_surface);
133 stats.Count(name);
134 }
135 }
136 stats.Report();
137 stats.Clear();
138
139 return true;
140}
141
142int TextBankGL33::Find(RStringB name1, TextureGL33* interpolate)
143{

Callers

nothing calls this directly

Calls 6

SurfaceNameFunction · 0.85
SizeMethod · 0.45
CountMethod · 0.45
ReportMethod · 0.45
ClearMethod · 0.45
GetTextureMethod · 0.45

Tested by

no test coverage detected