PDA

View Full Version : DirectX Sprite made with vertexbuffer how to rotate?



lordzero
25-10-2007, 01:54 AM
Hello

Everybody talk for me to use cos and sin calculations to rotate my sprite using a vertex buffer.

i want use this "turn" effect to rotate one sprite, but i dont have the initial idea how to do it,

can somebody explain a little or show codes?

my initial code with a static sprite is here:
http://www.lordzero.co.nr/tmp/RotateVertexBuffer.zip

helps are welcome.

Greets