Sign in to follow this  
Marineio

D3DXMatrixTransformation2D alternative for DirectX 8?

Recommended Posts

Marineio    134
Hey, I have some code for DirectX 9 using D3DXMatrixTransformation2D, however, i want to use this on DirectX 8. Is there a similar function? Or some code i can use to mimic its functionality? Cheers

Share this post


Link to post
Share on other sites
Call D3DXMatrixTransformation, passing your rotation in as a Z rotation D3DXQuaternionRotationYawPitchRoll(0, 0, rot), and padding a 0 into the Z for scale and translation (X, Y, 0).

You will then manually move row 4 to row 3 for translation to work (ie: mat._31 = mat._41; mat._32 = mat._42; )

Probably best to just make your own call to wrap all that work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this