2024-04-02 22:24:25 +08:00
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice)
|
|
|
|
{
|
|
|
|
m_pD3DDevice = pD3DDevice;
|
|
|
|
m_pD3DSprite1 = NULL;
|
|
|
|
m_pD3DSprite2 = NULL;
|
|
|
|
|
|
|
|
RestoreDeviceObjects();
|
|
|
|
}
|
|
|
|
|
2024-08-26 22:45:46 +08:00
|
|
|
CUnkClass14::~CUnkClass14()
|
|
|
|
{
|
|
|
|
DeleteDeviceObjects();
|
|
|
|
}
|
|
|
|
|
2024-08-26 22:45:22 +08:00
|
|
|
void CUnkClass14::DeleteDeviceObjects()
|
|
|
|
{
|
|
|
|
SAFE_RELEASE(m_pD3DSprite2);
|
|
|
|
SAFE_RELEASE(m_pD3DSprite1);
|
|
|
|
}
|
|
|
|
|
2024-04-02 22:24:25 +08:00
|
|
|
void CUnkClass14::RestoreDeviceObjects()
|
|
|
|
{
|
|
|
|
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite1);
|
|
|
|
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite2);
|
|
|
|
}
|