38         return pd3dDevice->SetRenderState(renderStateType, value);
    51                 logger->
Log(
"DeviceObject::GetScissorRect pd3dDevice is nullptr!", Logger::Level::Error);
    72         for (UINT i = 0; i < 
files.size(); i++)
    74                 if (_strcmpi(
files.at(i).c_str(), pathAndFilename.c_str()) == 0)
    80         LPDIRECT3DTEXTURE9 srv;
    82         if (FAILED(hr = D3DXCreateTextureFromFileExA(
pd3dDevice, pathAndFilename.c_str(), D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_A8R8G8B8,
    83                 D3DPOOL_MANAGED, D3DX_FILTER_NONE, D3DX_FILTER_NONE, 0, 
nullptr, 
nullptr, &srv)))
    86                 sprintf_s(err, 
"DeviceObject::GetTextureSRV Could not load texture: %s! (%x)", pathAndFilename.c_str(), hr);
    96         files.emplace_back(pathAndFilename);
 DeviceObject(IDirect3DDevice9 *prmPd3dDevice, Logger *prmLogger)
IDirect3DDevice9 * pd3dDevice
void OnLostDevice() const
HRESULT SetRenderState(_D3DRENDERSTATETYPE renderStateType, int value) const
std::vector< LPDIRECT3DTEXTURE9 > textureSRV
std::vector< std::string > files
void OnResetDevice() const
HRESULT SetScissorRect(RECT *rect) const
void Log(const char *msg, Level level=Info, int errorCode=0)
void AddToCallStack(const char *msg)
HRESULT GetScissorRect(RECT *rect) const
LPDIRECT3DTEXTURE9 GetTextureSRV(std::string pathAndFilename)