Original Post
Hi! In my Sprite class
bool Sprite::Draw()
{
if(S_OK != m_pSprite->Begin(D3DXSPRITE_ALPHABLEND))
return 1;
if(m_pSprite->Draw(m_Texture,NULL,&D3DXVECTOR3(50.0f, 50.0f, 0.0f),&D3DXVECTOR3(10.0f, 10.0f, 0.0f),0xFFFFFFFF) != S_OK)
return 1;
if(S_OK != m_pSprite->End())
return 1;
return 0;
}
exists. and i call this function in each loop(m_Texture have been initialized).All seems ok (m_Texture is valid when debugging). But Sprite doesn't work. why? Thanks.