Trouble with ID3DXSprite::DrawTransform

Started by
-1 comments, last by zak_ua 20 years ago
Hi to all! Please, could someone help me with such question: I use DirectX 8.1, and I need to draw sprites in perspective view. So I use method ID3DXSprite::DrawTransform, but not very successfully. Can anyone tell me how to correctly prepare a transformation matrix for this function, to have full control over the sprite (it''s positioning on the screen, degree of "inclination" and so on)? And one more: AFAIK, there was a function in DirectX 7, called D3DXDrawSprite3D, which could stretch sprite between any 4 points on the screen (and besides 2 more functions, D3DXDrawSpriteSimple, which is now (in DX8) is ID3DXSprite::Draw, and D3DXDrawSpriteTransform, which is now ID3DXSprite::DrawTransform). So where did Microsoft get that 3D function? Why they have not implemented it in DirectX 8 ? Or maybe they did in DirectX 9 ? Thanks in advance.

This topic is closed to new replies.

Advertisement