mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
988a8d3686
for safekeeping
40 lines
715 B
C++
40 lines
715 B
C++
|
|
#include "main.h"
|
|
|
|
CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice)
|
|
{
|
|
m_pD3DDevice = pD3DDevice;
|
|
m_pD3DSprite1 = NULL;
|
|
m_pD3DSprite2 = NULL;
|
|
|
|
RestoreDeviceObjects();
|
|
}
|
|
|
|
CUnkClass14::~CUnkClass14()
|
|
{
|
|
DeleteDeviceObjects();
|
|
}
|
|
|
|
void CUnkClass14::DeleteDeviceObjects()
|
|
{
|
|
SAFE_RELEASE(m_pD3DSprite2);
|
|
SAFE_RELEASE(m_pD3DSprite1);
|
|
}
|
|
|
|
void CUnkClass14::RestoreDeviceObjects()
|
|
{
|
|
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite1);
|
|
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite2);
|
|
}
|
|
|
|
void CUnkClass14::FUNC_100708B0()
|
|
{
|
|
//D3DXCreateFontA();
|
|
|
|
//LPD3DXRENDERTOSURFACE;
|
|
//D3DXCreateRenderToSurface();
|
|
//D3DXCreateTexture();
|
|
//D3DXCreateFont();
|
|
//m_pD3DDevice->Clear(Count, pRects, Flags, Color, Z, Stencil);
|
|
}
|