46 return m_pDXDev !=
nullptr;
51 return m_pD3DDev ==
nullptr;
55 virtual HRESULT OnResetDeviceX();
56 virtual HRESULT OnLostDeviceX();
57 virtual HRESULT DeleteDeviceObjects();
63 template <
class _TYPE>
76 cDXBaseT(_TYPE* pDXObj =
nullptr)
80 cDXBaseT(
const cDXBaseT<_TYPE>& Obj)
81 : m_pDXObj(Obj.m_pDXObj)
86 virtual HRESULT OnLostDeviceX()
override
90 if (m_pDXObj !=
nullptr)
92 m_pDXObj->OnLostDevice();
94 return SUPER_t::OnLostDeviceX();
96 virtual HRESULT OnResetDeviceX()
override
104 if (m_pDXObj !=
nullptr)
106 m_pDXObj->OnResetDevice();
108 return SUPER_t::OnResetDeviceX();
110 virtual HRESULT DeleteDeviceObjects()
override
114 return SUPER_t::DeleteDeviceObjects();
117 _TYPE* get_DXObj() const noexcept
121 operator _TYPE* ()
const noexcept
#define GRAY3D_LINK
Definition: Gray3D.h:15
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define DEBUG_CHECK(exp)
Definition: cDebugAssert.h:90
bool isLostDevice() const noexcept
Definition: cDXBase.h:48
cDXDevice * m_pDXDev
What device is this attached to (or should be)? InitDeviceObjects() was called and DeleteDeviceObject...
Definition: cDXBase.h:28
bool isInitDevice() const noexcept
Definition: cDXBase.h:43
cIUnkPtr< ID3DDevice > m_pD3DDev
Definition: cDXBase.h:31
Definition: cDXDevice.h:20
Definition: cIUnkPtr.h:32
int ReleasePtr()
Definition: cIUnkPtr.h:207
bool isValidPtr() const noexcept
Definition: cPtrFacade.h:41
Definition: IUnknown.h:68
Definition: Gray3D.cpp:12