18 for (UINT i = 0; i <
files.size(); i++)
20 if (_strcmpi(
files.at(i).c_str(), pathAndFilename.c_str()) == 0)
25 ID3D10ShaderResourceView* srv;
26 if (FAILED(hr = D3DX10CreateShaderResourceViewFromFileA(
pd3dDevice, pathAndFilename.c_str(), NULL, NULL, &srv, NULL)))
29 sprintf_s(err,
"DEVICE_OBJECT::GetTextureSRV Could not load texture: %s!", pathAndFilename.c_str());
35 files.push_back(pathAndFilename);
ID3D10Device * pd3dDevice
std::vector< ID3D10ShaderResourceView * > textureSRV
void Log(const char *msg, Level level=Info, int errorCode=0)
These have to be in this order.
ID3D10ShaderResourceView * GetTextureSRV(Logger *prmLogger, std::string pathAndFilename)
std::vector< std::string > files