Jump to content
  • Advertisement
Sign in to follow this  

whats the difrrence ??

This topic is 4959 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Quote:
Dx8.1 SDK:

Applications use the methods of the ID3DXMesh interface to manipulate mesh objects

The LPD3DXMESH type is defined as a pointer to the ID3DXMesh interface, as shown below.

typedef struct ID3DXMesh *LPD3DXMESH;

That's the best I can do... someone else (read: circlesoft) can do better.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
nothing, one is typedef.

Share this post


Link to post
Share on other sites
There is no difference. LPD3DXMESH is a typedef for ID3DXMesh*. Like if you did this:

typedef int THINGAMAJIG;

Then there's be no difference between the type 'int' and the type 'THINGAMAJIG'

Share this post


Link to post
Share on other sites
Quote:
Original post by stereotypical
if there's not difference then why cant i send LPD3DXMESH to D3DXINTERSECT??
it says......LPD3DXMESH is not a D3DXBaseMesh........


You'll have to paste the code where you're getting the error. Did you create an instance of LPD3DXMESH and pass it, or are you trying to literally pass LPD3DXMESH?

Share this post


Link to post
Share on other sites
An LPD3DXMESH is typedef'd as a ID3DXMesh *, according to the cited documentation; that is, a pointer to a ID3DXMesh. Make sure your types match.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!