Jump to content
  • Advertisement
Sign in to follow this  
derek7

ID3DXMesh::DrawSubset

This topic is 4420 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

if you submit a mesh,you will need a IDirect3DDevice9, but ID3DXMesh have no it. general way: IDirect3DDevice9::SetStreamSource IDirect3DDevice9::SetFVR IDirect3DDevice9::SetIndices IDirect3DDevice9::DrawPrimitive How can ID3DXMesh draw a mesh without knowing IDirect3DDevice9?

Share this post


Link to post
Share on other sites
Advertisement

D3DXCreateMesh(
DWORD NumFaces,
DWORD NumVertices,
DWORD Options,
const LPD3DVERTEXELEMENT9 *pDeclaration,
LPDIRECT3DDEVICE9 pDevice,
LPD3DXMESH *ppMesh
);


Note the device pointer on creation.

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!