mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
rename unkclass14 -> objecttext, determine some unkclass10 methods
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
|
||||
#include "main.h"
|
||||
|
||||
CObjectText::CObjectText(IDirect3DDevice9 *pD3DDevice)
|
||||
{
|
||||
m_pD3DDevice = pD3DDevice;
|
||||
m_pD3DSprite1 = NULL;
|
||||
m_pD3DSprite2 = NULL;
|
||||
|
||||
RestoreDeviceObjects();
|
||||
}
|
||||
|
||||
CObjectText::~CObjectText()
|
||||
{
|
||||
DeleteDeviceObjects();
|
||||
}
|
||||
|
||||
void CObjectText::DeleteDeviceObjects()
|
||||
{
|
||||
SAFE_RELEASE(m_pD3DSprite2);
|
||||
SAFE_RELEASE(m_pD3DSprite1);
|
||||
}
|
||||
|
||||
void CObjectText::RestoreDeviceObjects()
|
||||
{
|
||||
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite1);
|
||||
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite2);
|
||||
}
|
||||
Reference in New Issue
Block a user