Archived

This topic is now archived and is closed to further replies.

JohanK

D3DXPLANE

Recommended Posts

The following snipplet of code generates an access violation... Any ideas? D3DXPLANE* r; D3DXVECTOR3 v1; D3DXVECTOR3 v2; D3DXVECTOR3 v3; v1.x = 10; v1.y = 10; v1.z = 5; v2.x = 5; v2.y = 5; v2.z = 5; v3.x = 15; v3.y = 5; v3.z = 5; D3DXPlaneFromPoints( r, &v1, &v2, &v3);

Share this post


Link to post
Share on other sites
Why do you always solve the problem 2 minutes after posting it in a newsgroup...

Just add the following

res = new D3DXPLANE()

Sorry to bother ya...

/JohanK

Share this post


Link to post
Share on other sites