Sign in to follow this  


Recommended Posts

D3DVECTOR3 is a basic struct, D3DXVECTOR3 has various other member functions I believe, and inherits from D3DVECTOR3 (Although I don;t have the SDK here to check). Normally, you'd want to use D3DXVECTOR3 unless you're not using D3DX.

EDIT: From the Documentation:
This structure inherits the x, y and z members from the D3DVECTOR structure. C programmers cannot use the D3DXVECTOR3 structure. They must use the D3DVECTOR structure.

C++ programmers can take advantage of operator overloading and type casting with the D3DXVECTOR3 Extensions, which implement overloaded constructors, assignment, unary, and binary (including equality) operators.

Share this post

Link to post
Share on other sites
Becouse D3DX is a set of high level library provided only for C++ programmers.
Obiously a D3DX function will use D3DX structures.

But you can also avoid using of D3DX and use normal structs.
So function that does not use D3DX library will use default version (D3DVECTOR and D3DMATRIX)

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