Click to See Complete Forum and Search --> : what is the meaning of D3DXSPRITE_DONOTSAVESTATE


itree
March 13th, 2005, 10:39 AM
first, i create a texture with alpha channel.
then i call ID3DXSprite::Begin(DWORD Flags) Method for drawing sprites.
if i set Flags to D3DXSPRITE_ALPHABLEND, it doesnot generate transparency effects. but if i set this Flags to D3DXSPRITE_DONOTSAVESTATE|D3DXSPRITE_ALPHABLEND, it works well and takes transparency effects.

It is likely that D3DXSPRITE_DONOTSAVESTATE has some relationship with D3DRS_ALPHABLENDENABLE. But in sdk document, the description is that "The device state is not to be saved or restored when ID3DXSprite::Begin or ID3DXSprite::End is called" and has no relation to AlphaBlend.