MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / LoadTHM

Method LoadTHM

ogsr_engine/Layers/xrRender/TextureDescrManager.cpp:86–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void CTextureDescrMngr::LoadTHM(LPCSTR initial_path)
87{
88 FS_FileSet flist;
89 FS.file_list(flist, initial_path, FS_ListFiles, "*.thm");
90
91#ifdef DEBUG
92 Msg("count of .thm files=%d", flist.size());
93#endif // #ifdef DEBUG
94
95 FS_FileSetIt It = flist.begin();
96 const FS_FileSetIt It_e = flist.end();
97
98 string_path full_name;
99
100 m_texture_details.reserve(m_texture_details.size() + flist.size());
101 m_detail_scalers.reserve(m_detail_scalers.size() + flist.size());
102
103 for (; It != It_e; ++It)
104 {
105 LPCSTR file_nm = It->name.c_str();
106
107 FS.update_path(full_name, initial_path, file_nm);
108 IReader* F = FS.r_open(full_name);
109
110 LoadTHMFile(F, file_nm);
111 }
112}
113
114void CTextureDescrMngr::LoadTHMFile(IReader* F, LPCSTR file_nm)
115{

Callers

nothing calls this directly

Calls 9

MsgFunction · 0.85
file_listMethod · 0.80
r_openMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
reserveMethod · 0.45
c_strMethod · 0.45
update_pathMethod · 0.45

Tested by

no test coverage detected