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

Method InitDetailTextures

engine/PoseidonGL33/TextureBankGL33_Cache.cpp:214–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void TextBankGL33::InitDetailTextures()
215{
216 if (_detail)
217 return;
218
219 const ParamEntry& names = Remaster >> "CfgDetailTextures";
220 RStringB detailName = names >> "detail";
221 if (QIFStreamB::FileExist(detailName))
222 {
223 _detail = new TextureGL33;
224 _detail->Init(detailName);
225 _detail->_isDetail = true;
226 }
227
228 RStringB specularName = names >> "specular";
229 if (QIFStreamB::FileExist(specularName))
230 {
231 _specular = new TextureGL33;
232 _specular->Init(specularName);
233 _specular->_isDetail = true;
234 }
235
236 RStringB grassName = names >> "grass";
237 if (QIFStreamB::FileExist(grassName))
238 {
239 _grass = new TextureGL33;
240 _grass->Init(grassName);
241 _grass->SetMaxSize(1024);
242 _grass->_isDetail = true;
243 }
244
245 RStringB waterName = names >> "waterBump";
246 if (QIFStreamB::FileExist(waterName))
247 {
248 _waterBump = new TextureGL33;
249 _waterBump->Init(waterName);
250 _waterBump->SetMaxSize(1024);
251 _waterBump->_isDetail = true;
252 }
253}
254
255void TextBankGL33::FlushTextures()
256{

Callers

nothing calls this directly

Calls 2

SetMaxSizeMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected