void ParticleSystem::setTexture(LPDIRECT3DTEXTURE9 tex) {
	if (this->psTexture != 0)
		this->psTexture->Release();

	tex->AddRef();
	this->psTexture = tex;
}
Example #2
0
void cFrame::SetTexture( LPDIRECT3DTEXTURE9 pTexture )
{
	if(m_pTexture)
		return; 

	if(pTexture)
		pTexture->AddRef();

	m_pTexture = pTexture;
}