DirectX Sprite Rotation
DirectX Sprite Rotation
(OP)
I am working on a 2D game using direct3D. I am using the spriite class to render my objects to screen. I can't figure out how to rotate the Image.
I tried Sprite.transform.RotateZ(angle) , but I saw no difference on the screen. I even tried Device.Transform.RotateZ(angle); , and I couldn't tell that it did anything either.
What am I doing wrong? Any suggestions would be welcome.
I tried Sprite.transform.RotateZ(angle) , but I saw no difference on the screen. I even tried Device.Transform.RotateZ(angle); , and I couldn't tell that it did anything either.
What am I doing wrong? Any suggestions would be welcome.
RE: DirectX Sprite Rotation
sprite.Transform = Matrix.Transform2D(a,b,c,d,e,f);
works. There are other cases where an assignement won't work, but I used that one in my code and it runs.
The directX documentation is so poor.