
1195.3. Drawing with Transparency
• Rotation. e angle of rotation in radians.
• pTranslation. Pointer to a D3DXVECTOR2 structure that contains the x and y
position of the sprite.
Once the D3DXMATRIX is congured, a call to the sprite’s SetTransform function
applies the matrix to the sprite.
HRESULT SetTransform(
const D3DXMATRIX *pTransform
);
e sprite Draw function adds the sprite to the scene. Here is the formal function syntax:
HRESULT Draw(
LPDIRECT3DTEXTURE9 pTexture,
const RECT *pSrcRect,
const D3DXVECTOR3 *pCenter,
const D3DXVECTOR3 *pPosition,
D3DCOLOR Color
);
e parameters:
• pTexture. Pointer to an IDirect3DTexture9 interface that con ...